Sha256: e44a1ece2a8a6c6f6ac182a66df96edf5453e3607e11701caca6986aebc56cd0

Contents?: true

Size: 1.77 KB

Versions: 7

Compression:

Stored size: 1.77 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Monitor::Mgmt::V2018_03_01
  module Models
    #
    # An alert action.
    #
    class MetricAlertAction

      include MsRestAzure

      # @return [String] the id of the action group to use.
      attr_accessor :action_group_id

      # @return [Hash{String => String}] The properties of a webhook object.
      attr_accessor :webhook_properties


      #
      # Mapper for MetricAlertAction class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'MetricAlertAction',
          type: {
            name: 'Composite',
            class_name: 'MetricAlertAction',
            model_properties: {
              action_group_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'actionGroupId',
                type: {
                  name: 'String'
                }
              },
              webhook_properties: {
                client_side_validation: true,
                required: false,
                serialized_name: 'webhookProperties',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
azure_mgmt_monitor-0.17.6 lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb
azure_mgmt_monitor-0.17.5 lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb
azure_mgmt_monitor-0.17.4 lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb
azure_mgmt_monitor-0.17.3 lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb
azure_mgmt_monitor-0.17.2 lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb
azure_mgmt_monitor-0.17.1 lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb
azure_mgmt_monitor-0.17.0 lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb