Class: Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::ActionRuleProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb

Overview

Action rule properties defining scope, conditions, suppression logic for action rule

Direct Known Subclasses

ActionGroup, Diagnostics, Suppression

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeActionRuleProperties

Returns a new instance of ActionRuleProperties.



21
22
23
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 21

def initialize
  @type = "ActionRuleProperties"
end

Instance Attribute Details

#conditionsConditions

Returns conditions on which alerts will be filtered.

Returns:

  • (Conditions)

    conditions on which alerts will be filtered



31
32
33
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 31

def conditions
  @conditions
end

#created_atDateTime

format.

Returns:

  • (DateTime)

    Creation time of action rule. Date-Time in ISO-8601



38
39
40
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 38

def created_at
  @created_at
end

#created_byString

Returns Created by user name.

Returns:

  • (String)

    Created by user name.



45
46
47
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 45

def created_by
  @created_by
end

#descriptionString

Returns Description of action rule.

Returns:

  • (String)

    Description of action rule



34
35
36
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 34

def description
  @description
end

#last_modified_atDateTime

ISO-8601 format.

Returns:

  • (DateTime)

    Last updated time of action rule. Date-Time in



42
43
44
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 42

def last_modified_at
  @last_modified_at
end

#last_modified_byString

Returns Last modified by user name.

Returns:

  • (String)

    Last modified by user name.



48
49
50
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 48

def last_modified_by
  @last_modified_by
end

#scopeScope

Returns scope on which action rule will apply.

Returns:

  • (Scope)

    scope on which action rule will apply



28
29
30
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 28

def scope
  @scope
end

#statusActionRuleStatus

enabled or disabled. Possible values include: ‘Enabled’, ‘Disabled’

Returns:



52
53
54
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 52

def status
  @status
end

#typeObject

Returns the value of attribute type.



25
26
27
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 25

def type
  @type
end

Class Method Details

.mapperObject

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



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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 59

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ActionRuleProperties',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'type',
      uber_parent: 'ActionRuleProperties',
      class_name: 'ActionRuleProperties',
      model_properties: {
        scope: {
          client_side_validation: true,
          required: false,
          serialized_name: 'scope',
          type: {
            name: 'Composite',
            class_name: 'Scope'
          }
        },
        conditions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'conditions',
          type: {
            name: 'Composite',
            class_name: 'Conditions'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        },
        created_at: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'createdAt',
          type: {
            name: 'DateTime'
          }
        },
        last_modified_at: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastModifiedAt',
          type: {
            name: 'DateTime'
          }
        },
        created_by: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'createdBy',
          type: {
            name: 'String'
          }
        },
        last_modified_by: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastModifiedBy',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end