azure_mgmt_insights 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_insights.rb +19 -19
  3. data/lib/generated/azure_mgmt_insights/alert_rule_incidents.rb +91 -0
  4. data/lib/generated/azure_mgmt_insights/alert_rules.rb +9 -3
  5. data/lib/generated/azure_mgmt_insights/insights_management_client.rb +8 -13
  6. data/lib/generated/azure_mgmt_insights/log_profiles.rb +10 -10
  7. data/lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb +3 -2
  8. data/lib/generated/azure_mgmt_insights/models/autoscale_notification.rb +2 -2
  9. data/lib/generated/azure_mgmt_insights/models/autoscale_setting_resource.rb +2 -1
  10. data/lib/generated/azure_mgmt_insights/models/email_notification.rb +3 -2
  11. data/lib/generated/azure_mgmt_insights/models/location_threshold_rule_condition.rb +3 -2
  12. data/lib/generated/azure_mgmt_insights/models/log_profile_collection.rb +1 -1
  13. data/lib/generated/azure_mgmt_insights/models/{log_profile_create_or_update_parameters.rb → log_profile_properties.rb} +26 -17
  14. data/lib/generated/azure_mgmt_insights/models/log_profile_resource.rb +16 -7
  15. data/lib/generated/azure_mgmt_insights/models/log_settings.rb +4 -1
  16. data/lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb +2 -2
  17. data/lib/generated/azure_mgmt_insights/models/management_event_rule_condition.rb +7 -4
  18. data/lib/generated/azure_mgmt_insights/models/metric_trigger.rb +8 -8
  19. data/lib/generated/azure_mgmt_insights/models/recurrence.rb +2 -2
  20. data/lib/generated/azure_mgmt_insights/models/recurrent_schedule.rb +43 -6
  21. data/lib/generated/azure_mgmt_insights/models/retention_policy.rb +2 -1
  22. data/lib/generated/azure_mgmt_insights/models/rule_email_action.rb +5 -4
  23. data/lib/generated/azure_mgmt_insights/models/rule_management_event_data_source.rb +3 -2
  24. data/lib/generated/azure_mgmt_insights/models/rule_metric_data_source.rb +3 -2
  25. data/lib/generated/azure_mgmt_insights/models/rule_webhook_action.rb +6 -4
  26. data/lib/generated/azure_mgmt_insights/models/scale_action.rb +6 -6
  27. data/lib/generated/azure_mgmt_insights/models/scale_capacity.rb +2 -1
  28. data/lib/generated/azure_mgmt_insights/models/scale_rule.rb +1 -2
  29. data/lib/generated/azure_mgmt_insights/models/scale_type.rb +17 -0
  30. data/lib/generated/azure_mgmt_insights/models/{service_diagnostic_settings_create_or_update_parameters.rb → service_diagnostic_settings.rb} +22 -16
  31. data/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings_resource.rb +12 -5
  32. data/lib/generated/azure_mgmt_insights/models/threshold_rule_condition.rb +4 -3
  33. data/lib/generated/azure_mgmt_insights/models/time_window.rb +1 -2
  34. data/lib/generated/azure_mgmt_insights/models/webhook_notification.rb +3 -2
  35. data/lib/generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb +7 -7
  36. data/lib/generated/azure_mgmt_insights/version.rb +1 -1
  37. metadata +7 -7
  38. data/lib/generated/azure_mgmt_insights/incidents.rb +0 -117
@@ -12,19 +12,28 @@ module Azure::ARM::Insights
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] the resource id of the storage account.
15
+ # @return [String] the resource id of the storage account to which you
16
+ # would like to send the Activity Log.
16
17
  attr_accessor :storage_account_id
17
18
 
18
- # @return [String] the resource id of the service bus rule.
19
+ # @return [String] The service bus rule ID of the service bus namespace
20
+ # in which you would like to have Event Hubs created for streaming the
21
+ # Activity Log. The rule ID is of the format: '{service bus resource
22
+ # ID}/authorizationrules/{key name}'.
19
23
  attr_accessor :service_bus_rule_id
20
24
 
