class Azure::Monitor::Mgmt::V2018_04_16::Models::AlertingAction

Specify action need to be taken when rule type is Alert

Attributes

azns_action[RW]

@return [AzNsActionGroup] Azure action group reference.

odatatype[RW]
severity[RW]

@return [AlertSeverity] Severity of the alert. Possible values include: '0', '1', '2', '3', '4'

throttling_in_min[RW]

@return [Integer] time (in minutes) for which Alerts should be throttled or suppressed.

trigger[RW]

@return [TriggerCondition] The trigger condition that results in the alert rule being.

Private Class Methods

mapper() click to toggle source

Mapper for AlertingAction class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb, line 42
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction',
    type: {
      name: 'Composite',
      class_name: 'AlertingAction',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: 'odata\\.type',
          type: {
            name: 'String'
          }
        },
        severity: {
          client_side_validation: true,
          required: true,
          serialized_name: 'severity',
          type: {
            name: 'String'
          }
        },
        azns_action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'aznsAction',
          type: {
            name: 'Composite',
            class_name: 'AzNsActionGroup'
          }
        },
        throttling_in_min: {
          client_side_validation: true,
          required: false,
          serialized_name: 'throttlingInMin',
          type: {
            name: 'Number'
          }
        },
        trigger: {
          client_side_validation: true,
          required: true,
          serialized_name: 'trigger',
          type: {
            name: 'Composite',
            class_name: 'TriggerCondition'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb, line 16
def initialize
  @odatatype = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction"
end