/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * An alert action.
 *
 */
class MetricAlertAction {
  /**
   * Create a MetricAlertAction.
   * @property {string} [actionGroupId] the id of the action group to use.
   * @property {object} [webhookProperties] The properties of a webhook object.
   */
  constructor() {
  }

  /**
   * Defines the metadata of MetricAlertAction
   *
   * @returns {object} metadata of MetricAlertAction
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'MetricAlertAction',
      type: {
        name: 'Composite',
        className: 'MetricAlertAction',
        modelProperties: {
          actionGroupId: {
            required: false,
            serializedName: 'actionGroupId',
            type: {
              name: 'String'
            }
          },
          webhookProperties: {
            required: false,
            serializedName: 'webhookProperties',
            type: {
              name: 'Dictionary',
              value: {
                  required: false,
                  serializedName: 'StringElementType',
                  type: {
                    name: 'String'
                  }
              }
            }
          }
        }
      }
    };
  }
}

module.exports = MetricAlertAction;
