Class: Azure::ARM::Monitor::Models::ActionGroupResource

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

Overview

An action group resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#email_receiversArray<EmailReceiver>

part of this action group.

Returns:

  • (Array<EmailReceiver>)

    The list of email receivers that are


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

def email_receivers
  @email_receivers
end

#enabledBoolean

action group is not enabled, then none of its receivers will receive communications. Default value: true .

Returns:

  • (Boolean)

    Indicates whether this action group is enabled. If an


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

def enabled
  @enabled
end

#group_short_nameString

in SMS messages.

Returns:

  • (String)

    The short name of the action group. This will be used


18
19
20
# File 'lib/generated/azure_mgmt_monitor/models/action_group_resource.rb', line 18

def group_short_name
  @group_short_name
end

#sms_receiversArray<SmsReceiver>

this action group.

Returns:

  • (Array<SmsReceiver>)

    The list of SMS receivers that are part of


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

def sms_receivers
  @sms_receivers
end

#webhook_receiversArray<WebhookReceiver>

part of this action group.

Returns:


35
36
37
# File 'lib/generated/azure_mgmt_monitor/models/action_group_resource.rb', line 35

def webhook_receivers
  @webhook_receivers
end

Class Method Details

.mapperObject

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


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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# File 'lib/generated/azure_mgmt_monitor/models/action_group_resource.rb', line 42

def self.mapper()
  {
    required: false,
    serialized_name: 'ActionGroupResource',
    type: {
      name: 'Composite',
      class_name: 'ActionGroupResource',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        group_short_name: {
          required: true,
          serialized_name: 'properties.groupShortName',
          constraints: {
            MaxLength: 15
          },
          type: {
            name: 'String'
          }
        },
        enabled: {
          required: true,
          serialized_name: 'properties.enabled',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        },
        email_receivers: {
          required: false,
          serialized_name: 'properties.emailReceivers',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'EmailReceiverElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EmailReceiver'
                }
            }
          }
        },
        sms_receivers: {
          required: false,
          serialized_name: 'properties.smsReceivers',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'SmsReceiverElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SmsReceiver'
                }
            }
          }
        },
        webhook_receivers: {
          required: false,
          serialized_name: 'properties.webhookReceivers',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'WebhookReceiverElementType',
                type: {
                  name: 'Composite',
                  class_name: 'WebhookReceiver'
                }
            }
          }
        }
      }
    }
  }
end