pulumi-azure-native 3.0.0a1743504154__py3-none-any.whl → 3.1.0__py3-none-any.whl

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.

Potentially problematic release.


This version of pulumi-azure-native might be problematic. Click here for more details.

Files changed (37) hide show
  1. pulumi_azure_native/__init__.py +9 -0
  2. pulumi_azure_native/monitor/__init__.py +19 -0
  3. pulumi_azure_native/monitor/_enums.py +305 -0
  4. pulumi_azure_native/monitor/_inputs.py +6221 -1259
  5. pulumi_azure_native/monitor/action_group.py +9 -9
  6. pulumi_azure_native/monitor/activity_log_alert.py +388 -0
  7. pulumi_azure_native/monitor/autoscale_setting.py +397 -0
  8. pulumi_azure_native/monitor/data_collection_endpoint.py +468 -0
  9. pulumi_azure_native/monitor/data_collection_rule.py +519 -0
  10. pulumi_azure_native/monitor/data_collection_rule_association.py +300 -0
  11. pulumi_azure_native/monitor/diagnostic_setting.py +444 -0
  12. pulumi_azure_native/monitor/get_action_group.py +2 -2
  13. pulumi_azure_native/monitor/get_activity_log_alert.py +231 -0
  14. pulumi_azure_native/monitor/get_autoscale_setting.py +189 -0
  15. pulumi_azure_native/monitor/get_data_collection_endpoint.py +357 -0
  16. pulumi_azure_native/monitor/get_data_collection_rule.py +344 -0
  17. pulumi_azure_native/monitor/get_data_collection_rule_association.py +231 -0
  18. pulumi_azure_native/monitor/get_diagnostic_setting.py +273 -0
  19. pulumi_azure_native/monitor/get_management_group_diagnostic_setting.py +245 -0
  20. pulumi_azure_native/monitor/get_metric_alert.py +343 -0
  21. pulumi_azure_native/monitor/get_private_endpoint_connection.py +4 -0
  22. pulumi_azure_native/monitor/get_private_link_scope.py +4 -0
  23. pulumi_azure_native/monitor/get_private_link_scoped_resource.py +4 -0
  24. pulumi_azure_native/monitor/get_subscription_diagnostic_setting.py +239 -0
  25. pulumi_azure_native/monitor/list_diagnostic_settings_category.py +85 -0
  26. pulumi_azure_native/monitor/management_group_diagnostic_setting.py +386 -0
  27. pulumi_azure_native/monitor/metric_alert.py +578 -0
  28. pulumi_azure_native/monitor/outputs.py +5646 -716
  29. pulumi_azure_native/monitor/private_endpoint_connection.py +4 -0
  30. pulumi_azure_native/monitor/private_link_scope.py +4 -0
  31. pulumi_azure_native/monitor/private_link_scoped_resource.py +4 -0
  32. pulumi_azure_native/monitor/subscription_diagnostic_setting.py +365 -0
  33. pulumi_azure_native/pulumi-plugin.json +1 -1
  34. {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0.dist-info}/METADATA +1 -1
  35. {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0.dist-info}/RECORD +37 -18
  36. {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0.dist-info}/WHEEL +0 -0
  37. {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0.dist-info}/top_level.txt +0 -0
@@ -3219,12 +3219,21 @@ _utilities.register(
3219
3219
  "fqn": "pulumi_azure_native.monitor",
3220
3220
  "classes": {
3221
3221
  "azure-native:monitor:ActionGroup": "ActionGroup",
3222
+ "azure-native:monitor:ActivityLogAlert": "ActivityLogAlert",
3223
+ "azure-native:monitor:AutoscaleSetting": "AutoscaleSetting",
3222
3224
  "azure-native:monitor:AzureMonitorWorkspace": "AzureMonitorWorkspace",
3225
+ "azure-native:monitor:DataCollectionEndpoint": "DataCollectionEndpoint",
3226
+ "azure-native:monitor:DataCollectionRule": "DataCollectionRule",
3227
+ "azure-native:monitor:DataCollectionRuleAssociation": "DataCollectionRuleAssociation",
3228
+ "azure-native:monitor:DiagnosticSetting": "DiagnosticSetting",
3229
+ "azure-native:monitor:ManagementGroupDiagnosticSetting": "ManagementGroupDiagnosticSetting",
3230
+ "azure-native:monitor:MetricAlert": "MetricAlert",
3223
3231
  "azure-native:monitor:PipelineGroup": "PipelineGroup",
3224
3232
  "azure-native:monitor:PrivateEndpointConnection": "PrivateEndpointConnection",
3225
3233
  "azure-native:monitor:PrivateLinkScope": "PrivateLinkScope",
3226
3234
  "azure-native:monitor:PrivateLinkScopedResource": "PrivateLinkScopedResource",
3227
3235
  "azure-native:monitor:ScheduledQueryRule": "ScheduledQueryRule",
3236
+ "azure-native:monitor:SubscriptionDiagnosticSetting": "SubscriptionDiagnosticSetting",
3228
3237
  "azure-native:monitor:TenantActionGroup": "TenantActionGroup"
3229
3238
  }
3230
3239
  },
@@ -7,20 +7,39 @@ import typing
7
7
  # Export this package's modules as members:
8
8
  from ._enums import *
9
9
  from .action_group import *
10
+ from .activity_log_alert import *
11
+ from .autoscale_setting import *
10
12
  from .azure_monitor_workspace import *
13
+ from .data_collection_endpoint import *
14
+ from .data_collection_rule import *
15
+ from .data_collection_rule_association import *
16
+ from .diagnostic_setting import *
11
17
  from .get_action_group import *
18
+ from .get_activity_log_alert import *
19
+ from .get_autoscale_setting import *
12
20
  from .get_azure_monitor_workspace import *
21
+ from .get_data_collection_endpoint import *
22
+ from .get_data_collection_rule import *
23
+ from .get_data_collection_rule_association import *
24
+ from .get_diagnostic_setting import *
25
+ from .get_management_group_diagnostic_setting import *
26
+ from .get_metric_alert import *
13
27
  from .get_pipeline_group import *
14
28
  from .get_private_endpoint_connection import *
15
29
  from .get_private_link_scope import *
16
30
  from .get_private_link_scoped_resource import *
17
31
  from .get_scheduled_query_rule import *
32
+ from .get_subscription_diagnostic_setting import *
18
33
  from .get_tenant_action_group import *
34
+ from .list_diagnostic_settings_category import *
35
+ from .management_group_diagnostic_setting import *
36
+ from .metric_alert import *
19
37
  from .pipeline_group import *
20
38
  from .private_endpoint_connection import *
21
39
  from .private_link_scope import *
22
40
  from .private_link_scoped_resource import *
23
41
  from .scheduled_query_rule import *
42
+ from .subscription_diagnostic_setting import *
24
43
  from .tenant_action_group import *
25
44
  from ._inputs import *
26
45
  from . import outputs
@@ -6,9 +6,13 @@ from enum import Enum
6
6
 
