azure_mgmt_monitor 0.15.2 → 0.16.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +39 -37
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +6 -5
  5. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +12 -10
  6. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +30 -29
  7. data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +30 -29
  8. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  9. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +4 -1
  10. data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +18 -19
  11. data/lib/2017-04-01/generated/azure_mgmt_monitor.rb +10 -6
  12. data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +145 -34
  13. data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +36 -34
  14. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  15. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +63 -0
  16. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
  17. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  18. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  19. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  20. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +1 -1
  21. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +13 -11
  22. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +25 -23
  23. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/{monitor_client.rb → monitor_management_client.rb} +6 -3
  24. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor.rb +37 -0
  25. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +275 -0
  26. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline.rb +86 -0
  27. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +58 -0
  28. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +171 -0
  29. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +85 -0
  30. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  31. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  32. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  33. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/sensitivity.rb +17 -0
  34. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/time_series_information.rb +93 -0
  35. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  36. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +127 -0
  37. data/lib/azure_mgmt_monitor.rb +1 -0
  38. data/lib/profiles/latest/modules/monitor_profile_module.rb +329 -243
  39. data/lib/profiles/latest/monitor_latest_profile_client.rb +28 -9
  40. data/lib/profiles/latest/monitor_module_definition.rb +0 -1
  41. data/lib/version.rb +1 -1
  42. metadata +21 -4
