pulumi-azure-native 3.1.0a1744041749__py3-none-any.whl → 3.1.0a1744104520__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.

@@ -19,7 +19,12 @@ from ._enums import *
19
19
  __all__ = [
20
20
  'AccessModeSettingsExclusionResponse',
21
21
  'AccessModeSettingsResponse',
22
+ 'ActionGroupResponse',
23
+ 'ActionListResponse',
22
24
  'ActionsResponse',
25
+ 'AlertRuleAllOfConditionResponse',
26
+ 'AlertRuleAnyOfOrLeafConditionResponse',
27
+ 'AlertRuleLeafConditionResponse',
23
28
  'ArmRoleReceiverResponse',
24
29
  'AutomationRunbookReceiverResponse',
25
30
  'AutoscaleNotificationResponse',
@@ -57,6 +62,8 @@ __all__ = [
57
62
  'DestinationsSpecResponseAzureMonitorMetrics',
58
63
  'DiagnosticSettingsCategoryResourceResponse',
59
64
  'DimensionResponse',
65
+ 'DynamicMetricCriteriaResponse',
66
+ 'DynamicThresholdFailingPeriodsResponse',
60
67
  'EmailNotificationResponse',
61
68
  'EmailReceiverResponse',
62
69
  'EventHubDestinationResponse',
@@ -82,6 +89,11 @@ __all__ = [
82
89
  'LogicAppReceiverResponse',
83
90
  'ManagedServiceIdentityResponse',
84
91
  'ManagementGroupLogSettingsResponse',
92
+ 'MetricAlertActionResponse',
93
+ 'MetricAlertMultipleResourceMultipleMetricCriteriaResponse',
94
+ 'MetricAlertSingleResourceMultipleMetricCriteriaResponse',
95
+ 'MetricCriteriaResponse',
96
+ 'MetricDimensionResponse',
85
97
  'MetricSettingsResponse',
86
98
  'MetricTriggerResponse',
87
99
  'MetricsResponse',
@@ -132,6 +144,7 @@ __all__ = [
132
144
  'VoiceReceiverResponse',
133
145
  'WebhookNotificationResponse',
134
146
  'WebhookReceiverResponse',
147
+ 'WebtestLocationAvailabilityCriteriaResponse',
135
148
  'WindowsEventLogDataSourceResponse',
136
149
  'WindowsFirewallLogsDataSourceResponse',
137
150
  ]
@@ -268,6 +281,99 @@ class AccessModeSettingsResponse(dict):
268
281
  return pulumi.get(self, "exclusions")
269
282
 
270
283
 
284
+ @pulumi.output_type
285
+ class ActionGroupResponse(dict):
286
+ """
287
+ A pointer to an Azure Action Group.
288
+ """
289
+ @staticmethod
290
+ def __key_warning(key: str):
291
+ suggest = None
292
+ if key == "actionGroupId":
293
+ suggest = "action_group_id"
294
+ elif key == "webhookProperties":
295
+ suggest = "webhook_properties"
296
+
297
+ if suggest:
298
+ pulumi.log.warn(f"Key '{key}' not found in ActionGroupResponse. Access the value via the '{suggest}' property getter instead.")
299
+
300
+ def __getitem__(self, key: str) -> Any:
301
+ ActionGroupResponse.__key_warning(key)
302
+ return super().__getitem__(key)
303
+
304
+ def get(self, key: str, default = None) -> Any:
305
+ ActionGroupResponse.__key_warning(key)
306
+ return super().get(key, default)
307
+
308
+ def __init__(__self__, *,
309
+ action_group_id: str,
310
+ webhook_properties: Optional[Mapping[str, str]] = None):
311
+ """
312
+ A pointer to an Azure Action Group.
313
+ :param str action_group_id: The resource ID of the Action Group. This cannot be null or empty.
314
+ :param Mapping[str, str] webhook_properties: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
315
+ """
316
+ pulumi.set(__self__, "action_group_id", action_group_id)
317
+ if webhook_properties is not None:
318
+ pulumi.set(__self__, "webhook_properties", webhook_properties)
319
+
320
+ @property
321
+ @pulumi.getter(name="actionGroupId")
322
+ def action_group_id(self) -> str:
323
+ """
324
+ The resource ID of the Action Group. This cannot be null or empty.
325
+ """
326
+ return pulumi.get(self, "action_group_id")
327
+
328
+ @property
329
+ @pulumi.getter(name="webhookProperties")
330
+ def webhook_properties(self) -> Optional[Mapping[str, str]]:
331
+ """
332
+ the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
333
+ """
334
+ return pulumi.get(self, "webhook_properties")
335
+
336
+
337
+ @pulumi.output_type
338
+ class ActionListResponse(dict):
339
+ """
340
+ A list of Activity Log Alert rule actions.
341
+ """
342
+ @staticmethod
343
+ def __key_warning(key: str):
344
+ suggest = None
345
+ if key == "actionGroups":
346
+ suggest = "action_groups"
347
+
348
+ if suggest:
349
+ pulumi.log.warn(f"Key '{key}' not found in ActionListResponse. Access the value via the '{suggest}' property getter instead.")
350
+
351
+ def __getitem__(self, key: str) -> Any:
352
+ ActionListResponse.__key_warning(key)
353
+ return super().__getitem__(key)
354
+
355
+ def get(self, key: str, default = None) -> Any:
356
+ ActionListResponse.__key_warning(key)
357
+ return super().get(key, default)
358
+
359
+ def __init__(__self__, *,
360
+ action_groups: Optional[Sequence['outputs.ActionGroupResponse']] = None):
361
+ """
362
+ A list of Activity Log Alert rule actions.
363
+ :param Sequence['ActionGroupResponse'] action_groups: The list of the Action Groups.
364
+ """
365
+ if action_groups is not None:
366
+ pulumi.set(__self__, "action_groups", action_groups)
367
+
368
+ @property
369
+ @pulumi.getter(name="actionGroups")
370
+ def action_groups(self) -> Optional[Sequence['outputs.ActionGroupResponse']]:
371
+ """
372
+ The list of the Action Groups.
373
+ """
374
+ return pulumi.get(self, "action_groups")
375
+
376
+
271
377
  @pulumi.output_type
272
378
  class ActionsResponse(dict):
273
379
  """
@@ -336,6 +442,206 @@ class ActionsResponse(dict):
336
442
  return pulumi.get(self, "custom_properties")
337
443
 
338
444
 
445
+ @pulumi.output_type
446
+ class AlertRuleAllOfConditionResponse(dict):
447
+ """
448
+ An Activity Log Alert rule condition that is met when all its member conditions are met.
449
+ """
450
+ @staticmethod
451
+ def __key_warning(key: str):
452
+ suggest = None
453
+ if key == "allOf":
454
+ suggest = "all_of"
455
+
456
+ if suggest:
457
+ pulumi.log.warn(f"Key '{key}' not found in AlertRuleAllOfConditionResponse. Access the value via the '{suggest}' property getter instead.")
458
+
459
+ def __getitem__(self, key: str) -> Any:
460
+ AlertRuleAllOfConditionResponse.__key_warning(key)
461
+ return super().__getitem__(key)
462
+
463
+ def get(self, key: str, default = None) -> Any:
464
+ AlertRuleAllOfConditionResponse.__key_warning(key)
465
+ return super().get(key, default)
466
+
467
+ def __init__(__self__, *,
468
+ all_of: Sequence['outputs.AlertRuleAnyOfOrLeafConditionResponse']):
469
+ """
470
+ An Activity Log Alert rule condition that is met when all its member conditions are met.
471
+ :param Sequence['AlertRuleAnyOfOrLeafConditionResponse'] all_of: The list of Activity Log Alert rule conditions.
472
+ """
473
+ pulumi.set(__self__, "all_of", all_of)
474
+
475
+ @property
476
+ @pulumi.getter(name="allOf")
477
+ def all_of(self) -> Sequence['outputs.AlertRuleAnyOfOrLeafConditionResponse']:
478
+ """
479
+ The list of Activity Log Alert rule conditions.
480
+ """
481
+ return pulumi.get(self, "all_of")
482
+
483
+
484
+ @pulumi.output_type
485
+ class AlertRuleAnyOfOrLeafConditionResponse(dict):
486
+ """
487
+ An Activity Log Alert rule condition that is met when all its member conditions are met.
488
+ Each condition can be of one of the following types:
489
+ __Important__: Each type has its unique subset of properties. Properties from different types CANNOT exist in one condition.
490
+ * __Leaf Condition -__ must contain 'field' and either 'equals' or 'containsAny'.
491
+ _Please note, 'anyOf' should __not__ be set in a Leaf Condition._
492
+ * __AnyOf Condition -__ must contain __only__ 'anyOf' (which is an array of Leaf Conditions).
493
+ _Please note, 'field', 'equals' and 'containsAny' should __not__ be set in an AnyOf Condition._
494
+ """
495
+ @staticmethod
496
+ def __key_warning(key: str):
497
+ suggest = None
498
+ if key == "anyOf":
499
+ suggest = "any_of"
500
+ elif key == "containsAny":
501
+ suggest = "contains_any"
502
+
503
+ if suggest:
504
+ pulumi.log.warn(f"Key '{key}' not found in AlertRuleAnyOfOrLeafConditionResponse. Access the value via the '{suggest}' property getter instead.")
505
+
506
+ def __getitem__(self, key: str) -> Any:
507
+ AlertRuleAnyOfOrLeafConditionResponse.__key_warning(key)
508
+ return super().__getitem__(key)
509
+
510
+ def get(self, key: str, default = None) -> Any:
511
+ AlertRuleAnyOfOrLeafConditionResponse.__key_warning(key)
512
+ return super().get(key, default)
513
+
514
+ def __init__(__self__, *,
515
+ any_of: Optional[Sequence['outputs.AlertRuleLeafConditionResponse']] = None,
516
+ contains_any: Optional[Sequence[str]] = None,
517
+ equals: Optional[str] = None,
518
+ field: Optional[str] = None):
519
+ """
520
+ An Activity Log Alert rule condition that is met when all its member conditions are met.
521
+ Each condition can be of one of the following types:
522
+ __Important__: Each type has its unique subset of properties. Properties from different types CANNOT exist in one condition.
523
+ * __Leaf Condition -__ must contain 'field' and either 'equals' or 'containsAny'.
524
+ _Please note, 'anyOf' should __not__ be set in a Leaf Condition._
525
+ * __AnyOf Condition -__ must contain __only__ 'anyOf' (which is an array of Leaf Conditions).
526
+ _Please note, 'field', 'equals' and 'containsAny' should __not__ be set in an AnyOf Condition._
527
+
528
+ :param Sequence['AlertRuleLeafConditionResponse'] any_of: An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
529
+ :param Sequence[str] contains_any: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
530
+ :param str equals: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
531
+ :param str field: The name of the Activity Log event's field that this condition will examine.
532
+ The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
533
+ """
534
+ if any_of is not None:
535
+ pulumi.set(__self__, "any_of", any_of)
536
+ if contains_any is not None:
537
+ pulumi.set(__self__, "contains_any", contains_any)
538
+ if equals is not None:
539
+ pulumi.set(__self__, "equals", equals)
540
+ if field is not None:
541
+ pulumi.set(__self__, "field", field)
542
+
543
+ @property
544
+ @pulumi.getter(name="anyOf")
545
+ def any_of(self) -> Optional[Sequence['outputs.AlertRuleLeafConditionResponse']]:
546
+ """
547
+ An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
548
+ """
549
+ return pulumi.get(self, "any_of")
550
+
551
+ @property
552
+ @pulumi.getter(name="containsAny")
553
+ def contains_any(self) -> Optional[Sequence[str]]:
554
+ """
555
+ The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
556
+ """
557
+ return pulumi.get(self, "contains_any")
558
+
559
+ @property
560
+ @pulumi.getter
561
+ def equals(self) -> Optional[str]:
562
+ """
563
+ The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
564
+ """
565
+ return pulumi.get(self, "equals")
566
+
567
+ @property
568
+ @pulumi.getter
569
+ def field(self) -> Optional[str]:
570
+ """
571
+ The name of the Activity Log event's field that this condition will examine.
572
+ The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
573
+ """
574
+ return pulumi.get(self, "field")
575
+
576
+
577
+ @pulumi.output_type
578
+ class AlertRuleLeafConditionResponse(dict):
579
+ """
580
+ An Activity Log Alert rule condition that is met by comparing the field and value of an Activity Log event.
581
+ This condition must contain 'field' and either 'equals' or 'containsAny'.
582
+ """
583
+ @staticmethod
584
+ def __key_warning(key: str):
585
+ suggest = None
586
+ if key == "containsAny":
587
+ suggest = "contains_any"
588
+
589
+ if suggest:
590
+ pulumi.log.warn(f"Key '{key}' not found in AlertRuleLeafConditionResponse. Access the value via the '{suggest}' property getter instead.")
591
+
592
+ def __getitem__(self, key: str) -> Any:
593
+ AlertRuleLeafConditionResponse.__key_warning(key)
594
+ return super().__getitem__(key)
595
+
596
+ def get(self, key: str, default = None) -> Any:
597
+ AlertRuleLeafConditionResponse.__key_warning(key)
598
+ return super().get(key, default)
599
+
600
+ def __init__(__self__, *,
601
+ contains_any: Optional[Sequence[str]] = None,
602
+ equals: Optional[str] = None,
603
+ field: Optional[str] = None):
604
+ """
605
+ An Activity Log Alert rule condition that is met by comparing the field and value of an Activity Log event.
606
+ This condition must contain 'field' and either 'equals' or 'containsAny'.
607
+ :param Sequence[str] contains_any: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
608
+ :param str equals: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
609
+ :param str field: The name of the Activity Log event's field that this condition will examine.
610
+ The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
611
+ """
612
+ if contains_any is not None:
613
+ pulumi.set(__self__, "contains_any", contains_any)
614
+ if equals is not None:
615
+ pulumi.set(__self__, "equals", equals)
616
+ if field is not None:
617
+ pulumi.set(__self__, "field", field)
618
+
619
+ @property
620
+ @pulumi.getter(name="containsAny")
621
+ def contains_any(self) -> Optional[Sequence[str]]:
622
+ """
623
+ The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
624
+ """
625
+ return pulumi.get(self, "contains_any")
626
+
627
+ @property
628
+ @pulumi.getter
629
+ def equals(self) -> Optional[str]:
630
+ """
631
+ The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
632
+ """
633
+ return pulumi.get(self, "equals")
634
+
635
+ @property
636
+ @pulumi.getter
637
+ def field(self) -> Optional[str]:
638
+ """
639
+ The name of the Activity Log event's field that this condition will examine.
640
+ The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
641
+ """
642
+ return pulumi.get(self, "field")
643
+
644
+
339
645
  @pulumi.output_type
340
646
  class ArmRoleReceiverResponse(dict):
341
647
  """
@@ -2987,84 +3293,305 @@ class DimensionResponse(dict):
2987
3293
 
2988
3294
 
2989
3295
  @pulumi.output_type
2990
- class EmailNotificationResponse(dict):
3296
+ class DynamicMetricCriteriaResponse(dict):
2991
3297
  """
2992
- Email notification of an autoscale event.
3298
+ Criterion for dynamic threshold.
2993
3299
  """
2994
3300
  @staticmethod
2995
3301
  def __key_warning(key: str):
2996
3302
  suggest = None
2997
- if key == "customEmails":
2998
- suggest = "custom_emails"
2999
- elif key == "sendToSubscriptionAdministrator":
3000
- suggest = "send_to_subscription_administrator"
3001
- elif key == "sendToSubscriptionCoAdministrators":
3002
- suggest = "send_to_subscription_co_administrators"
3303
+ if key == "alertSensitivity":
3304
+ suggest = "alert_sensitivity"
3305
+ elif key == "criterionType":
3306
+ suggest = "criterion_type"
3307
+ elif key == "failingPeriods":
3308
+ suggest = "failing_periods"
3309
+ elif key == "metricName":
3310
+ suggest = "metric_name"
3311
+ elif key == "timeAggregation":
3312
+ suggest = "time_aggregation"
3313
+ elif key == "ignoreDataBefore":
3314
+ suggest = "ignore_data_before"
3315
+ elif key == "metricNamespace":
3316
+ suggest = "metric_namespace"
3317
+ elif key == "skipMetricValidation":
3318
+ suggest = "skip_metric_validation"
3003
3319
 
3004
3320
  if suggest:
3005
- pulumi.log.warn(f"Key '{key}' not found in EmailNotificationResponse. Access the value via the '{suggest}' property getter instead.")
3321
+ pulumi.log.warn(f"Key '{key}' not found in DynamicMetricCriteriaResponse. Access the value via the '{suggest}' property getter instead.")
3006
3322
 
3007
3323
  def __getitem__(self, key: str) -> Any:
3008
- EmailNotificationResponse.__key_warning(key)
3324
+ DynamicMetricCriteriaResponse.__key_warning(key)
3009
3325
  return super().__getitem__(key)
3010
3326
 
3011
3327
  def get(self, key: str, default = None) -> Any:
3012
- EmailNotificationResponse.__key_warning(key)
3328
+ DynamicMetricCriteriaResponse.__key_warning(key)
3013
3329
  return super().get(key, default)
3014
3330
 
3015
3331
  def __init__(__self__, *,
3016
- custom_emails: Optional[Sequence[str]] = None,
3017
- send_to_subscription_administrator: Optional[bool] = None,
3018
- send_to_subscription_co_administrators: Optional[bool] = None):
3332
+ alert_sensitivity: str,
3333
+ criterion_type: str,
3334
+ failing_periods: 'outputs.DynamicThresholdFailingPeriodsResponse',
3335
+ metric_name: str,
3336
+ name: str,
3337
+ operator: str,
3338
+ time_aggregation: str,
3339
+ dimensions: Optional[Sequence['outputs.MetricDimensionResponse']] = None,
3340
+ ignore_data_before: Optional[str] = None,
3341
+ metric_namespace: Optional[str] = None,
3342
+ skip_metric_validation: Optional[bool] = None):
3019
3343
  """
3020
- Email notification of an autoscale event.
3021
- :param Sequence[str] custom_emails: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
3022
- :param bool send_to_subscription_administrator: a value indicating whether to send email to subscription administrator.
3023
- :param bool send_to_subscription_co_administrators: a value indicating whether to send email to subscription co-administrators.
3344
+ Criterion for dynamic threshold.
3345
+ :param str alert_sensitivity: The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
3346
+ :param str criterion_type: Specifies the type of threshold criteria
3347
+ Expected value is 'DynamicThresholdCriterion'.
3348
+ :param 'DynamicThresholdFailingPeriodsResponse' failing_periods: The minimum number of violations required within the selected lookback time window required to raise an alert.
3349
+ :param str metric_name: Name of the metric.
3350
+ :param str name: Name of the criteria.
3351
+ :param str operator: The operator used to compare the metric value against the threshold.
3352
+ :param str time_aggregation: the criteria time aggregation types.
3353
+ :param Sequence['MetricDimensionResponse'] dimensions: List of dimension conditions.
3354
+ :param str ignore_data_before: Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
3355
+ :param str metric_namespace: Namespace of the metric.
3356
+ :param bool skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
3357
+ """
3358
+ pulumi.set(__self__, "alert_sensitivity", alert_sensitivity)
3359
+ pulumi.set(__self__, "criterion_type", 'DynamicThresholdCriterion')
3360
+ pulumi.set(__self__, "failing_periods", failing_periods)
3361
+ pulumi.set(__self__, "metric_name", metric_name)
3362
+ pulumi.set(__self__, "name", name)
3363
+ pulumi.set(__self__, "operator", operator)
3364
+ pulumi.set(__self__, "time_aggregation", time_aggregation)
3365
+ if dimensions is not None:
3366
+ pulumi.set(__self__, "dimensions", dimensions)
3367
+ if ignore_data_before is not None:
3368
+ pulumi.set(__self__, "ignore_data_before", ignore_data_before)
3369
+ if metric_namespace is not None:
3370
+ pulumi.set(__self__, "metric_namespace", metric_namespace)
3371
+ if skip_metric_validation is not None:
3372
+ pulumi.set(__self__, "skip_metric_validation", skip_metric_validation)
3373
+
3374
+ @property
3375
+ @pulumi.getter(name="alertSensitivity")
3376
+ def alert_sensitivity(self) -> str:
3024
3377
  """
3025
- if custom_emails is not None:
3026
- pulumi.set(__self__, "custom_emails", custom_emails)
3027
- if send_to_subscription_administrator is None:
3028
- send_to_subscription_administrator = False
3029
- if send_to_subscription_administrator is not None:
3030
- pulumi.set(__self__, "send_to_subscription_administrator", send_to_subscription_administrator)
3031
- if send_to_subscription_co_administrators is None:
3032
- send_to_subscription_co_administrators = False
3033
- if send_to_subscription_co_administrators is not None:
3034
- pulumi.set(__self__, "send_to_subscription_co_administrators", send_to_subscription_co_administrators)
3378
+ The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
3379
+ """
3380
+ return pulumi.get(self, "alert_sensitivity")
3035
3381
 
3036
3382
  @property
3037
- @pulumi.getter(name="customEmails")
3038
- def custom_emails(self) -> Optional[Sequence[str]]:
3383
+ @pulumi.getter(name="criterionType")
3384
+ def criterion_type(self) -> str:
3039
3385
  """
3040
- the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
3386
+ Specifies the type of threshold criteria
3387
+ Expected value is 'DynamicThresholdCriterion'.
3041
3388
  """
3042
- return pulumi.get(self, "custom_emails")
3389
+ return pulumi.get(self, "criterion_type")
3043
3390
 
3044
3391
  @property
3045
- @pulumi.getter(name="sendToSubscriptionAdministrator")
3046
- def send_to_subscription_administrator(self) -> Optional[bool]:
3392
+ @pulumi.getter(name="failingPeriods")
3393
+ def failing_periods(self) -> 'outputs.DynamicThresholdFailingPeriodsResponse':
3047
3394
  """
3048
- a value indicating whether to send email to subscription administrator.
3395
+ The minimum number of violations required within the selected lookback time window required to raise an alert.
3049
3396
  """
3050
- return pulumi.get(self, "send_to_subscription_administrator")
3397
+ return pulumi.get(self, "failing_periods")
3051
3398
 
3052
3399
  @property
3053
- @pulumi.getter(name="sendToSubscriptionCoAdministrators")
3054
- def send_to_subscription_co_administrators(self) -> Optional[bool]:
3400
+ @pulumi.getter(name="metricName")
3401
+ def metric_name(self) -> str:
3055
3402
  """
3056
- a value indicating whether to send email to subscription co-administrators.
3403
+ Name of the metric.
3057
3404
  """
3058
- return pulumi.get(self, "send_to_subscription_co_administrators")
3405
+ return pulumi.get(self, "metric_name")
3059
3406
 
3407
+ @property
3408
+ @pulumi.getter
3409
+ def name(self) -> str:
3410
+ """
3411
+ Name of the criteria.
3412
+ """
3413
+ return pulumi.get(self, "name")
3060
3414
 
3061
- @pulumi.output_type
3062
- class EmailReceiverResponse(dict):
3063
- """
3064
- An email receiver.
3065
- """
3066
- @staticmethod
3067
- def __key_warning(key: str):
3415
+ @property
3416
+ @pulumi.getter
3417
+ def operator(self) -> str:
3418
+ """
3419
+ The operator used to compare the metric value against the threshold.
3420
+ """
3421
+ return pulumi.get(self, "operator")
3422
+
3423
+ @property
3424
+ @pulumi.getter(name="timeAggregation")
3425
+ def time_aggregation(self) -> str:
3426
+ """
3427
+ the criteria time aggregation types.
3428
+ """
3429
+ return pulumi.get(self, "time_aggregation")
3430
+
3431
+ @property
3432
+ @pulumi.getter
3433
+ def dimensions(self) -> Optional[Sequence['outputs.MetricDimensionResponse']]:
3434
+ """
3435
+ List of dimension conditions.
3436
+ """
3437
+ return pulumi.get(self, "dimensions")
3438
+
3439
+ @property
3440
+ @pulumi.getter(name="ignoreDataBefore")
3441
+ def ignore_data_before(self) -> Optional[str]:
3442
+ """
3443
+ Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
3444
+ """
3445
+ return pulumi.get(self, "ignore_data_before")
3446
+
3447
+ @property
3448
+ @pulumi.getter(name="metricNamespace")
3449
+ def metric_namespace(self) -> Optional[str]:
3450
+ """
3451
+ Namespace of the metric.
3452
+ """
3453
+ return pulumi.get(self, "metric_namespace")
3454
+
3455
+ @property
3456
+ @pulumi.getter(name="skipMetricValidation")
3457
+ def skip_metric_validation(self) -> Optional[bool]:
3458
+ """
3459
+ Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
3460
+ """
3461
+ return pulumi.get(self, "skip_metric_validation")
3462
+
3463
+
3464
+ @pulumi.output_type
3465
+ class DynamicThresholdFailingPeriodsResponse(dict):
3466
+ """
3467
+ The minimum number of violations required within the selected lookback time window required to raise an alert.
3468
+ """
3469
+ @staticmethod
3470
+ def __key_warning(key: str):
3471
+ suggest = None
3472
+ if key == "minFailingPeriodsToAlert":
3473
+ suggest = "min_failing_periods_to_alert"
3474
+ elif key == "numberOfEvaluationPeriods":
3475
+ suggest = "number_of_evaluation_periods"
3476
+
3477
+ if suggest:
3478
+ pulumi.log.warn(f"Key '{key}' not found in DynamicThresholdFailingPeriodsResponse. Access the value via the '{suggest}' property getter instead.")
3479
+
3480
+ def __getitem__(self, key: str) -> Any:
3481
+ DynamicThresholdFailingPeriodsResponse.__key_warning(key)
3482
+ return super().__getitem__(key)
3483
+
3484
+ def get(self, key: str, default = None) -> Any:
3485
+ DynamicThresholdFailingPeriodsResponse.__key_warning(key)
3486
+ return super().get(key, default)
3487
+
3488
+ def __init__(__self__, *,
3489
+ min_failing_periods_to_alert: float,
3490
+ number_of_evaluation_periods: float):
3491
+ """
3492
+ The minimum number of violations required within the selected lookback time window required to raise an alert.
3493
+ :param float min_failing_periods_to_alert: The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
3494
+ :param float number_of_evaluation_periods: The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
3495
+ """
3496
+ pulumi.set(__self__, "min_failing_periods_to_alert", min_failing_periods_to_alert)
3497
+ pulumi.set(__self__, "number_of_evaluation_periods", number_of_evaluation_periods)
3498
+
3499
+ @property
3500
+ @pulumi.getter(name="minFailingPeriodsToAlert")
3501
+ def min_failing_periods_to_alert(self) -> float:
3502
+ """
3503
+ The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
3504
+ """
3505
+ return pulumi.get(self, "min_failing_periods_to_alert")
3506
+
3507
+ @property
3508
+ @pulumi.getter(name="numberOfEvaluationPeriods")
3509
+ def number_of_evaluation_periods(self) -> float:
3510
+ """
3511
+ The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
3512
+ """
3513
+ return pulumi.get(self, "number_of_evaluation_periods")
3514
+
3515
+
3516
+ @pulumi.output_type
3517
+ class EmailNotificationResponse(dict):
3518
+ """
3519
+ Email notification of an autoscale event.
3520
+ """
3521
+ @staticmethod
3522
+ def __key_warning(key: str):
3523
+ suggest = None
3524
+ if key == "customEmails":
3525
+ suggest = "custom_emails"
3526
+ elif key == "sendToSubscriptionAdministrator":
3527
+ suggest = "send_to_subscription_administrator"
3528
+ elif key == "sendToSubscriptionCoAdministrators":
3529
+ suggest = "send_to_subscription_co_administrators"
3530
+
3531
+ if suggest:
3532
+ pulumi.log.warn(f"Key '{key}' not found in EmailNotificationResponse. Access the value via the '{suggest}' property getter instead.")
3533
+
3534
+ def __getitem__(self, key: str) -> Any:
3535
+ EmailNotificationResponse.__key_warning(key)
3536
+ return super().__getitem__(key)
3537
+
3538
+ def get(self, key: str, default = None) -> Any:
3539
+ EmailNotificationResponse.__key_warning(key)
3540
+ return super().get(key, default)
3541
+
3542
+ def __init__(__self__, *,
3543
+ custom_emails: Optional[Sequence[str]] = None,
3544
+ send_to_subscription_administrator: Optional[bool] = None,
3545
+ send_to_subscription_co_administrators: Optional[bool] = None):
3546
+ """
3547
+ Email notification of an autoscale event.
3548
+ :param Sequence[str] custom_emails: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
3549
+ :param bool send_to_subscription_administrator: a value indicating whether to send email to subscription administrator.
3550
+ :param bool send_to_subscription_co_administrators: a value indicating whether to send email to subscription co-administrators.
3551
+ """
3552
+ if custom_emails is not None:
3553
+ pulumi.set(__self__, "custom_emails", custom_emails)
3554
+ if send_to_subscription_administrator is None:
3555
+ send_to_subscription_administrator = False
3556
+ if send_to_subscription_administrator is not None:
3557
+ pulumi.set(__self__, "send_to_subscription_administrator", send_to_subscription_administrator)
3558
+ if send_to_subscription_co_administrators is None:
3559
+ send_to_subscription_co_administrators = False
3560
+ if send_to_subscription_co_administrators is not None:
3561
+ pulumi.set(__self__, "send_to_subscription_co_administrators", send_to_subscription_co_administrators)
3562
+
3563
+ @property
3564
+ @pulumi.getter(name="customEmails")
3565
+ def custom_emails(self) -> Optional[Sequence[str]]:
3566
+ """
3567
+ the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
3568
+ """
3569
+ return pulumi.get(self, "custom_emails")
3570
+
3571
+ @property
3572
+ @pulumi.getter(name="sendToSubscriptionAdministrator")
3573
+ def send_to_subscription_administrator(self) -> Optional[bool]:
3574
+ """
3575
+ a value indicating whether to send email to subscription administrator.
3576
+ """
3577
+ return pulumi.get(self, "send_to_subscription_administrator")
3578
+
3579
+ @property
3580
+ @pulumi.getter(name="sendToSubscriptionCoAdministrators")
3581
+ def send_to_subscription_co_administrators(self) -> Optional[bool]:
3582
+ """
3583
+ a value indicating whether to send email to subscription co-administrators.
3584
+ """
3585
+ return pulumi.get(self, "send_to_subscription_co_administrators")
3586
+
3587
+
3588
+ @pulumi.output_type
3589
+ class EmailReceiverResponse(dict):
3590
+ """
3591
+ An email receiver.
3592
+ """
3593
+ @staticmethod
3594
+ def __key_warning(key: str):
3068
3595
  suggest = None
3069
3596
  if key == "emailAddress":
3070
3597
  suggest = "email_address"
@@ -4401,250 +4928,598 @@ class LogSettingsResponse(dict):
4401
4928
  @pulumi.getter(name="categoryGroup")
4402
4929
  def category_group(self) -> Optional[str]:
4403
4930
  """
4404
- Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
4931
+ Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
4932
+ """
4933
+ return pulumi.get(self, "category_group")
4934
+
4935
+ @property
4936
+ @pulumi.getter(name="retentionPolicy")
4937
+ def retention_policy(self) -> Optional['outputs.RetentionPolicyResponse']:
4938
+ """
4939
+ the retention policy for this log.
4940
+ """
4941
+ return pulumi.get(self, "retention_policy")
4942
+
4943
+
4944
+ @pulumi.output_type
4945
+ class LogicAppReceiverResponse(dict):
4946
+ """
4947
+ A logic app receiver.
4948
+ """
4949
+ @staticmethod
4950
+ def __key_warning(key: str):
4951
+ suggest = None
4952
+ if key == "callbackUrl":
4953
+ suggest = "callback_url"
4954
+ elif key == "resourceId":
4955
+ suggest = "resource_id"
4956
+ elif key == "managedIdentity":
4957
+ suggest = "managed_identity"
4958
+ elif key == "useCommonAlertSchema":
4959
+ suggest = "use_common_alert_schema"
4960
+
4961
+ if suggest:
4962
+ pulumi.log.warn(f"Key '{key}' not found in LogicAppReceiverResponse. Access the value via the '{suggest}' property getter instead.")
4963
+
4964
+ def __getitem__(self, key: str) -> Any:
4965
+ LogicAppReceiverResponse.__key_warning(key)
4966
+ return super().__getitem__(key)
4967
+
4968
+ def get(self, key: str, default = None) -> Any:
4969
+ LogicAppReceiverResponse.__key_warning(key)
4970
+ return super().get(key, default)
4971
+
4972
+ def __init__(__self__, *,
4973
+ callback_url: str,
4974
+ name: str,
4975
+ resource_id: str,
4976
+ managed_identity: Optional[str] = None,
4977
+ use_common_alert_schema: Optional[bool] = None):
4978
+ """
4979
+ A logic app receiver.
4980
+ :param str callback_url: The callback url where http request sent to.
4981
+ :param str name: The name of the logic app receiver. Names must be unique across all receivers within an action group.
4982
+ :param str resource_id: The azure resource id of the logic app receiver.
4983
+ :param str managed_identity: The principal id of the managed identity. The value can be "None", "SystemAssigned"
4984
+ :param bool use_common_alert_schema: Indicates whether to use common alert schema.
4985
+ """
4986
+ pulumi.set(__self__, "callback_url", callback_url)
4987
+ pulumi.set(__self__, "name", name)
4988
+ pulumi.set(__self__, "resource_id", resource_id)
4989
+ if managed_identity is not None:
4990
+ pulumi.set(__self__, "managed_identity", managed_identity)
4991
+ if use_common_alert_schema is None:
4992
+ use_common_alert_schema = False
4993
+ if use_common_alert_schema is not None:
4994
+ pulumi.set(__self__, "use_common_alert_schema", use_common_alert_schema)
4995
+
4996
+ @property
4997
+ @pulumi.getter(name="callbackUrl")
4998
+ def callback_url(self) -> str:
4999
+ """
5000
+ The callback url where http request sent to.
5001
+ """
5002
+ return pulumi.get(self, "callback_url")
5003
+
5004
+ @property
5005
+ @pulumi.getter
5006
+ def name(self) -> str:
5007
+ """
5008
+ The name of the logic app receiver. Names must be unique across all receivers within an action group.
5009
+ """
5010
+ return pulumi.get(self, "name")
5011
+
5012
+ @property
5013
+ @pulumi.getter(name="resourceId")
5014
+ def resource_id(self) -> str:
5015
+ """
5016
+ The azure resource id of the logic app receiver.
5017
+ """
5018
+ return pulumi.get(self, "resource_id")
5019
+
5020
+ @property
5021
+ @pulumi.getter(name="managedIdentity")
5022
+ def managed_identity(self) -> Optional[str]:
5023
+ """
5024
+ The principal id of the managed identity. The value can be "None", "SystemAssigned"
5025
+ """
5026
+ return pulumi.get(self, "managed_identity")
5027
+
5028
+ @property
5029
+ @pulumi.getter(name="useCommonAlertSchema")
5030
+ def use_common_alert_schema(self) -> Optional[bool]:
5031
+ """
5032
+ Indicates whether to use common alert schema.
5033
+ """
5034
+ return pulumi.get(self, "use_common_alert_schema")
5035
+
5036
+
5037
+ @pulumi.output_type
5038
+ class ManagedServiceIdentityResponse(dict):
5039
+ """
5040
+ Managed service identity (system assigned and/or user assigned identities)
5041
+ """
5042
+ @staticmethod
5043
+ def __key_warning(key: str):
5044
+ suggest = None
5045
+ if key == "principalId":
5046
+ suggest = "principal_id"
5047
+ elif key == "tenantId":
5048
+ suggest = "tenant_id"
5049
+ elif key == "userAssignedIdentities":
5050
+ suggest = "user_assigned_identities"
5051
+
5052
+ if suggest:
5053
+ pulumi.log.warn(f"Key '{key}' not found in ManagedServiceIdentityResponse. Access the value via the '{suggest}' property getter instead.")
5054
+
5055
+ def __getitem__(self, key: str) -> Any:
5056
+ ManagedServiceIdentityResponse.__key_warning(key)
5057
+ return super().__getitem__(key)
5058
+
5059
+ def get(self, key: str, default = None) -> Any:
5060
+ ManagedServiceIdentityResponse.__key_warning(key)
5061
+ return super().get(key, default)
5062
+
5063
+ def __init__(__self__, *,
5064
+ principal_id: str,
5065
+ tenant_id: str,
5066
+ type: str,
5067
+ user_assigned_identities: Optional[Mapping[str, 'outputs.UserAssignedIdentityResponse']] = None):
5068
+ """
5069
+ Managed service identity (system assigned and/or user assigned identities)
5070
+ :param str principal_id: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
5071
+ :param str tenant_id: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
5072
+ :param str type: Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
5073
+ :param Mapping[str, 'UserAssignedIdentityResponse'] user_assigned_identities: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
5074
+ """
5075
+ pulumi.set(__self__, "principal_id", principal_id)
5076
+ pulumi.set(__self__, "tenant_id", tenant_id)
5077
+ pulumi.set(__self__, "type", type)
5078
+ if user_assigned_identities is not None:
5079
+ pulumi.set(__self__, "user_assigned_identities", user_assigned_identities)
5080
+
5081
+ @property
5082
+ @pulumi.getter(name="principalId")
5083
+ def principal_id(self) -> str:
5084
+ """
5085
+ The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
5086
+ """
5087
+ return pulumi.get(self, "principal_id")
5088
+
5089
+ @property
5090
+ @pulumi.getter(name="tenantId")
5091
+ def tenant_id(self) -> str:
5092
+ """
5093
+ The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
5094
+ """
5095
+ return pulumi.get(self, "tenant_id")
5096
+
5097
+ @property
5098
+ @pulumi.getter
5099
+ def type(self) -> str:
5100
+ """
5101
+ Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
5102
+ """
5103
+ return pulumi.get(self, "type")
5104
+
5105
+ @property
5106
+ @pulumi.getter(name="userAssignedIdentities")
5107
+ def user_assigned_identities(self) -> Optional[Mapping[str, 'outputs.UserAssignedIdentityResponse']]:
5108
+ """
5109
+ The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
5110
+ """
5111
+ return pulumi.get(self, "user_assigned_identities")
5112
+
5113
+
5114
+ @pulumi.output_type
5115
+ class ManagementGroupLogSettingsResponse(dict):
5116
+ """
5117
+ Part of Management Group diagnostic setting. Specifies the settings for a particular log.
5118
+ """
5119
+ @staticmethod
5120
+ def __key_warning(key: str):
5121
+ suggest = None
5122
+ if key == "categoryGroup":
5123
+ suggest = "category_group"
5124
+
5125
+ if suggest:
5126
+ pulumi.log.warn(f"Key '{key}' not found in ManagementGroupLogSettingsResponse. Access the value via the '{suggest}' property getter instead.")
5127
+
5128
+ def __getitem__(self, key: str) -> Any:
5129
+ ManagementGroupLogSettingsResponse.__key_warning(key)
5130
+ return super().__getitem__(key)
5131
+
5132
+ def get(self, key: str, default = None) -> Any:
5133
+ ManagementGroupLogSettingsResponse.__key_warning(key)
5134
+ return super().get(key, default)
5135
+
5136
+ def __init__(__self__, *,
5137
+ enabled: bool,
5138
+ category: Optional[str] = None,
5139
+ category_group: Optional[str] = None):
5140
+ """
5141
+ Part of Management Group diagnostic setting. Specifies the settings for a particular log.
5142
+ :param bool enabled: a value indicating whether this log is enabled.
5143
+ :param str category: Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
5144
+ :param str category_group: Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
5145
+ """
5146
+ pulumi.set(__self__, "enabled", enabled)
5147
+ if category is not None:
5148
+ pulumi.set(__self__, "category", category)
5149
+ if category_group is not None:
5150
+ pulumi.set(__self__, "category_group", category_group)
5151
+
5152
+ @property
5153
+ @pulumi.getter
5154
+ def enabled(self) -> bool:
5155
+ """
5156
+ a value indicating whether this log is enabled.
5157
+ """
5158
+ return pulumi.get(self, "enabled")
5159
+
5160
+ @property
5161
+ @pulumi.getter
5162
+ def category(self) -> Optional[str]:
5163
+ """
5164
+ Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
5165
+ """
5166
+ return pulumi.get(self, "category")
5167
+
5168
+ @property
5169
+ @pulumi.getter(name="categoryGroup")
5170
+ def category_group(self) -> Optional[str]:
5171
+ """
5172
+ Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
5173
+ """
5174
+ return pulumi.get(self, "category_group")
5175
+
5176
+
5177
+ @pulumi.output_type
5178
+ class MetricAlertActionResponse(dict):
5179
+ """
5180
+ An alert action.
5181
+ """
5182
+ @staticmethod
5183
+ def __key_warning(key: str):
5184
+ suggest = None
5185
+ if key == "actionGroupId":
5186
+ suggest = "action_group_id"
5187
+ elif key == "webHookProperties":
5188
+ suggest = "web_hook_properties"
5189
+
5190
+ if suggest:
5191
+ pulumi.log.warn(f"Key '{key}' not found in MetricAlertActionResponse. Access the value via the '{suggest}' property getter instead.")
5192
+
5193
+ def __getitem__(self, key: str) -> Any:
5194
+ MetricAlertActionResponse.__key_warning(key)
5195
+ return super().__getitem__(key)
5196
+
5197
+ def get(self, key: str, default = None) -> Any:
5198
+ MetricAlertActionResponse.__key_warning(key)
5199
+ return super().get(key, default)
5200
+
5201
+ def __init__(__self__, *,
5202
+ action_group_id: Optional[str] = None,
5203
+ web_hook_properties: Optional[Mapping[str, str]] = None):
5204
+ """
5205
+ An alert action.
5206
+ :param str action_group_id: the id of the action group to use.
5207
+ :param Mapping[str, str] web_hook_properties: This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
5208
+ """
5209
+ if action_group_id is not None:
5210
+ pulumi.set(__self__, "action_group_id", action_group_id)
5211
+ if web_hook_properties is not None:
5212
+ pulumi.set(__self__, "web_hook_properties", web_hook_properties)
5213
+
5214
+ @property
5215
+ @pulumi.getter(name="actionGroupId")
5216
+ def action_group_id(self) -> Optional[str]:
5217
+ """
5218
+ the id of the action group to use.
5219
+ """
5220
+ return pulumi.get(self, "action_group_id")
5221
+
5222
+ @property
5223
+ @pulumi.getter(name="webHookProperties")
5224
+ def web_hook_properties(self) -> Optional[Mapping[str, str]]:
5225
+ """
5226
+ This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
5227
+ """
5228
+ return pulumi.get(self, "web_hook_properties")
5229
+
5230
+
5231
+ @pulumi.output_type
5232
+ class MetricAlertMultipleResourceMultipleMetricCriteriaResponse(dict):
5233
+ """
5234
+ Specifies the metric alert criteria for multiple resource that has multiple metric criteria.
5235
+ """
5236
+ @staticmethod
5237
+ def __key_warning(key: str):
5238
+ suggest = None
5239
+ if key == "odataType":
5240
+ suggest = "odata_type"
5241
+ elif key == "allOf":
5242
+ suggest = "all_of"
5243
+
5244
+ if suggest:
5245
+ pulumi.log.warn(f"Key '{key}' not found in MetricAlertMultipleResourceMultipleMetricCriteriaResponse. Access the value via the '{suggest}' property getter instead.")
5246
+
5247
+ def __getitem__(self, key: str) -> Any:
5248
+ MetricAlertMultipleResourceMultipleMetricCriteriaResponse.__key_warning(key)
5249
+ return super().__getitem__(key)
5250
+
5251
+ def get(self, key: str, default = None) -> Any:
5252
+ MetricAlertMultipleResourceMultipleMetricCriteriaResponse.__key_warning(key)
5253
+ return super().get(key, default)
5254
+
5255
+ def __init__(__self__, *,
5256
+ odata_type: str,
5257
+ all_of: Optional[Sequence[Any]] = None):
5258
+ """
5259
+ Specifies the metric alert criteria for multiple resource that has multiple metric criteria.
5260
+ :param str odata_type: specifies the type of the alert criteria.
5261
+ Expected value is 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria'.
5262
+ :param Sequence[Union['DynamicMetricCriteriaResponse', 'MetricCriteriaResponse']] all_of: the list of multiple metric criteria for this 'all of' operation.
5263
+ """
5264
+ pulumi.set(__self__, "odata_type", 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria')
5265
+ if all_of is not None:
5266
+ pulumi.set(__self__, "all_of", all_of)
5267
+
5268
+ @property
5269
+ @pulumi.getter(name="odataType")
5270
+ def odata_type(self) -> str:
5271
+ """
5272
+ specifies the type of the alert criteria.
5273
+ Expected value is 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria'.
5274
+ """
5275
+ return pulumi.get(self, "odata_type")
5276
+
5277
+ @property
5278
+ @pulumi.getter(name="allOf")
5279
+ def all_of(self) -> Optional[Sequence[Any]]:
5280
+ """
5281
+ the list of multiple metric criteria for this 'all of' operation.
5282
+ """
5283
+ return pulumi.get(self, "all_of")
5284
+
5285
+
5286
+ @pulumi.output_type
5287
+ class MetricAlertSingleResourceMultipleMetricCriteriaResponse(dict):
5288
+ """
5289
+ Specifies the metric alert criteria for a single resource that has multiple metric criteria.
5290
+ """
5291
+ @staticmethod
5292
+ def __key_warning(key: str):
5293
+ suggest = None
5294
+ if key == "odataType":
5295
+ suggest = "odata_type"
5296
+ elif key == "allOf":
5297
+ suggest = "all_of"
5298
+
5299
+ if suggest:
5300
+ pulumi.log.warn(f"Key '{key}' not found in MetricAlertSingleResourceMultipleMetricCriteriaResponse. Access the value via the '{suggest}' property getter instead.")
5301
+
5302
+ def __getitem__(self, key: str) -> Any:
5303
+ MetricAlertSingleResourceMultipleMetricCriteriaResponse.__key_warning(key)
5304
+ return super().__getitem__(key)
5305
+
5306
+ def get(self, key: str, default = None) -> Any:
5307
+ MetricAlertSingleResourceMultipleMetricCriteriaResponse.__key_warning(key)
5308
+ return super().get(key, default)
5309
+
5310
+ def __init__(__self__, *,
5311
+ odata_type: str,
5312
+ all_of: Optional[Sequence['outputs.MetricCriteriaResponse']] = None):
5313
+ """
5314
+ Specifies the metric alert criteria for a single resource that has multiple metric criteria.
5315
+ :param str odata_type: specifies the type of the alert criteria.
5316
+ Expected value is 'Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria'.
5317
+ :param Sequence['MetricCriteriaResponse'] all_of: The list of metric criteria for this 'all of' operation.
5318
+ """
5319
+ pulumi.set(__self__, "odata_type", 'Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria')
5320
+ if all_of is not None:
5321
+ pulumi.set(__self__, "all_of", all_of)
5322
+
5323
+ @property
5324
+ @pulumi.getter(name="odataType")
5325
+ def odata_type(self) -> str:
5326
+ """
5327
+ specifies the type of the alert criteria.
5328
+ Expected value is 'Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria'.
4405
5329
  """
4406
- return pulumi.get(self, "category_group")
5330
+ return pulumi.get(self, "odata_type")
4407
5331
 
4408
5332
  @property
4409
- @pulumi.getter(name="retentionPolicy")
4410
- def retention_policy(self) -> Optional['outputs.RetentionPolicyResponse']:
5333
+ @pulumi.getter(name="allOf")
5334
+ def all_of(self) -> Optional[Sequence['outputs.MetricCriteriaResponse']]:
4411
5335
  """
4412
- the retention policy for this log.
5336
+ The list of metric criteria for this 'all of' operation.
4413
5337
  """
4414
- return pulumi.get(self, "retention_policy")
5338
+ return pulumi.get(self, "all_of")
4415
5339
 
4416
5340
 
4417
5341
  @pulumi.output_type
4418
- class LogicAppReceiverResponse(dict):
5342
+ class MetricCriteriaResponse(dict):
4419
5343
  """
4420
- A logic app receiver.
5344
+ Criterion to filter metrics.
4421
5345
  """
4422
5346
  @staticmethod
4423
5347
  def __key_warning(key: str):
4424
5348
  suggest = None
4425
- if key == "callbackUrl":
4426
- suggest = "callback_url"
4427
- elif key == "resourceId":
4428
- suggest = "resource_id"
4429
- elif key == "managedIdentity":
4430
- suggest = "managed_identity"
4431
- elif key == "useCommonAlertSchema":
4432
- suggest = "use_common_alert_schema"
5349
+ if key == "criterionType":
5350
+ suggest = "criterion_type"
5351
+ elif key == "metricName":
5352
+ suggest = "metric_name"
5353
+ elif key == "timeAggregation":
5354
+ suggest = "time_aggregation"
5355
+ elif key == "metricNamespace":
5356
+ suggest = "metric_namespace"
5357
+ elif key == "skipMetricValidation":
5358
+ suggest = "skip_metric_validation"
4433
5359
 
4434
5360
  if suggest:
4435
- pulumi.log.warn(f"Key '{key}' not found in LogicAppReceiverResponse. Access the value via the '{suggest}' property getter instead.")
5361
+ pulumi.log.warn(f"Key '{key}' not found in MetricCriteriaResponse. Access the value via the '{suggest}' property getter instead.")
4436
5362
 
4437
5363
  def __getitem__(self, key: str) -> Any:
4438
- LogicAppReceiverResponse.__key_warning(key)
5364
+ MetricCriteriaResponse.__key_warning(key)
4439
5365
  return super().__getitem__(key)
4440
5366
 
4441
5367
  def get(self, key: str, default = None) -> Any:
4442
- LogicAppReceiverResponse.__key_warning(key)
5368
+ MetricCriteriaResponse.__key_warning(key)
4443
5369
  return super().get(key, default)
4444
5370
 
4445
5371
  def __init__(__self__, *,
4446
- callback_url: str,
5372
+ criterion_type: str,
5373
+ metric_name: str,
4447
5374
  name: str,
4448
- resource_id: str,
4449
- managed_identity: Optional[str] = None,
4450
- use_common_alert_schema: Optional[bool] = None):
4451
- """
4452
- A logic app receiver.
4453
- :param str callback_url: The callback url where http request sent to.
4454
- :param str name: The name of the logic app receiver. Names must be unique across all receivers within an action group.
4455
- :param str resource_id: The azure resource id of the logic app receiver.
4456
- :param str managed_identity: The principal id of the managed identity. The value can be "None", "SystemAssigned"
4457
- :param bool use_common_alert_schema: Indicates whether to use common alert schema.
5375
+ operator: str,
5376
+ threshold: float,
5377
+ time_aggregation: str,
5378
+ dimensions: Optional[Sequence['outputs.MetricDimensionResponse']] = None,
5379
+ metric_namespace: Optional[str] = None,
5380
+ skip_metric_validation: Optional[bool] = None):
4458
5381
  """
4459
- pulumi.set(__self__, "callback_url", callback_url)
5382
+ Criterion to filter metrics.
5383
+ :param str criterion_type: Specifies the type of threshold criteria
5384
+ Expected value is 'StaticThresholdCriterion'.
5385
+ :param str metric_name: Name of the metric.
5386
+ :param str name: Name of the criteria.
5387
+ :param str operator: the criteria operator.
5388
+ :param float threshold: the criteria threshold value that activates the alert.
5389
+ :param str time_aggregation: the criteria time aggregation types.
5390
+ :param Sequence['MetricDimensionResponse'] dimensions: List of dimension conditions.
5391
+ :param str metric_namespace: Namespace of the metric.
5392
+ :param bool skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
5393
+ """
5394
+ pulumi.set(__self__, "criterion_type", 'StaticThresholdCriterion')
5395
+ pulumi.set(__self__, "metric_name", metric_name)
4460
5396
  pulumi.set(__self__, "name", name)
4461
- pulumi.set(__self__, "resource_id", resource_id)
4462
- if managed_identity is not None:
4463
- pulumi.set(__self__, "managed_identity", managed_identity)
4464
- if use_common_alert_schema is None:
4465
- use_common_alert_schema = False
4466
- if use_common_alert_schema is not None:
4467
- pulumi.set(__self__, "use_common_alert_schema", use_common_alert_schema)
5397
+ pulumi.set(__self__, "operator", operator)
5398
+ pulumi.set(__self__, "threshold", threshold)
5399
+ pulumi.set(__self__, "time_aggregation", time_aggregation)
5400
+ if dimensions is not None:
5401
+ pulumi.set(__self__, "dimensions", dimensions)
5402
+ if metric_namespace is not None:
5403
+ pulumi.set(__self__, "metric_namespace", metric_namespace)
5404
+ if skip_metric_validation is not None:
5405
+ pulumi.set(__self__, "skip_metric_validation", skip_metric_validation)
4468
5406
 
4469
5407
  @property
4470
- @pulumi.getter(name="callbackUrl")
4471
- def callback_url(self) -> str:
5408
+ @pulumi.getter(name="criterionType")
5409
+ def criterion_type(self) -> str:
4472
5410
  """
4473
- The callback url where http request sent to.
5411
+ Specifies the type of threshold criteria
5412
+ Expected value is 'StaticThresholdCriterion'.
4474
5413
  """
4475
- return pulumi.get(self, "callback_url")
5414
+ return pulumi.get(self, "criterion_type")
4476
5415
 
4477
5416
  @property
4478
- @pulumi.getter
4479
- def name(self) -> str:
5417
+ @pulumi.getter(name="metricName")
5418
+ def metric_name(self) -> str:
4480
5419
  """
4481
- The name of the logic app receiver. Names must be unique across all receivers within an action group.
5420
+ Name of the metric.
4482
5421
  """
4483
- return pulumi.get(self, "name")
5422
+ return pulumi.get(self, "metric_name")
4484
5423
 
4485
5424
  @property
4486
- @pulumi.getter(name="resourceId")
4487
- def resource_id(self) -> str:
5425
+ @pulumi.getter
5426
+ def name(self) -> str:
4488
5427
  """
4489
- The azure resource id of the logic app receiver.
5428
+ Name of the criteria.
4490
5429
  """
4491
- return pulumi.get(self, "resource_id")
5430
+ return pulumi.get(self, "name")
4492
5431
 
4493
5432
  @property
4494
- @pulumi.getter(name="managedIdentity")
4495
- def managed_identity(self) -> Optional[str]:
5433
+ @pulumi.getter
5434
+ def operator(self) -> str:
4496
5435
  """
4497
- The principal id of the managed identity. The value can be "None", "SystemAssigned"
5436
+ the criteria operator.
4498
5437
  """
4499
- return pulumi.get(self, "managed_identity")
5438
+ return pulumi.get(self, "operator")
4500
5439
 
4501
5440
  @property
4502
- @pulumi.getter(name="useCommonAlertSchema")
4503
- def use_common_alert_schema(self) -> Optional[bool]:
4504
- """
4505
- Indicates whether to use common alert schema.
4506
- """
4507
- return pulumi.get(self, "use_common_alert_schema")
4508
-
4509
-
4510
- @pulumi.output_type
4511
- class ManagedServiceIdentityResponse(dict):
4512
- """
4513
- Managed service identity (system assigned and/or user assigned identities)
4514
- """
4515
- @staticmethod
4516
- def __key_warning(key: str):
4517
- suggest = None
4518
- if key == "principalId":
4519
- suggest = "principal_id"
4520
- elif key == "tenantId":
4521
- suggest = "tenant_id"
4522
- elif key == "userAssignedIdentities":
4523
- suggest = "user_assigned_identities"
4524
-
4525
- if suggest:
4526
- pulumi.log.warn(f"Key '{key}' not found in ManagedServiceIdentityResponse. Access the value via the '{suggest}' property getter instead.")
4527
-
4528
- def __getitem__(self, key: str) -> Any:
4529
- ManagedServiceIdentityResponse.__key_warning(key)
4530
- return super().__getitem__(key)
4531
-
4532
- def get(self, key: str, default = None) -> Any:
4533
- ManagedServiceIdentityResponse.__key_warning(key)
4534
- return super().get(key, default)
4535
-
4536
- def __init__(__self__, *,
4537
- principal_id: str,
4538
- tenant_id: str,
4539
- type: str,
4540
- user_assigned_identities: Optional[Mapping[str, 'outputs.UserAssignedIdentityResponse']] = None):
5441
+ @pulumi.getter
5442
+ def threshold(self) -> float:
4541
5443
  """
4542
- Managed service identity (system assigned and/or user assigned identities)
4543
- :param str principal_id: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
4544
- :param str tenant_id: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
4545
- :param str type: Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
4546
- :param Mapping[str, 'UserAssignedIdentityResponse'] user_assigned_identities: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
5444
+ the criteria threshold value that activates the alert.
4547
5445
  """
4548
- pulumi.set(__self__, "principal_id", principal_id)
4549
- pulumi.set(__self__, "tenant_id", tenant_id)
4550
- pulumi.set(__self__, "type", type)
4551
- if user_assigned_identities is not None:
4552
- pulumi.set(__self__, "user_assigned_identities", user_assigned_identities)
5446
+ return pulumi.get(self, "threshold")
4553
5447
 
4554
5448
  @property
4555
- @pulumi.getter(name="principalId")
4556
- def principal_id(self) -> str:
5449
+ @pulumi.getter(name="timeAggregation")
5450
+ def time_aggregation(self) -> str:
4557
5451
  """
4558
- The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
5452
+ the criteria time aggregation types.
4559
5453
  """
4560
- return pulumi.get(self, "principal_id")
5454
+ return pulumi.get(self, "time_aggregation")
4561
5455
 
4562
5456
  @property
4563
- @pulumi.getter(name="tenantId")
4564
- def tenant_id(self) -> str:
5457
+ @pulumi.getter
5458
+ def dimensions(self) -> Optional[Sequence['outputs.MetricDimensionResponse']]:
4565
5459
  """
4566
- The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
5460
+ List of dimension conditions.
4567
5461
  """
4568
- return pulumi.get(self, "tenant_id")
5462
+ return pulumi.get(self, "dimensions")
4569
5463
 
4570
5464
  @property
4571
- @pulumi.getter
4572
- def type(self) -> str:
5465
+ @pulumi.getter(name="metricNamespace")
5466
+ def metric_namespace(self) -> Optional[str]:
4573
5467
  """
4574
- Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
5468
+ Namespace of the metric.
4575
5469
  """
4576
- return pulumi.get(self, "type")
5470
+ return pulumi.get(self, "metric_namespace")
4577
5471
 
4578
5472
  @property
4579
- @pulumi.getter(name="userAssignedIdentities")
4580
- def user_assigned_identities(self) -> Optional[Mapping[str, 'outputs.UserAssignedIdentityResponse']]:
5473
+ @pulumi.getter(name="skipMetricValidation")
5474
+ def skip_metric_validation(self) -> Optional[bool]:
4581
5475
  """
4582
- The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
5476
+ Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
4583
5477
  """
4584
- return pulumi.get(self, "user_assigned_identities")
5478
+ return pulumi.get(self, "skip_metric_validation")
4585
5479
 
4586
5480
 
4587
5481
  @pulumi.output_type
4588
- class ManagementGroupLogSettingsResponse(dict):
5482
+ class MetricDimensionResponse(dict):
4589
5483
  """
4590
- Part of Management Group diagnostic setting. Specifies the settings for a particular log.
5484
+ Specifies a metric dimension.
4591
5485
  """
4592
- @staticmethod
4593
- def __key_warning(key: str):
4594
- suggest = None
4595
- if key == "categoryGroup":
4596
- suggest = "category_group"
4597
-
4598
- if suggest:
4599
- pulumi.log.warn(f"Key '{key}' not found in ManagementGroupLogSettingsResponse. Access the value via the '{suggest}' property getter instead.")
4600
-
4601
- def __getitem__(self, key: str) -> Any:
4602
- ManagementGroupLogSettingsResponse.__key_warning(key)
4603
- return super().__getitem__(key)
4604
-
4605
- def get(self, key: str, default = None) -> Any:
4606
- ManagementGroupLogSettingsResponse.__key_warning(key)
4607
- return super().get(key, default)
4608
-
4609
5486
  def __init__(__self__, *,
4610
- enabled: bool,
4611
- category: Optional[str] = None,
4612
- category_group: Optional[str] = None):
5487
+ name: str,
5488
+ operator: str,
5489
+ values: Sequence[str]):
4613
5490
  """
4614
- Part of Management Group diagnostic setting. Specifies the settings for a particular log.
4615
- :param bool enabled: a value indicating whether this log is enabled.
4616
- :param str category: Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
4617
- :param str category_group: Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
5491
+ Specifies a metric dimension.
5492
+ :param str name: Name of the dimension.
5493
+ :param str operator: the dimension operator. Only 'Include' and 'Exclude' are supported
5494
+ :param Sequence[str] values: list of dimension values.
4618
5495
  """
4619
- pulumi.set(__self__, "enabled", enabled)
4620
- if category is not None:
4621
- pulumi.set(__self__, "category", category)
4622
- if category_group is not None:
4623
- pulumi.set(__self__, "category_group", category_group)
5496
+ pulumi.set(__self__, "name", name)
5497
+ pulumi.set(__self__, "operator", operator)
5498
+ pulumi.set(__self__, "values", values)
4624
5499
 
4625
5500
  @property
4626
5501
  @pulumi.getter
4627
- def enabled(self) -> bool:
5502
+ def name(self) -> str:
4628
5503
  """
4629
- a value indicating whether this log is enabled.
5504
+ Name of the dimension.
4630
5505
  """
4631
- return pulumi.get(self, "enabled")
5506
+ return pulumi.get(self, "name")
4632
5507
 
4633
5508
  @property
4634
5509
  @pulumi.getter
4635
- def category(self) -> Optional[str]:
5510
+ def operator(self) -> str:
4636
5511
  """
4637
- Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
5512
+ the dimension operator. Only 'Include' and 'Exclude' are supported
4638
5513
  """
4639
- return pulumi.get(self, "category")
5514
+ return pulumi.get(self, "operator")
4640
5515
 
4641
5516
  @property
4642
- @pulumi.getter(name="categoryGroup")
4643
- def category_group(self) -> Optional[str]:
5517
+ @pulumi.getter
5518
+ def values(self) -> Sequence[str]:
4644
5519
  """
4645
- Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
5520
+ list of dimension values.
4646
5521
  """
4647
- return pulumi.get(self, "category_group")
5522
+ return pulumi.get(self, "values")
4648
5523
 
4649
5524
 
4650
5525
  @pulumi.output_type
@@ -7740,6 +8615,86 @@ class WebhookReceiverResponse(dict):
7740
8615
  return pulumi.get(self, "use_common_alert_schema")
7741
8616
 
7742
8617
 
8618
+ @pulumi.output_type
8619
+ class WebtestLocationAvailabilityCriteriaResponse(dict):
8620
+ """
8621
+ Specifies the metric alert rule criteria for a web test resource.
8622
+ """
8623
+ @staticmethod
8624
+ def __key_warning(key: str):
8625
+ suggest = None
8626
+ if key == "componentId":
8627
+ suggest = "component_id"
8628
+ elif key == "failedLocationCount":
8629
+ suggest = "failed_location_count"
8630
+ elif key == "odataType":
8631
+ suggest = "odata_type"
8632
+ elif key == "webTestId":
8633
+ suggest = "web_test_id"
8634
+
8635
+ if suggest:
8636
+ pulumi.log.warn(f"Key '{key}' not found in WebtestLocationAvailabilityCriteriaResponse. Access the value via the '{suggest}' property getter instead.")
8637
+
8638
+ def __getitem__(self, key: str) -> Any:
8639
+ WebtestLocationAvailabilityCriteriaResponse.__key_warning(key)
8640
+ return super().__getitem__(key)
8641
+
8642
+ def get(self, key: str, default = None) -> Any:
8643
+ WebtestLocationAvailabilityCriteriaResponse.__key_warning(key)
8644
+ return super().get(key, default)
8645
+
8646
+ def __init__(__self__, *,
8647
+ component_id: str,
8648
+ failed_location_count: float,
8649
+ odata_type: str,
8650
+ web_test_id: str):
8651
+ """
8652
+ Specifies the metric alert rule criteria for a web test resource.
8653
+ :param str component_id: The Application Insights resource Id.
8654
+ :param float failed_location_count: The number of failed locations.
8655
+ :param str odata_type: specifies the type of the alert criteria.
8656
+ Expected value is 'Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria'.
8657
+ :param str web_test_id: The Application Insights web test Id.
8658
+ """
8659
+ pulumi.set(__self__, "component_id", component_id)
8660
+ pulumi.set(__self__, "failed_location_count", failed_location_count)
8661
+ pulumi.set(__self__, "odata_type", 'Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria')
8662
+ pulumi.set(__self__, "web_test_id", web_test_id)
8663
+
8664
+ @property
8665
+ @pulumi.getter(name="componentId")
8666
+ def component_id(self) -> str:
8667
+ """
8668
+ The Application Insights resource Id.
8669
+ """
8670
+ return pulumi.get(self, "component_id")
8671
+
8672
+ @property
8673
+ @pulumi.getter(name="failedLocationCount")
8674
+ def failed_location_count(self) -> float:
8675
+ """
8676
+ The number of failed locations.
8677
+ """
8678
+ return pulumi.get(self, "failed_location_count")
8679
+
8680
+ @property
8681
+ @pulumi.getter(name="odataType")
8682
+ def odata_type(self) -> str:
8683
+ """
8684
+ specifies the type of the alert criteria.
8685
+ Expected value is 'Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria'.
8686
+ """
8687
+ return pulumi.get(self, "odata_type")
8688
+
8689
+ @property
8690
+ @pulumi.getter(name="webTestId")
8691
+ def web_test_id(self) -> str:
8692
+ """
8693
+ The Application Insights web test Id.
8694
+ """
8695
+ return pulumi.get(self, "web_test_id")
8696
+
8697
+
7743
8698
  @pulumi.output_type
7744
8699
  class WindowsEventLogDataSourceResponse(dict):
7745
8700
  """