Class: Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::ActionGroup

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

Overview

Action rule with action group configuration

Instance Attribute Summary collapse

Attributes inherited from ActionRuleProperties

#conditions, #created_at, #created_by, #description, #last_modified_at, #last_modified_by, #scope, #status

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeActionGroup

Returns a new instance of ActionGroup.



18
19
20
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_group.rb', line 18

def initialize
  @type = "ActionGroup"
end

Instance Attribute Details

#action_group_idString

Returns Action group to trigger if action rule matches.

Returns:

  • (String)

    Action group to trigger if action rule matches



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

def action_group_id
  @action_group_id
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

.mapperObject

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



32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
128
129
130
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_group.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ActionGroup',
    type: {
      name: 'Composite',
      class_name: 'ActionGroup',
      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'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        action_group_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'actionGroupId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end