Class: Azure::ARM::Monitor::Models::AlertRuleResourcePatch

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb

Overview

The alert rule object for patch operations.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionsArray<RuleAction>

when the alert rule becomes active, and when an alert condition is resolved.

Returns:

  • (Array<RuleAction>)

    the array of actions that are performed



37
38
39
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 37

def actions
  @actions
end

#conditionRuleCondition

being activated.

Returns:

  • (RuleCondition)

    the condition that results in the alert rule



32
33
34
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 32

def condition
  @condition
end

#descriptionString

included in the alert email.

Returns:

  • (String)

    the description of the alert rule that will be



24
25
26
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 24

def description
  @description
end

#is_enabledBoolean

enabled.

Returns:

  • (Boolean)

    the flag that indicates whether the alert rule is



28
29
30
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 28

def is_enabled
  @is_enabled
end

#last_updated_timeDateTime

Returns Last time the rule was updated in ISO8601 format.

Returns:

  • (DateTime)

    Last time the rule was updated in ISO8601 format.



40
41
42
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 40

def last_updated_time
  @last_updated_time
end

#nameString

Returns the name of the alert rule.

Returns:

  • (String)

    the name of the alert rule.



20
21
22
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 20

def name
  @name
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags



17
18
19
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 17

def tags
  @tags
end

Class Method Details

.mapperObject

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



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 47

def self.mapper()
  {
    required: false,
    serialized_name: 'AlertRuleResourcePatch',
    type: {
      name: 'Composite',
      class_name: 'AlertRuleResourcePatch',
      model_properties: {
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        name: {
          required: true,
          serialized_name: 'properties.name',
          type: {
            name: 'String'
          }
        },
        description: {
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        is_enabled: {
          required: true,
          serialized_name: 'properties.isEnabled',
          type: {
            name: 'Boolean'
          }
        },
        condition: {
          required: true,
          serialized_name: 'properties.condition',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'odata.type',
            uber_parent: 'RuleCondition',
            class_name: 'RuleCondition'
          }
        },
        actions: {
          required: false,
          serialized_name: 'properties.actions',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'RuleActionElementType',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'odata.type',
                  uber_parent: 'RuleAction',
                  class_name: 'RuleAction'
                }
            }
          }
        },
        last_updated_time: {
          required: false,
          read_only: true,
          serialized_name: 'properties.lastUpdatedTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end