azure_mgmt_monitor 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_monitor.rb +5 -0
- data/lib/generated/azure_mgmt_monitor.rb +96 -0
- data/lib/generated/azure_mgmt_monitor/action_groups.rb +579 -0
- data/lib/generated/azure_mgmt_monitor/activity_log_alerts.rb +593 -0
- data/lib/generated/azure_mgmt_monitor/alert_rule_incidents.rb +211 -0
- data/lib/generated/azure_mgmt_monitor/alert_rules.rb +510 -0
- data/lib/generated/azure_mgmt_monitor/autoscale_settings.rb +618 -0
- data/lib/generated/azure_mgmt_monitor/log_profiles.rb +477 -0
- data/lib/generated/azure_mgmt_monitor/models/action_group_list.rb +63 -0
- data/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb +164 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb +65 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb +54 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb +55 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb +61 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb +64 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb +65 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +147 -0
- data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource.rb +159 -0
- data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb +54 -0
- data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb +131 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb +78 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb +101 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb +155 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb +95 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb +127 -0
- data/lib/generated/azure_mgmt_monitor/models/comparison_operation_type.rb +20 -0
- data/lib/generated/azure_mgmt_monitor/models/condition_operator.rb +18 -0
- data/lib/generated/azure_mgmt_monitor/models/email_notification.rb +75 -0
- data/lib/generated/azure_mgmt_monitor/models/email_receiver.rb +69 -0
- data/lib/generated/azure_mgmt_monitor/models/enable_request.rb +45 -0
- data/lib/generated/azure_mgmt_monitor/models/error_response.rb +55 -0
- data/lib/generated/azure_mgmt_monitor/models/incident.rb +93 -0
- data/lib/generated/azure_mgmt_monitor/models/incident_list_result.rb +53 -0
- data/lib/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb +85 -0
- data/lib/generated/azure_mgmt_monitor/models/log_profile_collection.rb +53 -0
- data/lib/generated/azure_mgmt_monitor/models/log_profile_resource.rb +154 -0
- data/lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb +126 -0
- data/lib/generated/azure_mgmt_monitor/models/log_settings.rb +70 -0
- data/lib/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb +70 -0
- data/lib/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb +73 -0
- data/lib/generated/azure_mgmt_monitor/models/metric_settings.rb +67 -0
- data/lib/generated/azure_mgmt_monitor/models/metric_statistic_type.rb +18 -0
- data/lib/generated/azure_mgmt_monitor/models/metric_trigger.rb +134 -0
- data/lib/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/generated/azure_mgmt_monitor/models/recurrence.rb +62 -0
- data/lib/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +22 -0
- data/lib/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +139 -0
- data/lib/generated/azure_mgmt_monitor/models/retention_policy.rb +60 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_action.rb +48 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_condition.rb +63 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_data_source.rb +58 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_email_action.rb +80 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb +45 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb +150 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb +68 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_webhook_action.rb +80 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_action.rb +86 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_capacity.rb +69 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_direction.rb +17 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_rule.rb +57 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_type.rb +17 -0
- data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb +163 -0
- data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb +135 -0
- data/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb +79 -0
- data/lib/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb +108 -0
- data/lib/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb +19 -0
- data/lib/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +19 -0
- data/lib/generated/azure_mgmt_monitor/models/time_window.rb +104 -0
- data/lib/generated/azure_mgmt_monitor/models/webhook_notification.rb +63 -0
- data/lib/generated/azure_mgmt_monitor/models/webhook_receiver.rb +56 -0
- data/lib/generated/azure_mgmt_monitor/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_monitor/monitor_management_client.rb +150 -0
- data/lib/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +330 -0
- data/lib/generated/azure_mgmt_monitor/version.rb +8 -0
- metadata +188 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Monitor
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# A list of action groups.
|
|
10
|
+
#
|
|
11
|
+
class ActionGroupList
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
include MsRest::JSONable
|
|
16
|
+
# @return [Array<ActionGroupResource>] The list of action groups.
|
|
17
|
+
attr_accessor :value
|
|
18
|
+
|
|
19
|
+
# @return [String] Provides the link to retrive the next set of elements.
|
|
20
|
+
attr_accessor :next_link
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Mapper for ActionGroupList class as Ruby Hash.
|
|
25
|
+
# This will be used for serialization/deserialization.
|
|
26
|
+
#
|
|
27
|
+
def self.mapper()
|
|
28
|
+
{
|
|
29
|
+
required: false,
|
|
30
|
+
serialized_name: 'ActionGroupList',
|
|
31
|
+
type: {
|
|
32
|
+
name: 'Composite',
|
|
33
|
+
class_name: 'ActionGroupList',
|
|
34
|
+
model_properties: {
|
|
35
|
+
value: {
|
|
36
|
+
required: false,
|
|
37
|
+
serialized_name: 'value',
|
|
38
|
+
type: {
|
|
39
|
+
name: 'Sequence',
|
|
40
|
+
element: {
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'ActionGroupResourceElementType',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Composite',
|
|
45
|
+
class_name: 'ActionGroupResource'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
next_link: {
|
|
51
|
+
required: false,
|
|
52
|
+
serialized_name: 'nextLink',
|
|
53
|
+
type: {
|
|
54
|
+
name: 'String'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Monitor
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# An action group resource.
|
|
10
|
+
#
|
|
11
|
+
class ActionGroupResource < MsRestAzure::Resource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
include MsRest::JSONable
|
|
16
|
+
# @return [String] The short name of the action group. This will be used
|
|
17
|
+
# in SMS messages.
|
|
18
|
+
attr_accessor :group_short_name
|
|
19
|
+
|
|
20
|
+
# @return [Boolean] Indicates whether this action group is enabled. If an
|
|
21
|
+
# action group is not enabled, then none of its receviers will receive
|
|
22
|
+
# communications. Default value: true .
|
|
23
|
+
attr_accessor :enabled
|
|
24
|
+
|
|
25
|
+
# @return [Array<EmailReceiver>] The list of email receivers that are
|
|
26
|
+
# part of this action group.
|
|
27
|
+
attr_accessor :email_receivers
|
|
28
|
+
|
|
29
|
+
# @return [Array<SmsReceiver>] The list of SMS receivers that are part of
|
|
30
|
+
# this action group.
|
|
31
|
+
attr_accessor :sms_receivers
|
|
32
|
+
|
|
33
|
+
# @return [Array<WebhookReceiver>] The list of webhook receivers that are
|
|
34
|
+
# part of this action group.
|
|
35
|
+
attr_accessor :webhook_receivers
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
#
|
|
39
|
+
# Mapper for ActionGroupResource class as Ruby Hash.
|
|
40
|
+
# This will be used for serialization/deserialization.
|
|
41
|
+
#
|
|
42
|
+
def self.mapper()
|
|
43
|
+
{
|
|
44
|
+
required: false,
|
|
45
|
+
serialized_name: 'ActionGroupResource',
|
|
46
|
+
type: {
|
|
47
|
+
name: 'Composite',
|
|
48
|
+
class_name: 'ActionGroupResource',
|
|
49
|
+
model_properties: {
|
|
50
|
+
id: {
|
|
51
|
+
required: false,
|
|
52
|
+
read_only: true,
|
|
53
|
+
serialized_name: 'id',
|
|
54
|
+
type: {
|
|
55
|
+
name: 'String'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
name: {
|
|
59
|
+
required: false,
|
|
60
|
+
read_only: true,
|
|
61
|
+
serialized_name: 'name',
|
|
62
|
+
type: {
|
|
63
|
+
name: 'String'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
type: {
|
|
67
|
+
required: false,
|
|
68
|
+
read_only: true,
|
|
69
|
+
serialized_name: 'type',
|
|
70
|
+
type: {
|
|
71
|
+
name: 'String'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
location: {
|
|
75
|
+
required: true,
|
|
76
|
+
serialized_name: 'location',
|
|
77
|
+
type: {
|
|
78
|
+
name: 'String'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
tags: {
|
|
82
|
+
required: false,
|
|
83
|
+
serialized_name: 'tags',
|
|
84
|
+
type: {
|
|
85
|
+
name: 'Dictionary',
|
|
86
|
+
value: {
|
|
87
|
+
required: false,
|
|
88
|
+
serialized_name: 'StringElementType',
|
|
89
|
+
type: {
|
|
90
|
+
name: 'String'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
group_short_name: {
|
|
96
|
+
required: true,
|
|
97
|
+
serialized_name: 'properties.groupShortName',
|
|
98
|
+
constraints: {
|
|
99
|
+
MaxLength: 15
|
|
100
|
+
},
|
|
101
|
+
type: {
|
|
102
|
+
name: 'String'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
enabled: {
|
|
106
|
+
required: true,
|
|
107
|
+
serialized_name: 'properties.enabled',
|
|
108
|
+
default_value: true,
|
|
109
|
+
type: {
|
|
110
|
+
name: 'Boolean'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
email_receivers: {
|
|
114
|
+
required: false,
|
|
115
|
+
serialized_name: 'properties.emailReceivers',
|
|
116
|
+
type: {
|
|
117
|
+
name: 'Sequence',
|
|
118
|
+
element: {
|
|
119
|
+
required: false,
|
|
120
|
+
serialized_name: 'EmailReceiverElementType',
|
|
121
|
+
type: {
|
|
122
|
+
name: 'Composite',
|
|
123
|
+
class_name: 'EmailReceiver'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
sms_receivers: {
|
|
129
|
+
required: false,
|
|
130
|
+
serialized_name: 'properties.smsReceivers',
|
|
131
|
+
type: {
|
|
132
|
+
name: 'Sequence',
|
|
133
|
+
element: {
|
|
134
|
+
required: false,
|
|
135
|
+
serialized_name: 'SmsReceiverElementType',
|
|
136
|
+
type: {
|
|
137
|
+
name: 'Composite',
|
|
138
|
+
class_name: 'SmsReceiver'
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
webhook_receivers: {
|
|
144
|
+
required: false,
|
|
145
|
+
serialized_name: 'properties.webhookReceivers',
|
|
146
|
+
type: {
|
|
147
|
+
name: 'Sequence',
|
|
148
|
+
element: {
|
|
149
|
+
required: false,
|
|
150
|
+
serialized_name: 'WebhookReceiverElementType',
|
|
151
|
+
type: {
|
|
152
|
+
name: 'Composite',
|
|
153
|
+
class_name: 'WebhookReceiver'
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Monitor
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# A pointer to an Azure Action Group.
|
|
10
|
+
#
|
|
11
|
+
class ActivityLogAlertActionGroup
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
include MsRest::JSONable
|
|
16
|
+
# @return [String] The resourceId of the action group. This cannot be
|
|
17
|
+
# null or empty.
|
|
18
|
+
attr_accessor :action_group_id
|
|
19
|
+
|
|
20
|
+
# @return [Hash{String => String}] the dictionary of custom properties to
|
|
21
|
+
# include with the post operation. These data are appended to the webhook
|
|
22
|
+
# payload.
|
|
23
|
+
attr_accessor :webhook_properties
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
# Mapper for ActivityLogAlertActionGroup class as Ruby Hash.
|
|
28
|
+
# This will be used for serialization/deserialization.
|
|
29
|
+
#
|
|
30
|
+
def self.mapper()
|
|
31
|
+
{
|
|
32
|
+
required: false,
|
|
33
|
+
serialized_name: 'ActivityLogAlertActionGroup',
|
|
34
|
+
type: {
|
|
35
|
+
name: 'Composite',
|
|
36
|
+
class_name: 'ActivityLogAlertActionGroup',
|
|
37
|
+
model_properties: {
|
|
38
|
+
action_group_id: {
|
|
39
|
+
required: true,
|
|
40
|
+
serialized_name: 'actionGroupId',
|
|
41
|
+
type: {
|
|
42
|
+
name: 'String'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
webhook_properties: {
|
|
46
|
+
required: false,
|
|
47
|
+
serialized_name: 'webhookProperties',
|
|
48
|
+
type: {
|
|
49
|
+
name: 'Dictionary',
|
|
50
|
+
value: {
|
|
51
|
+
required: false,
|
|
52
|
+
serialized_name: 'StringElementType',
|
|
53
|
+
type: {
|
|
54
|
+
name: 'String'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Monitor
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# A list of activity log alert actions.
|
|
10
|
+
#
|
|
11
|
+
class ActivityLogAlertActionList
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
include MsRest::JSONable
|
|
16
|
+
# @return [Array<ActivityLogAlertActionGroup>] The list of activity log
|
|
17
|
+
# alerts.
|
|
18
|
+
attr_accessor :action_groups
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
# Mapper for ActivityLogAlertActionList class as Ruby Hash.
|
|
23
|
+
# This will be used for serialization/deserialization.
|
|
24
|
+
#
|
|
25
|
+
def self.mapper()
|
|
26
|
+
{
|
|
27
|
+
required: false,
|
|
28
|
+
serialized_name: 'ActivityLogAlertActionList',
|
|
29
|
+
type: {
|
|
30
|
+
name: 'Composite',
|
|
31
|
+
class_name: 'ActivityLogAlertActionList',
|
|
32
|
+
model_properties: {
|
|
33
|
+
action_groups: {
|
|
34
|
+
required: false,
|
|
35
|
+
serialized_name: 'actionGroups',
|
|
36
|
+
type: {
|
|
37
|
+
name: 'Sequence',
|
|
38
|
+
element: {
|
|
39
|
+
required: false,
|
|
40
|
+
serialized_name: 'ActivityLogAlertActionGroupElementType',
|
|
41
|
+
type: {
|
|
42
|
+
name: 'Composite',
|
|
43
|
+
class_name: 'ActivityLogAlertActionGroup'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Monitor
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# An Activity Log alert condition that is met when all its member
|
|
10
|
+
# conditions are met.
|
|
11
|
+
#
|
|
12
|
+
class ActivityLogAlertAllOfCondition
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
include MsRest::JSONable
|
|
17
|
+
# @return [Array<ActivityLogAlertLeafCondition>] The list of activity log
|
|
18
|
+
# alert conditions.
|
|
19
|
+
attr_accessor :all_of
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Mapper for ActivityLogAlertAllOfCondition class as Ruby Hash.
|
|
24
|
+
# This will be used for serialization/deserialization.
|
|
25
|
+
#
|
|
26
|
+
def self.mapper()
|
|
27
|
+
{
|
|
28
|
+
required: false,
|
|
29
|
+
serialized_name: 'ActivityLogAlertAllOfCondition',
|
|
30
|
+
type: {
|
|
31
|
+
name: 'Composite',
|
|
32
|
+
class_name: 'ActivityLogAlertAllOfCondition',
|
|
33
|
+
model_properties: {
|
|
34
|
+
all_of: {
|
|
35
|
+
required: true,
|
|
36
|
+
serialized_name: 'allOf',
|
|
37
|
+
type: {
|
|
38
|
+
name: 'Sequence',
|
|
39
|
+
element: {
|
|
40
|
+
required: false,
|
|
41
|
+
serialized_name: 'ActivityLogAlertLeafConditionElementType',
|
|
42
|
+
type: {
|
|
43
|
+
name: 'Composite',
|
|
44
|
+
class_name: 'ActivityLogAlertLeafCondition'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Monitor
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# An Activity Log alert condition that is met by comparing an activity log
|
|
10
|
+
# field and value.
|
|
11
|
+
#
|
|
12
|
+
class ActivityLogAlertLeafCondition
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
include MsRest::JSONable
|
|
17
|
+
# @return [String] The name of the field that this condition will
|
|
18
|
+
# examine. The possible values for this field are (case-insensitive):
|
|
19
|
+
# 'resourceId', 'category', 'caller', 'level', 'operationName',
|
|
20
|
+
# 'resourceGroup', 'resourceProvider', 'status', 'subStatus',
|
|
21
|
+
# 'resourceType', or anything beginning with 'properties.'.
|
|
22
|
+
attr_accessor :field
|
|
23
|
+
|
|
24
|
+
# @return [String] The field value will be compared to this value
|
|
25
|
+
# (case-insensitive) to determine if the condition is met.
|
|
26
|
+
attr_accessor :equals
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
# Mapper for ActivityLogAlertLeafCondition class as Ruby Hash.
|
|
31
|
+
# This will be used for serialization/deserialization.
|
|
32
|
+
#
|
|
33
|
+
def self.mapper()
|
|
34
|
+
{
|
|
35
|
+
required: false,
|
|
36
|
+
serialized_name: 'ActivityLogAlertLeafCondition',
|
|
37
|
+
type: {
|
|
38
|
+
name: 'Composite',
|
|
39
|
+
class_name: 'ActivityLogAlertLeafCondition',
|
|
40
|
+
model_properties: {
|
|
41
|
+
field: {
|
|
42
|
+
required: true,
|
|
43
|
+
serialized_name: 'field',
|
|
44
|
+
type: {
|
|
45
|
+
name: 'String'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
equals: {
|
|
49
|
+
required: true,
|
|
50
|
+
serialized_name: 'equals',
|
|
51
|
+
type: {
|
|
52
|
+
name: 'String'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|