azure_mgmt_insights 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,99 @@
|
|
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
|
+
# Paramters to create a new Log Profile
|
10
|
+
#
|
11
|
+
class LogProfileCreateOrUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] the resource id of the storage account.
|
16
|
+
attr_accessor :storage_account_id
|
17
|
+
|
18
|
+
# @return [String] the resource id of the service bus rule.
|
19
|
+
attr_accessor :service_bus_rule_id
|
20
|
+
|
21
|
+
# @return [Array<String>] the locations.
|
22
|
+
attr_accessor :locations
|
23
|
+
|
24
|
+
# @return [Array<String>] the categories.
|
25
|
+
attr_accessor :categories
|
26
|
+
|
27
|
+
# @return [RetentionPolicy] the retention policy for this log.
|
28
|
+
attr_accessor :retention_policy
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for LogProfileCreateOrUpdateParameters class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'LogProfileCreateOrUpdateParameters',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'LogProfileCreateOrUpdateParameters',
|
42
|
+
model_properties: {
|
43
|
+
storage_account_id: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'properties.storageAccountId',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
service_bus_rule_id: {
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'properties.serviceBusRuleId',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
locations: {
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'properties.locations',
|
60
|
+
type: {
|
61
|
+
name: 'Sequence',
|
62
|
+
element: {
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'StringElementType',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
},
|
71
|
+
categories: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'properties.categories',
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'StringElementType',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
retention_policy: {
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'properties.retentionPolicy',
|
88
|
+
type: {
|
89
|
+
name: 'Composite',
|
90
|
+
class_name: 'RetentionPolicy'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,143 @@
|
|
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 log profile resource.
|
10
|
+
#
|
11
|
+
class LogProfileResource < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] the resource id of the storage account.
|
16
|
+
attr_accessor :storage_account_id
|
17
|
+
|
18
|
+
# @return [String] the resource id of the service bus rule.
|
19
|
+
attr_accessor :service_bus_rule_id
|
20
|
+
|
21
|
+
# @return [Array<String>] the locations.
|
22
|
+
attr_accessor :locations
|
23
|
+
|
24
|
+
# @return [Array<String>] the categories.
|
25
|
+
attr_accessor :categories
|
26
|
+
|
27
|
+
# @return [RetentionPolicy] the retention policy for this log.
|
28
|
+
attr_accessor :retention_policy
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for LogProfileResource class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'LogProfileResource',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'LogProfileResource',
|
42
|
+
model_properties: {
|
43
|
+
id: {
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'id',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
name: {
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'name',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
type: {
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'type',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
location: {
|
67
|
+
required: true,
|
68
|
+
serialized_name: 'location',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
tags: {
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'tags',
|
76
|
+
type: {
|
77
|
+
name: 'Dictionary',
|
78
|
+
value: {
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'StringElementType',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
storage_account_id: {
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'properties.storageAccountId',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
service_bus_rule_id: {
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'properties.serviceBusRuleId',
|
97
|
+
type: {
|
98
|
+
name: 'String'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
locations: {
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'properties.locations',
|
104
|
+
type: {
|
105
|
+
name: 'Sequence',
|
106
|
+
element: {
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'StringElementType',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
},
|
115
|
+
categories: {
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'properties.categories',
|
118
|
+
type: {
|
119
|
+
name: 'Sequence',
|
120
|
+
element: {
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'StringElementType',
|
123
|
+
type: {
|
124
|
+
name: 'String'
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
},
|
129
|
+
retention_policy: {
|
130
|
+
required: false,
|
131
|
+
serialized_name: 'properties.retentionPolicy',
|
132
|
+
type: {
|
133
|
+
name: 'Composite',
|
134
|
+
class_name: 'RetentionPolicy'
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,66 @@
|
|
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
|
+
# Part of MultiTenantDiagnosticSettings. Specifies the settings for a
|
10
|
+
# particular log.
|
11
|
+
#
|
12
|
+
class LogSettings
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] the name of the logs to which this setting is applied.
|
17
|
+
attr_accessor :category
|
18
|
+
|
19
|
+
# @return [Boolean] a value indicating whether this log is enabled.
|
20
|
+
attr_accessor :enabled
|
21
|
+
|
22
|
+
# @return [RetentionPolicy] the retention policy for this log.
|
23
|
+
attr_accessor :retention_policy
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for LogSettings class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'LogSettings',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'LogSettings',
|
37
|
+
model_properties: {
|
38
|
+
category: {
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'category',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
enabled: {
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'enabled',
|
48
|
+
type: {
|
49
|
+
name: 'Boolean'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
retention_policy: {
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'retentionPolicy',
|
55
|
+
type: {
|
56
|
+
name: 'Composite',
|
57
|
+
class_name: 'RetentionPolicy'
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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 management event aggregation condition.
|
10
|
+
#
|
11
|
+
class ManagementEventAggregationCondition
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ConditionOperator] the condition operator. Possible values
|
16
|
+
# include: 'GreaterThan', 'GreaterThanOrEqual', 'LessThan',
|
17
|
+
# 'LessThanOrEqual'
|
18
|
+
attr_accessor :operator
|
19
|
+
|
20
|
+
# @return [Float] the condition threshold.
|
21
|
+
attr_accessor :threshold
|
22
|
+
|
23
|
+
# @return [Duration] the period of time (in ISO 8601 duration format)
|
24
|
+
# that is used to monitor alert activity based on the threshold. If
|
25
|
+
# specified then it must be between 5 minutes and 1 day.
|
26
|
+
attr_accessor :window_size
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for ManagementEventAggregationCondition class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'ManagementEventAggregationCondition',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'ManagementEventAggregationCondition',
|
40
|
+
model_properties: {
|
41
|
+
operator: {
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'operator',
|
44
|
+
type: {
|
45
|
+
name: 'Enum',
|
46
|
+
module: 'ConditionOperator'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
threshold: {
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'threshold',
|
52
|
+
type: {
|
53
|
+
name: 'Double'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
window_size: {
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'windowSize',
|
59
|
+
type: {
|
60
|
+
name: 'TimeSpan'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,74 @@
|
|
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 management event rule condition.
|
10
|
+
#
|
11
|
+
class ManagementEventRuleCondition < RuleCondition
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@odata.type = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition"
|
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 [ManagementEventAggregationCondition] the aggregation
|
27
|
+
# condition.
|
28
|
+
attr_accessor :aggregation
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ManagementEventRuleCondition class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'ManagementEventRuleCondition',
|
42
|
+
model_properties: {
|
43
|
+
odata.type: {
|
44
|
+
required: true,
|
45
|
+
serialized_name: 'odata.type',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
data_source: {
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'dataSource',
|
53
|
+
type: {
|
54
|
+
name: 'Composite',
|
55
|
+
polymorphic_discriminator: 'odata.type',
|
56
|
+
uber_parent: 'RuleDataSource',
|
57
|
+
class_name: 'RuleDataSource'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
aggregation: {
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'aggregation',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'ManagementEventAggregationCondition'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|