7
7
  __all__ = [
8
8
  'AccessMode',
9
+ 'AggregationTypeEnum',
10
+ 'ComparisonOperationType',
9
11
  'ConditionOperator',
10
12
  'CriterionType',
11
13
  'DimensionOperator',
14
+ 'DynamicThresholdOperator',
15
+ 'DynamicThresholdSensitivity',
12
16
  'ExporterType',
13
17
  'ExtendedLocationType',
14
18
  'ExternalNetworkingMode',
@@ -16,15 +20,39 @@ __all__ = [
16
20
  'IncidentManagementService',
17
21
  'JsonMapperElement',
18
22
  'Kind',
23
+ 'KnownColumnDefinitionType',
24
+ 'KnownDataCollectionEndpointResourceKind',
25
+ 'KnownDataCollectionRuleResourceKind',
26
+ 'KnownDataFlowStreams',
27
+ 'KnownExtensionDataSourceStreams',
28
+ 'KnownLogFileTextSettingsRecordStartTimestampFormat',
29
+ 'KnownLogFilesDataSourceFormat',
30
+ 'KnownPerfCounterDataSourceStreams',
31
+ 'KnownPrometheusForwarderDataSourceStreams',
32
+ 'KnownPublicNetworkAccessOptions',
33
+ 'KnownSyslogDataSourceFacilityNames',
34
+ 'KnownSyslogDataSourceLogLevels',
35
+ 'KnownSyslogDataSourceStreams',
36
+ 'KnownWindowsEventLogDataSourceStreams',
19
37
  'ManagedServiceIdentityType',
38
+ 'MetricStatisticType',
39
+ 'Odatatype',
40
+ 'OperationType',
41
+ 'Operator',
20
42
  'PipelineType',
43
+ 'PredictiveAutoscalePolicyScaleMode',
21
44
  'PrivateEndpointServiceConnectionStatus',
22
45
  'ProcessorType',
23
46
  'ReceiverType',
47
+ 'RecurrenceFrequency',
48
+ 'ScaleDirection',
49
+ 'ScaleRuleMetricDimensionOperationType',
50
+ 'ScaleType',
24
51
  'ScopedResourceKind',
25
52
  'StreamEncodingType',
26
53
  'SyslogProtocol',
27
54
  'TimeAggregation',
55
+ 'TimeAggregationType',
28
56
  ]
29
57
 
30
58
 
@@ -36,6 +64,29 @@ class AccessMode(str, Enum):
36
64
  PRIVATE_ONLY = "PrivateOnly"
37
65
 
38
66
 
67
+ class AggregationTypeEnum(str, Enum):
68
+ """
69
+ the criteria time aggregation types.
70
+ """
71
+ AVERAGE = "Average"
72
+ COUNT = "Count"
73
+ MINIMUM = "Minimum"
74
+ MAXIMUM = "Maximum"
75
+ TOTAL = "Total"
76
+
77
+
78
+ class ComparisonOperationType(str, Enum):
79
+ """
80
+ the operator that is used to compare the metric data and the threshold.
81
+ """
82
+ EQUALS = "Equals"
83
+ NOT_EQUALS = "NotEquals"
84
+ GREATER_THAN = "GreaterThan"
85
+ GREATER_THAN_OR_EQUAL = "GreaterThanOrEqual"
86
+ LESS_THAN = "LessThan"
87
+ LESS_THAN_OR_EQUAL = "LessThanOrEqual"
88
+
89
+
39
90
  class ConditionOperator(str, Enum):
40
91
  """
41
92
  The criteria operator. Relevant and required only for rules of the kind LogAlert.
@@ -64,6 +115,24 @@ class DimensionOperator(str, Enum):
64
115
  EXCLUDE = "Exclude"
65
116
 
66
117
 
118
+ class DynamicThresholdOperator(str, Enum):
119
+ """
120
+ The operator used to compare the metric value against the threshold.
121
+ """
122
+ GREATER_THAN = "GreaterThan"
123
+ LESS_THAN = "LessThan"
124
+ GREATER_OR_LESS_THAN = "GreaterOrLessThan"
125
+
126
+
127
+ class DynamicThresholdSensitivity(str, Enum):
128
+ """
129
+ The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
130
+ """
131
+ LOW = "Low"
132
+ MEDIUM = "Medium"
133
+ HIGH = "High"
134
+
135
+
67
136
  class ExporterType(str, Enum):
68
137
  """
69
138
  The type of exporter.
@@ -141,6 +210,142 @@ class Kind(str, Enum):
141
210
  LOG_TO_METRIC = "LogToMetric"
142
211
 
143
212
 
213
+ class KnownColumnDefinitionType(str, Enum):
214
+ """
215
+ The type of the column data.
216
+ """
217
+ STRING = "string"
218
+ INT = "int"
219
+ LONG = "long"
220
+ REAL = "real"
221
+ BOOLEAN = "boolean"
222
+ DATETIME = "datetime"
223
+ DYNAMIC = "dynamic"
224
+
225
+
226
+ class KnownDataCollectionEndpointResourceKind(str, Enum):
227
+ """
228
+ The kind of the resource.
229
+ """
230
+ LINUX = "Linux"
231
+ WINDOWS = "Windows"
232
+
233
+
234
+ class KnownDataCollectionRuleResourceKind(str, Enum):
235
+ """
236
+ The kind of the resource.
237
+ """
238
+ LINUX = "Linux"
239
+ WINDOWS = "Windows"
240
+
241
+
242
+ class KnownDataFlowStreams(str, Enum):
243
+ MICROSOFT_EVENT = "Microsoft-Event"
244
+ MICROSOFT_INSIGHTS_METRICS = "Microsoft-InsightsMetrics"
245
+ MICROSOFT_PERF = "Microsoft-Perf"
246
+ MICROSOFT_SYSLOG = "Microsoft-Syslog"
247
+ MICROSOFT_WINDOWS_EVENT = "Microsoft-WindowsEvent"
248
+
249
+
250
+ class KnownExtensionDataSourceStreams(str, Enum):
251
+ MICROSOFT_EVENT = "Microsoft-Event"
252
+ MICROSOFT_INSIGHTS_METRICS = "Microsoft-InsightsMetrics"
253
+ MICROSOFT_PERF = "Microsoft-Perf"
254
+ MICROSOFT_SYSLOG = "Microsoft-Syslog"
255
+ MICROSOFT_WINDOWS_EVENT = "Microsoft-WindowsEvent"
256
+
257
+
258
+ class KnownLogFileTextSettingsRecordStartTimestampFormat(str, Enum):
259
+ """
260
+ One of the supported timestamp formats
261
+ """
262
+ IS_O_8601 = "ISO 8601"
263
+ YYY_Y_M_M_D_D_H_H_M_M_SS = "YYYY-MM-DD HH:MM:SS"
264
+ M_D_YYY_Y_H_H_M_M_S_S_A_M_PM = "M/D/YYYY HH:MM:SS AM/PM"
265
+ MON_D_D_YYY_Y_H_H_M_M_SS = "Mon DD, YYYY HH:MM:SS"
266
+ YY_M_MDD_H_H_MM_SS = "yyMMdd HH:mm:ss"
267
+ DD_M_MYY_H_H_MM_SS = "ddMMyy HH:mm:ss"
268
+ MM_M_D_HH_MM_SS = "MMM d hh:mm:ss"
269
+ DD_MM_M_YYYY_H_H_MM_SS_ZZZ = "dd/MMM/yyyy:HH:mm:ss zzz"
270
+ YYYY_M_M_DD_TH_H_MM_SS_K = "yyyy-MM-ddTHH:mm:ssK"
271
+
272
+
273
+ class KnownLogFilesDataSourceFormat(str, Enum):
274
+ """
275
+ The data format of the log files
276
+ """
277
+ TEXT = "text"
278
+
279
+
280
+ class KnownPerfCounterDataSourceStreams(str, Enum):
281
+ MICROSOFT_PERF = "Microsoft-Perf"
282
+ MICROSOFT_INSIGHTS_METRICS = "Microsoft-InsightsMetrics"
283
+
284
+
285
+ class KnownPrometheusForwarderDataSourceStreams(str, Enum):
286
+ MICROSOFT_PROMETHEUS_METRICS = "Microsoft-PrometheusMetrics"
287
+
288
+
289
+ class KnownPublicNetworkAccessOptions(str, Enum):
290
+ """
291
+ The configuration to set whether network access from public internet to the endpoints are allowed.
292
+ """
293
+ ENABLED = "Enabled"
294
+ DISABLED = "Disabled"
295
+ SECURED_BY_PERIMETER = "SecuredByPerimeter"
296
+
297
+
298
+ class KnownSyslogDataSourceFacilityNames(str, Enum):
299
+ ALERT = "alert"
300
+ AUDIT = "audit"
301
+ AUTH = "auth"
302
+ AUTHPRIV = "authpriv"
303
+ CLOCK = "clock"
304
+ CRON = "cron"
305
+ DAEMON = "daemon"
306
+ FTP = "ftp"
307
+ KERN = "kern"
308
+ LPR = "lpr"
309
+ MAIL = "mail"
310
+ MARK = "mark"
311
+ NEWS = "news"
312
+ NOPRI = "nopri"
313
+ NTP = "ntp"
314
+ SYSLOG = "syslog"
315
+ USER = "user"
316
+ UUCP = "uucp"
317
+ LOCAL0 = "local0"
318
+ LOCAL1 = "local1"
319
+ LOCAL2 = "local2"
320
+ LOCAL3 = "local3"
321
+ LOCAL4 = "local4"
322
+ LOCAL5 = "local5"
323
+ LOCAL6 = "local6"
324
+ LOCAL7 = "local7"
325
+ ASTERISK = "*"
326
+
327
+
328
+ class KnownSyslogDataSourceLogLevels(str, Enum):
329
+ DEBUG = "Debug"
330
+ INFO = "Info"
331
+ NOTICE = "Notice"
332
+ WARNING = "Warning"
333
+ ERROR = "Error"
334
+ CRITICAL = "Critical"
335
+ ALERT = "Alert"
336
+ EMERGENCY = "Emergency"
337
+ ASTERISK = "*"
338
+
339
+
340
+ class KnownSyslogDataSourceStreams(str, Enum):
341
+ MICROSOFT_SYSLOG = "Microsoft-Syslog"
342
+
343
+
344
+ class KnownWindowsEventLogDataSourceStreams(str, Enum):
345
+ MICROSOFT_WINDOWS_EVENT = "Microsoft-WindowsEvent"
346
+ MICROSOFT_EVENT = "Microsoft-Event"
347
+
348
+
144
349
  class ManagedServiceIdentityType(str, Enum):
145
350
  """
146
351
  Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
@@ -151,6 +356,44 @@ class ManagedServiceIdentityType(str, Enum):
151
356
  SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"
152
357
 
153
358
 
359
+ class MetricStatisticType(str, Enum):
360
+ """
361
+ the metric statistic type. How the metrics from multiple instances are combined.
362
+ """
363
+ AVERAGE = "Average"
364
+ MIN = "Min"
365
+ MAX = "Max"
366
+ SUM = "Sum"
367
+ COUNT = "Count"
368
+
369
+
370
+ class Odatatype(str, Enum):
371
+ """
372
+ specifies the type of the alert criteria.
373
+ """
374
+ MICROSOFT_AZURE_MONITOR_SINGLE_RESOURCE_MULTIPLE_METRIC_CRITERIA = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"
375
+ MICROSOFT_AZURE_MONITOR_MULTIPLE_RESOURCE_MULTIPLE_METRIC_CRITERIA = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"
376
+ MICROSOFT_AZURE_MONITOR_WEBTEST_LOCATION_AVAILABILITY_CRITERIA = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"
377
+
378
+
379
+ class OperationType(str, Enum):
380
+ """
381
+ the operation associated with the notification and its value must be "scale"
382
+ """
383
+ SCALE = "Scale"
384
+
385
+
386
+ class Operator(str, Enum):
387
+ """
388
+ the criteria operator.
389
+ """
390
+ EQUALS = "Equals"
391
+ GREATER_THAN = "GreaterThan"
392
+ GREATER_THAN_OR_EQUAL = "GreaterThanOrEqual"
393
+ LESS_THAN = "LessThan"
394
+ LESS_THAN_OR_EQUAL = "LessThanOrEqual"
395
+
396
+
154
397
  class PipelineType(str, Enum):
155
398
  """
156
399
  The type of pipeline
@@ -161,6 +404,15 @@ class PipelineType(str, Enum):
161
404
  """
162
405
 
163
406
 
407
+ class PredictiveAutoscalePolicyScaleMode(str, Enum):
408
+ """
409
+ the predictive autoscale mode
410
+ """
411
+ DISABLED = "Disabled"
412
+ FORECAST_ONLY = "ForecastOnly"
413
+ ENABLED = "Enabled"
414
+
415
+
164
416
  class PrivateEndpointServiceConnectionStatus(str, Enum):
165
417
  """
166
418
  Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
@@ -206,6 +458,47 @@ class ReceiverType(str, Enum):
206
458
  """
207
459
 
208
460
 
461
+ class RecurrenceFrequency(str, Enum):
462
+ """
463
+ the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.
464
+ """
465
+ NONE = "None"
466
+ SECOND = "Second"
467
+ MINUTE = "Minute"
468
+ HOUR = "Hour"
469
+ DAY = "Day"
470
+ WEEK = "Week"
471
+ MONTH = "Month"
472
+ YEAR = "Year"
473
+
474
+
475
+ class ScaleDirection(str, Enum):
476
+ """
477
+ the scale direction. Whether the scaling action increases or decreases the number of instances.
478
+ """
479
+ NONE = "None"
480
+ INCREASE = "Increase"
481
+ DECREASE = "Decrease"
482
+
483
+
484
+ class ScaleRuleMetricDimensionOperationType(str, Enum):
485
+ """
486
+ the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values
487
+ """
488
+ EQUALS = "Equals"
489
+ NOT_EQUALS = "NotEquals"
490
+
491
+
492
+ class ScaleType(str, Enum):
493
+ """
494
+ the type of action that should occur when the scale rule fires.
495
+ """
496
+ CHANGE_COUNT = "ChangeCount"
497
+ PERCENT_CHANGE_COUNT = "PercentChangeCount"
498
+ EXACT_COUNT = "ExactCount"
499
+ SERVICE_ALLOWED_NEXT_VALUE = "ServiceAllowedNextValue"
500
+
501
+
209
502
  class ScopedResourceKind(str, Enum):
210
503
  """
211
504
  The kind of scoped Azure monitor resource.
@@ -267,3 +560,15 @@ class TimeAggregation(str, Enum):
267
560
  MINIMUM = "Minimum"
268
561
  MAXIMUM = "Maximum"
269
562
  TOTAL = "Total"
563
+
564
+
565
+ class TimeAggregationType(str, Enum):
566
+ """
567
+ time aggregation type. How the data that is collected should be combined over time. The default value is Average.
568
+ """
569
+ AVERAGE = "Average"
570
+ MINIMUM = "Minimum"
571
+ MAXIMUM = "Maximum"
572
+ TOTAL = "Total"
573
+ COUNT = "Count"
574
+ LAST = "Last"