@@ -0,0 +1,171 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # The response to a baseline query.
10
+ #
11
+ class BaselineResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the metric baseline Id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] the resource type of the baseline resource.
19
+ attr_accessor :type
20
+
21
+ # @return [LocalizableString] the name and the display name of the
22
+ # metric, i.e. it is localizable string.
23
+ attr_accessor :name
24
+
25
+ # @return [String] The timespan for which the data was retrieved. Its
26
+ # value consists of two datatimes concatenated, separated by '/'. This
27
+ # may be adjusted in the future and returned back from what was
28
+ # originally requested.
29
+ attr_accessor :timespan
30
+
31
+ # @return [Duration] The interval (window size) for which the metric data
32
+ # was returned in. This may be adjusted in the future and returned back
33
+ # from what was originally requested. This is not present if a metadata
34
+ # request was made.
35
+ attr_accessor :interval
36
+
37
+ # @return [String] The aggregation type of the metric.
38
+ attr_accessor :aggregation
39
+
40
+ # @return [Array<DateTime>] the array of timestamps of the baselines.
41
+ attr_accessor :timestamps
42
+
43
+ # @return [Array<Baseline>] the baseline values for each sensitivity.
44
+ attr_accessor :baseline
45
+
46
+ # @return [Array<BaselineMetadataValue>] the baseline metadata values.
47
+ attr_accessor :metadata
48
+
49
+
50
+ #
51
+ # Mapper for BaselineResponse class as Ruby Hash.
52
+ # This will be used for serialization/deserialization.
53
+ #
54
+ def self.mapper()
55
+ {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'BaselineResponse',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'BaselineResponse',
62
+ model_properties: {
63
+ id: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'id',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ type: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'type',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ name: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'name',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'LocalizableString'
89
+ }
90
+ },
91
+ timespan: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'properties.timespan',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ interval: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'properties.interval',
103
+ type: {
104
+ name: 'TimeSpan'
105
+ }
106
+ },
107
+ aggregation: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'properties.aggregation',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ timestamps: {
116
+ client_side_validation: true,
117
+ required: false,
118
+ serialized_name: 'properties.timestamps',
119
+ type: {
120
+ name: 'Sequence',
121
+ element: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'DateTimeElementType',
125
+ type: {
126
+ name: 'DateTime'
127
+ }
128
+ }
129
+ }
130
+ },
131
+ baseline: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'properties.baseline',
135
+ type: {
136
+ name: 'Sequence',
137
+ element: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'BaselineElementType',
141
+ type: {
142
+ name: 'Composite',
143
+ class_name: 'Baseline'
144
+ }
145
+ }
146
+ }
147
+ },
148
+ metadata: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ serialized_name: 'properties.metadata',
152
+ type: {
153
+ name: 'Sequence',
154
+ element: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: 'BaselineMetadataValueElementType',
158
+ type: {
159
+ name: 'Composite',
160
+ class_name: 'BaselineMetadataValue'
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ end
169
+ end
170
+ end
171
+ end
@@ -0,0 +1,85 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # The response to a calcualte baseline call.
10
+ #
11
+ class CalculateBaselineResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the resource type of the baseline resource.
16
+ attr_accessor :type
17
+
18
+ # @return [Array<DateTime>] the array of timestamps of the baselines.
19
+ attr_accessor :timestamps
20
+
21
+ # @return [Array<Baseline>] the baseline values for each sensitivity.
22
+ attr_accessor :baseline
23
+
24
+
25
+ #
26
+ # Mapper for CalculateBaselineResponse class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'CalculateBaselineResponse',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'CalculateBaselineResponse',
37
+ model_properties: {
38
+ type: {
39
+ client_side_validation: true,
40
+ required: true,
41
+ serialized_name: 'type',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ timestamps: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'timestamps',
50
+ type: {
51
+ name: 'Sequence',
52
+ element: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'DateTimeElementType',
56
+ type: {
57
+ name: 'DateTime'
58
+ }
59
+ }
60
+ }
61
+ },
62
+ baseline: {
63
+ client_side_validation: true,
64
+ required: true,
65
+ serialized_name: 'baseline',
66
+ type: {
67
+ name: 'Sequence',
68
+ element: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'BaselineElementType',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'Baseline'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # Describes the format of Error response.
10
+ #
11
+ class ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Error code
16
+ attr_accessor :code
17
+
18
+ # @return [String] Error message indicating why the operation failed.
19
+ attr_accessor :message
20
+
21
+
22
+ #
23
+ # Mapper for ErrorResponse class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ErrorResponse',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorResponse',
34
+ model_properties: {
35
+ code: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'code',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ message: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'message',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # The localizable string class.
10
+ #
11
+ class LocalizableString
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the invariant value.
16
+ attr_accessor :value
17
+
18
+ # @return [String] the locale specific value.
19
+ attr_accessor :localized_value
20
+
21
+
22
+ #
23
+ # Mapper for LocalizableString class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'LocalizableString',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'LocalizableString',
34
+ model_properties: {
35
+ value: {
36
+ client_side_validation: true,
37
+ required: true,
38
+ serialized_name: 'value',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ localized_value: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'localizedValue',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for ResultType
10
+ #
11
+ module ResultType
12
+ Data = "Data"
13
+ Metadata = "Metadata"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for Sensitivity
10
+ #
11
+ module Sensitivity
12
+ Low = "Low"
13
+ Medium = "Medium"
14
+ High = "High"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,93 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # The time series info needed for calculating the baseline.
10
+ #
11
+ class TimeSeriesInformation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] the list of sensitivities for calculating the
16
+ # baseline.
17
+ attr_accessor :sensitivities
18
+
19
+ # @return [Array<Float>] The metric values to calculate the baseline.
20
+ attr_accessor :values
21
+
22
+ # @return [Array<DateTime>] the array of timestamps of the baselines.
23
+ attr_accessor :timestamps
24
+
25
+
26
+ #
27
+ # Mapper for TimeSeriesInformation class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'TimeSeriesInformation',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'TimeSeriesInformation',
38
+ model_properties: {
39
+ sensitivities: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: 'sensitivities',
43
+ type: {
44
+ name: 'Sequence',
45
+ element: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'StringElementType',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ },
55
+ values: {
56
+ client_side_validation: true,
57
+ required: true,
58
+ serialized_name: 'values',
59
+ type: {
60
+ name: 'Sequence',
61
+ element: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'FloatElementType',
65
+ type: {
66
+ name: 'Double'
67
+ }
68
+ }
69
+ }
70
+ },
71
+ timestamps: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'timestamps',
75
+ type: {
76
+ name: 'Sequence',
77
+ element: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'DateTimeElementType',
81
+ type: {
82
+ name: 'DateTime'
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end