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

Inherits:
Object
  • Object
show all
Includes:
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:

  • the array of actions that are performed



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

def actions
  @actions
end

#conditionRuleCondition

being activated.

Returns:

  • the condition that results in the alert rule



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

def condition
  @condition
end

#descriptionString

included in the alert email.

Returns:

  • the description of the alert rule that will be



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

def description
  @description
end

#is_enabledBoolean

enabled.

Returns:

  • the flag that indicates whether the alert rule is



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

def is_enabled
  @is_enabled
end

#last_updated_timeDateTime

Returns Last time the rule was updated in ISO8601 format.

Returns:

  • Last time the rule was updated in ISO8601 format.



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

def last_updated_time
  @last_updated_time
end

#nameString

Returns the name of the alert rule.

Returns:

  • the name of the alert rule.



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

def name
  @name
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • Resource tags



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

def tags
  @tags
end

Class Method Details

.mapperObject

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



46
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
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 46

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