21
- # @return [Array<String>] the locations.
25
+ # @return [Array<String>] List of regions for which Activity Log events
26
+ # should be stored or streamed. It is a comma separated list of valid ARM
27
+ # locations including the 'global' location.
22
28
  attr_accessor :locations
23
29
 
24
- # @return [Array<String>] the categories.
30
+ # @return [Array<String>] the categories of the logs. These categories
31
+ # are created as is convenient to the user. Some values are: 'Write',
32
+ # 'Delete', and/or 'Action.'
25
33
  attr_accessor :categories
26
34
 
27
- # @return [RetentionPolicy] the retention policy for this log.
35
+ # @return [RetentionPolicy] the retention policy for the events in the
36
+ # log.
28
37
  attr_accessor :retention_policy
29
38
 
30
39
 
@@ -85,7 +94,7 @@ module Azure::ARM::Insights
85
94
  }
86
95
  },
87
96
  storage_account_id: {
88
- required: false,
97
+ required: true,
89
98
  serialized_name: 'properties.storageAccountId',
90
99
  type: {
91
100
  name: 'String'
@@ -99,7 +108,7 @@ module Azure::ARM::Insights
99
108
  }
100
109
  },
101
110
  locations: {
102
- required: false,
111
+ required: true,
103
112
  serialized_name: 'properties.locations',
104
113
  type: {
105
114
  name: 'Sequence',
@@ -13,7 +13,10 @@ module Azure::ARM::Insights
13
13
 
14
14
  include MsRestAzure
15
15
 
16
- # @return [String] the name of the logs to which this setting is applied.
16
+ # @return [String] Name of a Diagnostic Log category for a resource type
17
+ # this setting is applied to. To obtain the list of Diagnostic Log
18
+ # categories for a resource, first perform a GET diagnostic settings
19
+ # operation.
17
20
  attr_accessor :category
18
21
 
19
22
  # @return [Boolean] a value indicating whether this log is enabled.
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::Insights
7
7
  module Models
8
8
  #
9
- # A management event aggregation condition.
9
+ # How the data that is collected should be combined over time.
10
10
  #
11
11
  class ManagementEventAggregationCondition
12
12
 
@@ -17,7 +17,7 @@ module Azure::ARM::Insights
17
17
  # 'LessThanOrEqual'
18
18
  attr_accessor :operator
19
19
 
20
- # @return [Float] the condition threshold.
20
+ # @return [Float] The threshold value that activates the alert.
21
21
  attr_accessor :threshold
22
22
 
23
23
  # @return [Duration] the period of time (in ISO 8601 duration format)
@@ -20,11 +20,14 @@ module Azure::ARM::Insights
20
20
  attr_accessor :odata.type
21
21
 
22
22
  # @return [RuleDataSource] the resource from which the rule collects its
23
- # data.
23
+ # data. For this type dataSource will always be of type
24
+ # RuleManagementEventDataSource.
24
25
  attr_accessor :data_source
25
26
 
26
- # @return [ManagementEventAggregationCondition] the aggregation
27
- # condition.
27
+ # @return [ManagementEventAggregationCondition] How the data that is
28
+ # collected should be combined over time and when the alert is activated.
29
+ # Note that for management event alerts aggregation is optional – if it
30
+ # is not provided then any event will cause the alert to activate.
28
31
  attr_accessor :aggregation
29
32
 
30
33
 
@@ -42,7 +45,7 @@ module Azure::ARM::Insights
42
45
  model_properties: {
43
46
  odata.type: {
44
47
  required: true,
45
- serialized_name: 'odata.type',
48
+ serialized_name: 'odata\\.type',
46
49
  type: {
47
50
  name: 'String'
48
51
  }
@@ -66,28 +66,28 @@ module Azure::ARM::Insights
66
66
  class_name: 'MetricTrigger',
67
67
  model_properties: {
68
68
  metric_name: {
69
- required: false,
69
+ required: true,
70
70
  serialized_name: 'metricName',
71
71
  type: {
72
72
  name: 'String'
73
73
  }
74
74
  },
75
75
  metric_resource_uri: {
76
- required: false,
76
+ required: true,
77
77
  serialized_name: 'metricResourceUri',
78
78
  type: {
79
79
  name: 'String'
80
80
  }
81
81
  },
82
82
  time_grain: {
83
- required: false,
83
+ required: true,
84
84
  serialized_name: 'timeGrain',
85
85
  type: {
86
86
  name: 'TimeSpan'
87
87
  }
88
88
  },
89
89
  statistic: {
90
- required: false,
90
+ required: true,
91
91
  serialized_name: 'statistic',
92
92
  type: {
93
93
  name: 'Enum',
@@ -95,14 +95,14 @@ module Azure::ARM::Insights
95
95
  }
96
96
  },
97
97
  time_window: {
98
- required: false,
98
+ required: true,
99
99
  serialized_name: 'timeWindow',
100
100
  type: {
101
101
  name: 'TimeSpan'
102
102
  }
103
103
  },
104
104
  time_aggregation: {
105
- required: false,
105
+ required: true,
106
106
  serialized_name: 'timeAggregation',
107
107
  type: {
108
108
  name: 'Enum',
@@ -110,7 +110,7 @@ module Azure::ARM::Insights
110
110
  }
111
111
  },
112
112
  operator: {
113
- required: false,
113
+ required: true,
114
114
  serialized_name: 'operator',
115
115
  type: {
116
116
  name: 'Enum',
@@ -118,7 +118,7 @@ module Azure::ARM::Insights
118
118
  }
119
119
  },
120
120
  threshold: {
121
- required: false,
121
+ required: true,
122
122
  serialized_name: 'threshold',
123
123
  type: {
124
124
  name: 'Double'
@@ -37,7 +37,7 @@ module Azure::ARM::Insights
37
37
  class_name: 'Recurrence',
38
38
  model_properties: {
39
39
  frequency: {
40
- required: false,
40
+ required: true,
41
41
  serialized_name: 'frequency',
42
42
  type: {
43
43
  name: 'Enum',
@@ -45,7 +45,7 @@ module Azure::ARM::Insights
45
45
  }
46
46
  },
47
47
  schedule: {
48
- required: false,
48
+ required: true,
49
49
  serialized_name: 'schedule',
50
50
  type: {
51
51
  name: 'Composite',
@@ -13,8 +13,45 @@ module Azure::ARM::Insights
13
13
  include MsRestAzure
14
14
 
15
15
  # @return [String] the time zone for the hours of the profile. See
16
- # examples of valid timezone ids over here:
17
- # https://msdn.microsoft.com/en-us/library/azure/dn931928.aspx
16
+ # examples of valid timezone are: Dateline Standard Time, UTC-11,
17
+ # Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time
18
+ # (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain
19
+ # Standard Time (Mexico), Mountain Standard Time, Central America
20
+ # Standard Time, Central Standard Time, Central Standard Time (Mexico),
21
+ # Canada Central Standard Time, SA Pacific Standard Time, Eastern
22
+ # Standard Time, US Eastern Standard Time, Venezuela Standard Time,
23
+ # Paraguay Standard Time, Atlantic Standard Time, Central Brazilian
24
+ # Standard Time, SA Western Standard Time, Pacific SA Standard Time,
25
+ # Newfoundland Standard Time, E. South America Standard Time, Argentina
26
+ # Standard Time, SA Eastern Standard Time, Greenland Standard Time,
27
+ # Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic
28
+ # Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco
29
+ # Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W.
30
+ # Europe Standard Time, Central Europe Standard Time, Romance Standard
31
+ # Time, Central European Standard Time, W. Central Africa Standard Time,
32
+ # Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle
33
+ # East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe
34
+ # Standard Time, South Africa Standard Time, FLE Standard Time, Turkey
35
+ # Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya
36
+ # Standard Time, Arabic Standard Time, Arab Standard Time, Belarus
37
+ # Standard Time, Russian Standard Time, E. Africa Standard Time, Iran
38
+ # Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia
39
+ # Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus
40
+ # Standard Time, Afghanistan Standard Time, West Asia Standard Time,
41
+ # Ekaterinburg Standard Time, Pakistan Standard Time, India Standard
42
+ # Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia
43
+ # Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time,
44
+ # Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time,
45
+ # China Standard Time, North Asia East Standard Time, Singapore Standard
46
+ # Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar
47
+ # Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk
48
+ # Standard Time, Cen. Australia Standard Time, AUS Central Standard Time,
49
+ # E. Australia Standard Time, AUS Eastern Standard Time, West Pacific
50
+ # Standard Time, Tasmania Standard Time, Magadan Standard Time,
51
+ # Vladivostok Standard Time, Russia Time Zone 10, Central Pacific
52
+ # Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12,
53
+ # Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa
54
+ # Standard Time, Line Islands Standard Time
18
55
  attr_accessor :time_zone
19
56
 
20
57
  # @return [Array<String>] the collection of days that the profile takes
@@ -44,14 +81,14 @@ module Azure::ARM::Insights
44
81
  class_name: 'RecurrentSchedule',
45
82
  model_properties: {
46
83
  time_zone: {
47
- required: false,
84
+ required: true,
48
85
  serialized_name: 'timeZone',
49
86
  type: {
50
87
  name: 'String'
51
88
  }
52
89
  },
53
90
  days: {
54
- required: false,
91
+ required: true,
55
92
  serialized_name: 'days',
56
93
  type: {
57
94
  name: 'Sequence',
@@ -65,7 +102,7 @@ module Azure::ARM::Insights
65
102
  }
66
103
  },
67
104
  hours: {
68
- required: false,
105
+ required: true,
69
106
  serialized_name: 'hours',
70
107
  type: {
71
108
  name: 'Sequence',
@@ -79,7 +116,7 @@ module Azure::ARM::Insights
79
116
  }
80
117
  },
81
118
  minutes: {
82
- required: false,
119
+ required: true,
83
120
  serialized_name: 'minutes',
84
121
  type: {
85
122
  name: 'Sequence',
@@ -16,7 +16,8 @@ module Azure::ARM::Insights
16
16
  # enabled.
17
17
  attr_accessor :enabled
18
18
 
19
- # @return [Integer] the number of days for the retention.
19
+ # @return [Integer] the number of days for the retention in days. A value
20
+ # of 0 will retain the events indefinitely.
20
21
  attr_accessor :days
21
22
 
22
23
 
@@ -7,6 +7,7 @@ module Azure::ARM::Insights
7
7
  module Models
8
8
  #
9
9
  # Specifies the action to send email when the rule condition is evaluated.
10
+ # The discriminator is always RuleEmailAction in this case.
10
11
  #
11
12
  class RuleEmailAction < RuleAction
12
13
 
@@ -19,9 +20,9 @@ module Azure::ARM::Insights
19
20
 
20
21
  attr_accessor :odata.type
21
22
 
22
- # @return [Boolean] the flag to send e-mails to the service owners.
23
- # Whether the administrators (service and co-adiminstrators) of the
24
- # service should be notified when the alert is activated.
23
+ # @return [Boolean] Whether the administrators (service and
24
+ # co-adiminstrators) of the service should be notified when the alert is
25
+ # activated.
25
26
  attr_accessor :send_to_service_owners
26
27
 
27
28
  # @return [Array<String>] the list of administrator's custom email
@@ -43,7 +44,7 @@ module Azure::ARM::Insights
43
44
  model_properties: {
44
45
  odata.type: {
45
46
  required: true,
46
- serialized_name: 'odata.type',
47
+ serialized_name: 'odata\\.type',
47
48
  type: {
48
49
  name: 'String'
49
50
  }
@@ -6,7 +6,8 @@
6
6
  module Azure::ARM::Insights
7
7
  module Models
8
8
  #
9
- # A rule management event data source.
9
+ # A rule management event data source. The discriminator fields is always
10
+ # RuleManagementEventDataSource in this case.
10
11
  #
11
12
  class RuleManagementEventDataSource < RuleDataSource
12
13
 
@@ -66,7 +67,7 @@ module Azure::ARM::Insights
66
67
  model_properties: {
67
68
  odata.type: {
68
69
  required: true,
69
- serialized_name: 'odata.type',
70
+ serialized_name: 'odata\\.type',
70
71
  type: {
71
72
  name: 'String'
72
73
  }
@@ -6,7 +6,8 @@
6
6
  module Azure::ARM::Insights
7
7
  module Models
8
8
  #
9
- # A rule metric data source.
9
+ # A rule metric data source. The discriminator value is always
10
+ # RuleMetricDataSource in this case.
10
11
  #
11
12
  class RuleMetricDataSource < RuleDataSource
12
13
 
@@ -42,7 +43,7 @@ module Azure::ARM::Insights
42
43
  model_properties: {
43
44
  odata.type: {
44
45
  required: true,
45
- serialized_name: 'odata.type',
46
+ serialized_name: 'odata\\.type',
46
47
  type: {
47
48
  name: 'String'
48
49
  }
@@ -7,7 +7,7 @@ module Azure::ARM::Insights
7
7
  module Models
8
8
  #
9
9
  # Specifies the action to post to service when the rule condition is
10
- # evaluated.
10
+ # evaluated. The discriminator is always RuleWebhookAction in this case.
11
11
  #
12
12
  class RuleWebhookAction < RuleAction
13
13
 
@@ -20,11 +20,13 @@ module Azure::ARM::Insights
20
20
 
21
21
  attr_accessor :odata.type
22
22
 
23
- # @return [String] the service uri to Post the notitication.
23
+ # @return [String] the service uri to Post the notitication when the
24
+ # alert activates or resolves.
24
25
  attr_accessor :service_uri
25
26
 
26
27
  # @return [Hash{String => String}] the dictionary of custom properties to
27
- # include with the post operation.
28
+ # include with the post operation. These data are appended to the webhook
29
+ # payload.
28
30
  attr_accessor :properties
29
31
 
30
32
 
@@ -42,7 +44,7 @@ module Azure::ARM::Insights
42
44
  model_properties: {
43
45
  odata.type: {
44
46
  required: true,
45
- serialized_name: 'odata.type',
47
+ serialized_name: 'odata\\.type',
46
48
  type: {
47
49
  name: 'String'
48
50
  }
@@ -17,8 +17,9 @@ module Azure::ARM::Insights
17
17
  # include: 'None', 'Increase', 'Decrease'
18
18
  attr_accessor :direction
19
19
 
20
- # @return [String] the type of action that should occur, this must be set
21
- # to ChangeCount. Default value: 'ChangeCount' .
20
+ # @return [ScaleType] the type of action that should occur when the scale
21
+ # rule fires. Possible values include: 'ChangeCount',
22
+ # 'PercentChangeCount', 'ExactCount'
22
23
  attr_accessor :type
23
24
 
24
25
  # @return [String] the number of instances that are involved in the
@@ -28,7 +29,7 @@ module Azure::ARM::Insights
28
29
 
29
30
  # @return [Duration] the amount of time to wait since the last scaling
30
31
  # action before this action occurs. It must be between 1 week and 1
31
- # minute.
32
+ # minute in ISO 8601 format.
32
33
  attr_accessor :cooldown
33
34
 
34
35
 
@@ -54,11 +55,10 @@ module Azure::ARM::Insights
54
55
  },
55
56
  type: {
56
57
  required: true,
57
- is_constant: true,
58
58
  serialized_name: 'type',
59
- default_value: 'ChangeCount',
60
59
  type: {
61
- name: 'String'
60
+ name: 'Enum',
61
+ module: 'ScaleType'
62
62
  }
63
63
  },
64
64
  value: {
@@ -16,7 +16,8 @@ module Azure::ARM::Insights
16
16
  attr_accessor :minimum
17
17
 
18
18
  # @return [String] the maximum number of instances for the resource. The
19
- # actual maximum number may be limited by the cores that are available.
19
+ # actual maximum number of instances is limited by the cores that are
20
+ # available in the subscription.
20
21
  attr_accessor :maximum
21
22
 
22
23
  # @return [String] the number of instances that will be set if metrics
@@ -32,7 +32,7 @@ module Azure::ARM::Insights
32
32
  class_name: 'ScaleRule',
33
33
  model_properties: {
34
34
  metric_trigger: {
35
- required: false,
35
+ required: true,
36
36
  serialized_name: 'metricTrigger',
37
37
  type: {
38
38
  name: 'Composite',
@@ -42,7 +42,6 @@ module Azure::ARM::Insights
42
42
  scale_action: {
43
43
  required: true,
44
44
  serialized_name: 'scaleAction',
45
- default_value: {},
46
45
  type: {
47
46
  name: 'Composite',
48
47
  class_name: 'ScaleAction'