azure_mgmt_insights 0.8.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_insights.rb +5 -0
- data/lib/generated/azure_mgmt_insights.rb +77 -0
- data/lib/generated/azure_mgmt_insights/alert_rule_incidents.rb +121 -0
- data/lib/generated/azure_mgmt_insights/alert_rules.rb +410 -0
- data/lib/generated/azure_mgmt_insights/autoscale_settings.rb +521 -0
- data/lib/generated/azure_mgmt_insights/incidents.rb +117 -0
- data/lib/generated/azure_mgmt_insights/insights_management_client.rb +147 -0
- data/lib/generated/azure_mgmt_insights/log_profiles.rb +375 -0
- data/lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb +156 -0
- data/lib/generated/azure_mgmt_insights/models/alert_rule_resource_collection.rb +53 -0
- data/lib/generated/azure_mgmt_insights/models/autoscale_notification.rb +77 -0
- data/lib/generated/azure_mgmt_insights/models/autoscale_profile.rb +100 -0
- data/lib/generated/azure_mgmt_insights/models/autoscale_setting_resource.rb +152 -0
- data/lib/generated/azure_mgmt_insights/models/autoscale_setting_resource_collection.rb +94 -0
- data/lib/generated/azure_mgmt_insights/models/comparison_operation_type.rb +20 -0
- data/lib/generated/azure_mgmt_insights/models/condition_operator.rb +18 -0
- data/lib/generated/azure_mgmt_insights/models/email_notification.rb +73 -0
- data/lib/generated/azure_mgmt_insights/models/incident.rb +92 -0
- data/lib/generated/azure_mgmt_insights/models/incident_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_insights/models/location_threshold_rule_condition.rb +85 -0
- data/lib/generated/azure_mgmt_insights/models/log_profile_collection.rb +52 -0
- data/lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb +99 -0
- data/lib/generated/azure_mgmt_insights/models/log_profile_resource.rb +143 -0
- data/lib/generated/azure_mgmt_insights/models/log_settings.rb +66 -0
- data/lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb +69 -0
- data/lib/generated/azure_mgmt_insights/models/management_event_rule_condition.rb +74 -0
- data/lib/generated/azure_mgmt_insights/models/metric_settings.rb +66 -0
- data/lib/generated/azure_mgmt_insights/models/metric_statistic_type.rb +18 -0
- data/lib/generated/azure_mgmt_insights/models/metric_trigger.rb +133 -0
- data/lib/generated/azure_mgmt_insights/models/recurrence.rb +61 -0
- data/lib/generated/azure_mgmt_insights/models/recurrence_frequency.rb +22 -0
- data/lib/generated/azure_mgmt_insights/models/recurrent_schedule.rb +101 -0
- data/lib/generated/azure_mgmt_insights/models/retention_policy.rb +55 -0
- data/lib/generated/azure_mgmt_insights/models/rule_action.rb +47 -0
- data/lib/generated/azure_mgmt_insights/models/rule_condition.rb +47 -0
- data/lib/generated/azure_mgmt_insights/models/rule_data_source.rb +46 -0
- data/lib/generated/azure_mgmt_insights/models/rule_email_action.rb +78 -0
- data/lib/generated/azure_mgmt_insights/models/rule_management_event_claims_data_source.rb +44 -0
- data/lib/generated/azure_mgmt_insights/models/rule_management_event_data_source.rb +151 -0
- data/lib/generated/azure_mgmt_insights/models/rule_metric_data_source.rb +70 -0
- data/lib/generated/azure_mgmt_insights/models/rule_webhook_action.rb +77 -0
- data/lib/generated/azure_mgmt_insights/models/scale_action.rb +85 -0
- data/lib/generated/azure_mgmt_insights/models/scale_capacity.rb +67 -0
- data/lib/generated/azure_mgmt_insights/models/scale_direction.rb +17 -0
- data/lib/generated/azure_mgmt_insights/models/scale_rule.rb +57 -0
- data/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings_create_or_update_parameters.rb +101 -0
- data/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings_resource.rb +144 -0
- data/lib/generated/azure_mgmt_insights/models/threshold_rule_condition.rb +111 -0
- data/lib/generated/azure_mgmt_insights/models/time_aggregation_operator.rb +19 -0
- data/lib/generated/azure_mgmt_insights/models/time_aggregation_type.rb +19 -0
- data/lib/generated/azure_mgmt_insights/models/time_window.rb +67 -0
- data/lib/generated/azure_mgmt_insights/models/webhook_notification.rb +61 -0
- data/lib/generated/azure_mgmt_insights/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb +216 -0
- data/lib/generated/azure_mgmt_insights/version.rb +8 -0
- metadata +169 -0
@@ -0,0 +1,94 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Insights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents a collection of autoscale setting resources.
|
10
|
+
#
|
11
|
+
class AutoscaleSettingResourceCollection
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<AutoscaleSettingResource>] the values for the autoscale
|
16
|
+
# setting resources.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] URL to get the next set of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<AutoscaleSettingResource>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [AutoscaleSettingResourceCollection] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for AutoscaleSettingResourceCollection class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'AutoscaleSettingResourceCollection',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'AutoscaleSettingResourceCollection',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: true,
|
68
|
+
serialized_name: 'value',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'AutoscaleSettingResourceElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'AutoscaleSettingResource'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
next_link: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'nextLink',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Insights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ComparisonOperationType
|
10
|
+
#
|
11
|
+
module ComparisonOperationType
|
12
|
+
Equals = "Equals"
|
13
|
+
NotEquals = "NotEquals"
|
14
|
+
GreaterThan = "GreaterThan"
|
15
|
+
GreaterThanOrEqual = "GreaterThanOrEqual"
|
16
|
+
LessThan = "LessThan"
|
17
|
+
LessThanOrEqual = "LessThanOrEqual"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Insights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ConditionOperator
|
10
|
+
#
|
11
|
+
module ConditionOperator
|
12
|
+
GreaterThan = "GreaterThan"
|
13
|
+
GreaterThanOrEqual = "GreaterThanOrEqual"
|
14
|
+
LessThan = "LessThan"
|
15
|
+
LessThanOrEqual = "LessThanOrEqual"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Insights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Email notification.
|
10
|
+
#
|
11
|
+
class EmailNotification
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] a value indicating whether to send email to
|
16
|
+
# subscription administrator.
|
17
|
+
attr_accessor :send_to_subscription_administrator
|
18
|
+
|
19
|
+
# @return [Boolean] a value indicating whether to send email to
|
20
|
+
# subscription co-administrators.
|
21
|
+
attr_accessor :send_to_subscription_co_administrators
|
22
|
+
|
23
|
+
# @return [Array<String>] the custom email list.
|
24
|
+
attr_accessor :custom_emails
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for EmailNotification class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'EmailNotification',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'EmailNotification',
|
38
|
+
model_properties: {
|
39
|
+
send_to_subscription_administrator: {
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'sendToSubscriptionAdministrator',
|
42
|
+
type: {
|
43
|
+
name: 'Boolean'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
send_to_subscription_co_administrators: {
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'sendToSubscriptionCoAdministrators',
|
49
|
+
type: {
|
50
|
+
name: 'Boolean'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
custom_emails: {
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'customEmails',
|
56
|
+
type: {
|
57
|
+
name: 'Sequence',
|
58
|
+
element: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'StringElementType',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Insights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An alert incident indicates the activation status of an alert rule.
|
10
|
+
#
|
11
|
+
class Incident
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Incident name.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Rule name that is associated with the incident.
|
19
|
+
attr_accessor :rule_name
|
20
|
+
|
21
|
+
# @return [Boolean] A boolean to indicate whether the incident is active
|
22
|
+
# or resolved.
|
23
|
+
attr_accessor :is_active
|
24
|
+
|
25
|
+
# @return [DateTime] The time at which the incident was activated in
|
26
|
+
# ISO8601 format.
|
27
|
+
attr_accessor :activated_time
|
28
|
+
|
29
|
+
# @return [DateTime] The time at which the incident was resolved in
|
30
|
+
# ISO8601 format. If null, it means the incident is still active.
|
31
|
+
attr_accessor :resolved_time
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for Incident class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'Incident',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'Incident',
|
45
|
+
model_properties: {
|
46
|
+
name: {
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'name',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
rule_name: {
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'ruleName',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
is_active: {
|
63
|
+
required: false,
|
64
|
+
read_only: true,
|
65
|
+
serialized_name: 'isActive',
|
66
|
+
type: {
|
67
|
+
name: 'Boolean'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
activated_time: {
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'activatedTime',
|
74
|
+
type: {
|
75
|
+
name: 'DateTime'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
resolved_time: {
|
79
|
+
required: false,
|
80
|
+
read_only: true,
|
81
|
+
serialized_name: 'resolvedTime',
|
82
|
+
type: {
|
83
|
+
name: 'DateTime'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Insights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The List incidents operation response.
|
10
|
+
#
|
11
|
+
class IncidentListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Incident>] the incident collection.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for IncidentListResult class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'IncidentListResult',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'IncidentListResult',
|
30
|
+
model_properties: {
|
31
|
+
value: {
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'value',
|
34
|
+
type: {
|
35
|
+
name: 'Sequence',
|
36
|
+
element: {
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'IncidentElementType',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'Incident'
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Insights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A rule condition based on a certain number of locations failing.
|
10
|
+
#
|
11
|
+
class LocationThresholdRuleCondition < RuleCondition
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@odata.type = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :odata.type
|
21
|
+
|
22
|
+
# @return [RuleDataSource] the resource from which the rule collects its
|
23
|
+
# data.
|
24
|
+
attr_accessor :data_source
|
25
|
+
|
26
|
+
# @return [Duration] the period of time (in ISO 8601 duration format)
|
27
|
+
# that is used to monitor alert activity based on the threshold. If
|
28
|
+
# specified then it must be between 5 minutes and 1 day.
|
29
|
+
attr_accessor :window_size
|
30
|
+
|
31
|
+
# @return [Integer] the number of locations that must fail to activate
|
32
|
+
# the alert.
|
33
|
+
attr_accessor :failed_location_count
|
34
|
+
|
35
|
+
|
36
|
+
#
|
37
|
+
# Mapper for LocationThresholdRuleCondition class as Ruby Hash.
|
38
|
+
# This will be used for serialization/deserialization.
|
39
|
+
#
|
40
|
+
def self.mapper()
|
41
|
+
{
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'LocationThresholdRuleCondition',
|
47
|
+
model_properties: {
|
48
|
+
odata.type: {
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'odata.type',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
data_source: {
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'dataSource',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
polymorphic_discriminator: 'odata.type',
|
61
|
+
uber_parent: 'RuleDataSource',
|
62
|
+
class_name: 'RuleDataSource'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
window_size: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'windowSize',
|
68
|
+
type: {
|
69
|
+
name: 'TimeSpan'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
failed_location_count: {
|
73
|
+
required: true,
|
74
|
+
serialized_name: 'failedLocationCount',
|
75
|
+
type: {
|
76
|
+
name: 'Number'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Insights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents a collection of log profiles.
|
10
|
+
#
|
11
|
+
class LogProfileCollection
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<LogProfileResource>] the values of the log profiles.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for LogProfileCollection class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'LogProfileCollection',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'LogProfileCollection',
|
30
|
+
model_properties: {
|
31
|
+
value: {
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'value',
|
34
|
+
type: {
|
35
|
+
name: 'Sequence',
|
36
|
+
element: {
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'LogProfileResourceElementType',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'LogProfileResource'
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|