pulumi-azure-native 2.20.1a1701336041__py3-none-any.whl → 2.20.1a1701422329__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.
- pulumi_azure_native/__init__.py +8 -0
- pulumi_azure_native/alertsmanagement/__init__.py +3 -0
- pulumi_azure_native/alertsmanagement/_enums.py +0 -10
- pulumi_azure_native/alertsmanagement/_inputs.py +4 -118
- pulumi_azure_native/alertsmanagement/alert_processing_rule_by_name.py +6 -2
- pulumi_azure_native/alertsmanagement/get_alert_processing_rule_by_name.py +6 -2
- pulumi_azure_native/alertsmanagement/outputs.py +1 -120
- pulumi_azure_native/alertsmanagement/v20210808/__init__.py +12 -0
- pulumi_azure_native/alertsmanagement/v20210808/_enums.py +70 -0
- pulumi_azure_native/alertsmanagement/v20210808/_inputs.py +519 -0
- pulumi_azure_native/alertsmanagement/v20210808/alert_processing_rule_by_name.py +253 -0
- pulumi_azure_native/alertsmanagement/v20210808/get_alert_processing_rule_by_name.py +157 -0
- pulumi_azure_native/alertsmanagement/v20210808/outputs.py +671 -0
- {pulumi_azure_native-2.20.1a1701336041.dist-info → pulumi_azure_native-2.20.1a1701422329.dist-info}/METADATA +1 -1
- {pulumi_azure_native-2.20.1a1701336041.dist-info → pulumi_azure_native-2.20.1a1701422329.dist-info}/RECORD +17 -11
- {pulumi_azure_native-2.20.1a1701336041.dist-info → pulumi_azure_native-2.20.1a1701422329.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-2.20.1a1701336041.dist-info → pulumi_azure_native-2.20.1a1701422329.dist-info}/top_level.txt +0 -0
pulumi_azure_native/__init__.py
CHANGED
|
@@ -851,6 +851,14 @@ _utilities.register(
|
|
|
851
851
|
"azure-native:alertsmanagement/v20210401:SmartDetectorAlertRule": "SmartDetectorAlertRule"
|
|
852
852
|
}
|
|
853
853
|
},
|
|
854
|
+
{
|
|
855
|
+
"pkg": "azure-native",
|
|
856
|
+
"mod": "alertsmanagement/v20210808",
|
|
857
|
+
"fqn": "pulumi_azure_native.alertsmanagement.v20210808",
|
|
858
|
+
"classes": {
|
|
859
|
+
"azure-native:alertsmanagement/v20210808:AlertProcessingRuleByName": "AlertProcessingRuleByName"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
854
862
|
{
|
|
855
863
|
"pkg": "azure-native",
|
|
856
864
|
"mod": "alertsmanagement/v20230301",
|
|
@@ -23,6 +23,8 @@ if typing.TYPE_CHECKING:
|
|
|
23
23
|
v20190505preview = __v20190505preview
|
|
24
24
|
import pulumi_azure_native.alertsmanagement.v20210401 as __v20210401
|
|
25
25
|
v20210401 = __v20210401
|
|
26
|
+
import pulumi_azure_native.alertsmanagement.v20210808 as __v20210808
|
|
27
|
+
v20210808 = __v20210808
|
|
26
28
|
import pulumi_azure_native.alertsmanagement.v20230301 as __v20230301
|
|
27
29
|
v20230301 = __v20230301
|
|
28
30
|
import pulumi_azure_native.alertsmanagement.v20230401preview as __v20230401preview
|
|
@@ -32,6 +34,7 @@ if typing.TYPE_CHECKING:
|
|
|
32
34
|
else:
|
|
33
35
|
v20190505preview = _utilities.lazy_import('pulumi_azure_native.alertsmanagement.v20190505preview')
|
|
34
36
|
v20210401 = _utilities.lazy_import('pulumi_azure_native.alertsmanagement.v20210401')
|
|
37
|
+
v20210808 = _utilities.lazy_import('pulumi_azure_native.alertsmanagement.v20210808')
|
|
35
38
|
v20230301 = _utilities.lazy_import('pulumi_azure_native.alertsmanagement.v20230301')
|
|
36
39
|
v20230401preview = _utilities.lazy_import('pulumi_azure_native.alertsmanagement.v20230401preview')
|
|
37
40
|
v20230501preview = _utilities.lazy_import('pulumi_azure_native.alertsmanagement.v20230501preview')
|
|
@@ -11,7 +11,6 @@ __all__ = [
|
|
|
11
11
|
'AlertRuleState',
|
|
12
12
|
'DaysOfWeek',
|
|
13
13
|
'Field',
|
|
14
|
-
'NotificationsForCorrelatedAlerts',
|
|
15
14
|
'Operator',
|
|
16
15
|
'RecurrenceType',
|
|
17
16
|
'ScopeType',
|
|
@@ -43,7 +42,6 @@ class ActionType(str, Enum):
|
|
|
43
42
|
"""
|
|
44
43
|
ADD_ACTION_GROUPS = "AddActionGroups"
|
|
45
44
|
REMOVE_ALL_ACTION_GROUPS = "RemoveAllActionGroups"
|
|
46
|
-
CORRELATE_ALERTS = "CorrelateAlerts"
|
|
47
45
|
|
|
48
46
|
|
|
49
47
|
class AlertRuleState(str, Enum):
|
|
@@ -84,14 +82,6 @@ class Field(str, Enum):
|
|
|
84
82
|
ALERT_CONTEXT = "AlertContext"
|
|
85
83
|
|
|
86
84
|
|
|
87
|
-
class NotificationsForCorrelatedAlerts(str, Enum):
|
|
88
|
-
"""
|
|
89
|
-
Indicates how to handle child alerts notifications.
|
|
90
|
-
"""
|
|
91
|
-
NOTIFY_ALWAYS = "NotifyAlways"
|
|
92
|
-
SUPPRESS_ALWAYS = "SuppressAlways"
|
|
93
|
-
|
|
94
|
-
|
|
95
85
|
class Operator(str, Enum):
|
|
96
86
|
"""
|
|
97
87
|
Operator for a given condition.
|
|
@@ -17,8 +17,6 @@ __all__ = [
|
|
|
17
17
|
'AlertProcessingRulePropertiesArgs',
|
|
18
18
|
'ConditionsArgs',
|
|
19
19
|
'ConditionArgs',
|
|
20
|
-
'CorrelateAlertsArgs',
|
|
21
|
-
'CorrelateByArgs',
|
|
22
20
|
'DailyRecurrenceArgs',
|
|
23
21
|
'DetectorArgs',
|
|
24
22
|
'DiagnosticsArgs',
|
|
@@ -238,7 +236,7 @@ class AddActionGroupsArgs:
|
|
|
238
236
|
@pulumi.input_type
|
|
239
237
|
class AlertProcessingRulePropertiesArgs:
|
|
240
238
|
def __init__(__self__, *,
|
|
241
|
-
actions: pulumi.Input[Sequence[pulumi.Input[Union['AddActionGroupsArgs', '
|
|
239
|
+
actions: pulumi.Input[Sequence[pulumi.Input[Union['AddActionGroupsArgs', 'RemoveAllActionGroupsArgs']]]],
|
|
242
240
|
scopes: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
243
241
|
conditions: Optional[pulumi.Input[Sequence[pulumi.Input['ConditionArgs']]]] = None,
|
|
244
242
|
description: Optional[pulumi.Input[str]] = None,
|
|
@@ -246,7 +244,7 @@ class AlertProcessingRulePropertiesArgs:
|
|
|
246
244
|
schedule: Optional[pulumi.Input['ScheduleArgs']] = None):
|
|
247
245
|
"""
|
|
248
246
|
Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.
|
|
249
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['AddActionGroupsArgs', '
|
|
247
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['AddActionGroupsArgs', 'RemoveAllActionGroupsArgs']]]] actions: Actions to be applied.
|
|
250
248
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] scopes: Scopes on which alert processing rule will apply.
|
|
251
249
|
:param pulumi.Input[Sequence[pulumi.Input['ConditionArgs']]] conditions: Conditions on which alerts will be filtered.
|
|
252
250
|
:param pulumi.Input[str] description: Description of alert processing rule.
|
|
@@ -268,14 +266,14 @@ class AlertProcessingRulePropertiesArgs:
|
|
|
268
266
|
|
|
269
267
|
@property
|
|
270
268
|
@pulumi.getter
|
|
271
|
-
def actions(self) -> pulumi.Input[Sequence[pulumi.Input[Union['AddActionGroupsArgs', '
|
|
269
|
+
def actions(self) -> pulumi.Input[Sequence[pulumi.Input[Union['AddActionGroupsArgs', 'RemoveAllActionGroupsArgs']]]]:
|
|
272
270
|
"""
|
|
273
271
|
Actions to be applied.
|
|
274
272
|
"""
|
|
275
273
|
return pulumi.get(self, "actions")
|
|
276
274
|
|
|
277
275
|
@actions.setter
|
|
278
|
-
def actions(self, value: pulumi.Input[Sequence[pulumi.Input[Union['AddActionGroupsArgs', '
|
|
276
|
+
def actions(self, value: pulumi.Input[Sequence[pulumi.Input[Union['AddActionGroupsArgs', 'RemoveAllActionGroupsArgs']]]]):
|
|
279
277
|
pulumi.set(self, "actions", value)
|
|
280
278
|
|
|
281
279
|
@property
|
|
@@ -531,118 +529,6 @@ class ConditionArgs:
|
|
|
531
529
|
pulumi.set(self, "values", value)
|
|
532
530
|
|
|
533
531
|
|
|
534
|
-
@pulumi.input_type
|
|
535
|
-
class CorrelateAlertsArgs:
|
|
536
|
-
def __init__(__self__, *,
|
|
537
|
-
action_type: pulumi.Input[str],
|
|
538
|
-
correlate_by: pulumi.Input[Sequence[pulumi.Input['CorrelateByArgs']]],
|
|
539
|
-
correlation_interval: pulumi.Input[str],
|
|
540
|
-
priority: pulumi.Input[int],
|
|
541
|
-
notifications_for_correlated_alerts: Optional[pulumi.Input[Union[str, 'NotificationsForCorrelatedAlerts']]] = None):
|
|
542
|
-
"""
|
|
543
|
-
Add logic for alerts correlation.
|
|
544
|
-
:param pulumi.Input[str] action_type: Action that should be applied.
|
|
545
|
-
Expected value is 'CorrelateAlerts'.
|
|
546
|
-
:param pulumi.Input[Sequence[pulumi.Input['CorrelateByArgs']]] correlate_by: The list of conditions for the alerts correlations.
|
|
547
|
-
:param pulumi.Input[str] correlation_interval: The required duration (in ISO8601 format) for the alerts correlation.
|
|
548
|
-
:param pulumi.Input[int] priority: The priority of this correlation.
|
|
549
|
-
:param pulumi.Input[Union[str, 'NotificationsForCorrelatedAlerts']] notifications_for_correlated_alerts: Indicates how to handle child alerts notifications.
|
|
550
|
-
"""
|
|
551
|
-
pulumi.set(__self__, "action_type", 'CorrelateAlerts')
|
|
552
|
-
pulumi.set(__self__, "correlate_by", correlate_by)
|
|
553
|
-
pulumi.set(__self__, "correlation_interval", correlation_interval)
|
|
554
|
-
pulumi.set(__self__, "priority", priority)
|
|
555
|
-
if notifications_for_correlated_alerts is None:
|
|
556
|
-
notifications_for_correlated_alerts = 'SuppressAlways'
|
|
557
|
-
if notifications_for_correlated_alerts is not None:
|
|
558
|
-
pulumi.set(__self__, "notifications_for_correlated_alerts", notifications_for_correlated_alerts)
|
|
559
|
-
|
|
560
|
-
@property
|
|
561
|
-
@pulumi.getter(name="actionType")
|
|
562
|
-
def action_type(self) -> pulumi.Input[str]:
|
|
563
|
-
"""
|
|
564
|
-
Action that should be applied.
|
|
565
|
-
Expected value is 'CorrelateAlerts'.
|
|
566
|
-
"""
|
|
567
|
-
return pulumi.get(self, "action_type")
|
|
568
|
-
|
|
569
|
-
@action_type.setter
|
|
570
|
-
def action_type(self, value: pulumi.Input[str]):
|
|
571
|
-
pulumi.set(self, "action_type", value)
|
|
572
|
-
|
|
573
|
-
@property
|
|
574
|
-
@pulumi.getter(name="correlateBy")
|
|
575
|
-
def correlate_by(self) -> pulumi.Input[Sequence[pulumi.Input['CorrelateByArgs']]]:
|
|
576
|
-
"""
|
|
577
|
-
The list of conditions for the alerts correlations.
|
|
578
|
-
"""
|
|
579
|
-
return pulumi.get(self, "correlate_by")
|
|
580
|
-
|
|
581
|
-
@correlate_by.setter
|
|
582
|
-
def correlate_by(self, value: pulumi.Input[Sequence[pulumi.Input['CorrelateByArgs']]]):
|
|
583
|
-
pulumi.set(self, "correlate_by", value)
|
|
584
|
-
|
|
585
|
-
@property
|
|
586
|
-
@pulumi.getter(name="correlationInterval")
|
|
587
|
-
def correlation_interval(self) -> pulumi.Input[str]:
|
|
588
|
-
"""
|
|
589
|
-
The required duration (in ISO8601 format) for the alerts correlation.
|
|
590
|
-
"""
|
|
591
|
-
return pulumi.get(self, "correlation_interval")
|
|
592
|
-
|
|
593
|
-
@correlation_interval.setter
|
|
594
|
-
def correlation_interval(self, value: pulumi.Input[str]):
|
|
595
|
-
pulumi.set(self, "correlation_interval", value)
|
|
596
|
-
|
|
597
|
-
@property
|
|
598
|
-
@pulumi.getter
|
|
599
|
-
def priority(self) -> pulumi.Input[int]:
|
|
600
|
-
"""
|
|
601
|
-
The priority of this correlation.
|
|
602
|
-
"""
|
|
603
|
-
return pulumi.get(self, "priority")
|
|
604
|
-
|
|
605
|
-
@priority.setter
|
|
606
|
-
def priority(self, value: pulumi.Input[int]):
|
|
607
|
-
pulumi.set(self, "priority", value)
|
|
608
|
-
|
|
609
|
-
@property
|
|
610
|
-
@pulumi.getter(name="notificationsForCorrelatedAlerts")
|
|
611
|
-
def notifications_for_correlated_alerts(self) -> Optional[pulumi.Input[Union[str, 'NotificationsForCorrelatedAlerts']]]:
|
|
612
|
-
"""
|
|
613
|
-
Indicates how to handle child alerts notifications.
|
|
614
|
-
"""
|
|
615
|
-
return pulumi.get(self, "notifications_for_correlated_alerts")
|
|
616
|
-
|
|
617
|
-
@notifications_for_correlated_alerts.setter
|
|
618
|
-
def notifications_for_correlated_alerts(self, value: Optional[pulumi.Input[Union[str, 'NotificationsForCorrelatedAlerts']]]):
|
|
619
|
-
pulumi.set(self, "notifications_for_correlated_alerts", value)
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
@pulumi.input_type
|
|
623
|
-
class CorrelateByArgs:
|
|
624
|
-
def __init__(__self__, *,
|
|
625
|
-
field: Optional[pulumi.Input[str]] = None):
|
|
626
|
-
"""
|
|
627
|
-
The logic for the correlation.
|
|
628
|
-
:param pulumi.Input[str] field: The JPath of the property that the alerts should be correlated by.
|
|
629
|
-
"""
|
|
630
|
-
if field is not None:
|
|
631
|
-
pulumi.set(__self__, "field", field)
|
|
632
|
-
|
|
633
|
-
@property
|
|
634
|
-
@pulumi.getter
|
|
635
|
-
def field(self) -> Optional[pulumi.Input[str]]:
|
|
636
|
-
"""
|
|
637
|
-
The JPath of the property that the alerts should be correlated by.
|
|
638
|
-
"""
|
|
639
|
-
return pulumi.get(self, "field")
|
|
640
|
-
|
|
641
|
-
@field.setter
|
|
642
|
-
def field(self, value: Optional[pulumi.Input[str]]):
|
|
643
|
-
pulumi.set(self, "field", value)
|
|
644
|
-
|
|
645
|
-
|
|
646
532
|
@pulumi.input_type
|
|
647
533
|
class DailyRecurrenceArgs:
|
|
648
534
|
def __init__(__self__, *,
|
|
@@ -114,7 +114,9 @@ class AlertProcessingRuleByName(pulumi.CustomResource):
|
|
|
114
114
|
__props__=None):
|
|
115
115
|
"""
|
|
116
116
|
Alert processing rule object containing target scopes, conditions and scheduling logic.
|
|
117
|
-
Azure REST API version:
|
|
117
|
+
Azure REST API version: 2021-08-08.
|
|
118
|
+
|
|
119
|
+
Other available API versions: 2023-05-01-preview.
|
|
118
120
|
|
|
119
121
|
:param str resource_name: The name of the resource.
|
|
120
122
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -132,7 +134,9 @@ class AlertProcessingRuleByName(pulumi.CustomResource):
|
|
|
132
134
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
133
135
|
"""
|
|
134
136
|
Alert processing rule object containing target scopes, conditions and scheduling logic.
|
|
135
|
-
Azure REST API version:
|
|
137
|
+
Azure REST API version: 2021-08-08.
|
|
138
|
+
|
|
139
|
+
Other available API versions: 2023-05-01-preview.
|
|
136
140
|
|
|
137
141
|
:param str resource_name: The name of the resource.
|
|
138
142
|
:param AlertProcessingRuleByNameArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -122,7 +122,9 @@ def get_alert_processing_rule_by_name(alert_processing_rule_name: Optional[str]
|
|
|
122
122
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertProcessingRuleByNameResult:
|
|
123
123
|
"""
|
|
124
124
|
Get an alert processing rule by name.
|
|
125
|
-
Azure REST API version:
|
|
125
|
+
Azure REST API version: 2021-08-08.
|
|
126
|
+
|
|
127
|
+
Other available API versions: 2023-05-01-preview.
|
|
126
128
|
|
|
127
129
|
|
|
128
130
|
:param str alert_processing_rule_name: The name of the alert processing rule that needs to be fetched.
|
|
@@ -150,7 +152,9 @@ def get_alert_processing_rule_by_name_output(alert_processing_rule_name: Optiona
|
|
|
150
152
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertProcessingRuleByNameResult]:
|
|
151
153
|
"""
|
|
152
154
|
Get an alert processing rule by name.
|
|
153
|
-
Azure REST API version:
|
|
155
|
+
Azure REST API version: 2021-08-08.
|
|
156
|
+
|
|
157
|
+
Other available API versions: 2023-05-01-preview.
|
|
154
158
|
|
|
155
159
|
|
|
156
160
|
:param str alert_processing_rule_name: The name of the alert processing rule that needs to be fetched.
|
|
@@ -18,8 +18,6 @@ __all__ = [
|
|
|
18
18
|
'AlertProcessingRulePropertiesResponse',
|
|
19
19
|
'ConditionResponse',
|
|
20
20
|
'ConditionsResponse',
|
|
21
|
-
'CorrelateAlertsResponse',
|
|
22
|
-
'CorrelateByResponse',
|
|
23
21
|
'DailyRecurrenceResponse',
|
|
24
22
|
'DetectorParameterDefinitionResponse',
|
|
25
23
|
'DetectorResponse',
|
|
@@ -326,7 +324,7 @@ class AlertProcessingRulePropertiesResponse(dict):
|
|
|
326
324
|
schedule: Optional['outputs.ScheduleResponse'] = None):
|
|
327
325
|
"""
|
|
328
326
|
Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.
|
|
329
|
-
:param Sequence[Union['AddActionGroupsResponse', '
|
|
327
|
+
:param Sequence[Union['AddActionGroupsResponse', 'RemoveAllActionGroupsResponse']] actions: Actions to be applied.
|
|
330
328
|
:param Sequence[str] scopes: Scopes on which alert processing rule will apply.
|
|
331
329
|
:param Sequence['ConditionResponse'] conditions: Conditions on which alerts will be filtered.
|
|
332
330
|
:param str description: Description of alert processing rule.
|
|
@@ -576,123 +574,6 @@ class ConditionsResponse(dict):
|
|
|
576
574
|
return pulumi.get(self, "target_resource_type")
|
|
577
575
|
|
|
578
576
|
|
|
579
|
-
@pulumi.output_type
|
|
580
|
-
class CorrelateAlertsResponse(dict):
|
|
581
|
-
"""
|
|
582
|
-
Add logic for alerts correlation.
|
|
583
|
-
"""
|
|
584
|
-
@staticmethod
|
|
585
|
-
def __key_warning(key: str):
|
|
586
|
-
suggest = None
|
|
587
|
-
if key == "actionType":
|
|
588
|
-
suggest = "action_type"
|
|
589
|
-
elif key == "correlateBy":
|
|
590
|
-
suggest = "correlate_by"
|
|
591
|
-
elif key == "correlationInterval":
|
|
592
|
-
suggest = "correlation_interval"
|
|
593
|
-
elif key == "notificationsForCorrelatedAlerts":
|
|
594
|
-
suggest = "notifications_for_correlated_alerts"
|
|
595
|
-
|
|
596
|
-
if suggest:
|
|
597
|
-
pulumi.log.warn(f"Key '{key}' not found in CorrelateAlertsResponse. Access the value via the '{suggest}' property getter instead.")
|
|
598
|
-
|
|
599
|
-
def __getitem__(self, key: str) -> Any:
|
|
600
|
-
CorrelateAlertsResponse.__key_warning(key)
|
|
601
|
-
return super().__getitem__(key)
|
|
602
|
-
|
|
603
|
-
def get(self, key: str, default = None) -> Any:
|
|
604
|
-
CorrelateAlertsResponse.__key_warning(key)
|
|
605
|
-
return super().get(key, default)
|
|
606
|
-
|
|
607
|
-
def __init__(__self__, *,
|
|
608
|
-
action_type: str,
|
|
609
|
-
correlate_by: Sequence['outputs.CorrelateByResponse'],
|
|
610
|
-
correlation_interval: str,
|
|
611
|
-
priority: int,
|
|
612
|
-
notifications_for_correlated_alerts: Optional[str] = None):
|
|
613
|
-
"""
|
|
614
|
-
Add logic for alerts correlation.
|
|
615
|
-
:param str action_type: Action that should be applied.
|
|
616
|
-
Expected value is 'CorrelateAlerts'.
|
|
617
|
-
:param Sequence['CorrelateByResponse'] correlate_by: The list of conditions for the alerts correlations.
|
|
618
|
-
:param str correlation_interval: The required duration (in ISO8601 format) for the alerts correlation.
|
|
619
|
-
:param int priority: The priority of this correlation.
|
|
620
|
-
:param str notifications_for_correlated_alerts: Indicates how to handle child alerts notifications.
|
|
621
|
-
"""
|
|
622
|
-
pulumi.set(__self__, "action_type", 'CorrelateAlerts')
|
|
623
|
-
pulumi.set(__self__, "correlate_by", correlate_by)
|
|
624
|
-
pulumi.set(__self__, "correlation_interval", correlation_interval)
|
|
625
|
-
pulumi.set(__self__, "priority", priority)
|
|
626
|
-
if notifications_for_correlated_alerts is None:
|
|
627
|
-
notifications_for_correlated_alerts = 'SuppressAlways'
|
|
628
|
-
if notifications_for_correlated_alerts is not None:
|
|
629
|
-
pulumi.set(__self__, "notifications_for_correlated_alerts", notifications_for_correlated_alerts)
|
|
630
|
-
|
|
631
|
-
@property
|
|
632
|
-
@pulumi.getter(name="actionType")
|
|
633
|
-
def action_type(self) -> str:
|
|
634
|
-
"""
|
|
635
|
-
Action that should be applied.
|
|
636
|
-
Expected value is 'CorrelateAlerts'.
|
|
637
|
-
"""
|
|
638
|
-
return pulumi.get(self, "action_type")
|
|
639
|
-
|
|
640
|
-
@property
|
|
641
|
-
@pulumi.getter(name="correlateBy")
|
|
642
|
-
def correlate_by(self) -> Sequence['outputs.CorrelateByResponse']:
|
|
643
|
-
"""
|
|
644
|
-
The list of conditions for the alerts correlations.
|
|
645
|
-
"""
|
|
646
|
-
return pulumi.get(self, "correlate_by")
|
|
647
|
-
|
|
648
|
-
@property
|
|
649
|
-
@pulumi.getter(name="correlationInterval")
|
|
650
|
-
def correlation_interval(self) -> str:
|
|
651
|
-
"""
|
|
652
|
-
The required duration (in ISO8601 format) for the alerts correlation.
|
|
653
|
-
"""
|
|
654
|
-
return pulumi.get(self, "correlation_interval")
|
|
655
|
-
|
|
656
|
-
@property
|
|
657
|
-
@pulumi.getter
|
|
658
|
-
def priority(self) -> int:
|
|
659
|
-
"""
|
|
660
|
-
The priority of this correlation.
|
|
661
|
-
"""
|
|
662
|
-
return pulumi.get(self, "priority")
|
|
663
|
-
|
|
664
|
-
@property
|
|
665
|
-
@pulumi.getter(name="notificationsForCorrelatedAlerts")
|
|
666
|
-
def notifications_for_correlated_alerts(self) -> Optional[str]:
|
|
667
|
-
"""
|
|
668
|
-
Indicates how to handle child alerts notifications.
|
|
669
|
-
"""
|
|
670
|
-
return pulumi.get(self, "notifications_for_correlated_alerts")
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
@pulumi.output_type
|
|
674
|
-
class CorrelateByResponse(dict):
|
|
675
|
-
"""
|
|
676
|
-
The logic for the correlation.
|
|
677
|
-
"""
|
|
678
|
-
def __init__(__self__, *,
|
|
679
|
-
field: Optional[str] = None):
|
|
680
|
-
"""
|
|
681
|
-
The logic for the correlation.
|
|
682
|
-
:param str field: The JPath of the property that the alerts should be correlated by.
|
|
683
|
-
"""
|
|
684
|
-
if field is not None:
|
|
685
|
-
pulumi.set(__self__, "field", field)
|
|
686
|
-
|
|
687
|
-
@property
|
|
688
|
-
@pulumi.getter
|
|
689
|
-
def field(self) -> Optional[str]:
|
|
690
|
-
"""
|
|
691
|
-
The JPath of the property that the alerts should be correlated by.
|
|
692
|
-
"""
|
|
693
|
-
return pulumi.get(self, "field")
|
|
694
|
-
|
|
695
|
-
|
|
696
577
|
@pulumi.output_type
|
|
697
578
|
class DailyRecurrenceResponse(dict):
|
|
698
579
|
"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
from ... import _utilities
|
|
6
|
+
import typing
|
|
7
|
+
# Export this package's modules as members:
|
|
8
|
+
from ._enums import *
|
|
9
|
+
from .alert_processing_rule_by_name import *
|
|
10
|
+
from .get_alert_processing_rule_by_name import *
|
|
11
|
+
from ._inputs import *
|
|
12
|
+
from . import outputs
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
from enum import Enum
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
'ActionType',
|
|
9
|
+
'DaysOfWeek',
|
|
10
|
+
'Field',
|
|
11
|
+
'Operator',
|
|
12
|
+
'RecurrenceType',
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ActionType(str, Enum):
|
|
17
|
+
"""
|
|
18
|
+
Action that should be applied.
|
|
19
|
+
"""
|
|
20
|
+
ADD_ACTION_GROUPS = "AddActionGroups"
|
|
21
|
+
REMOVE_ALL_ACTION_GROUPS = "RemoveAllActionGroups"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class DaysOfWeek(str, Enum):
|
|
25
|
+
"""
|
|
26
|
+
Days of week.
|
|
27
|
+
"""
|
|
28
|
+
SUNDAY = "Sunday"
|
|
29
|
+
MONDAY = "Monday"
|
|
30
|
+
TUESDAY = "Tuesday"
|
|
31
|
+
WEDNESDAY = "Wednesday"
|
|
32
|
+
THURSDAY = "Thursday"
|
|
33
|
+
FRIDAY = "Friday"
|
|
34
|
+
SATURDAY = "Saturday"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Field(str, Enum):
|
|
38
|
+
"""
|
|
39
|
+
Field for a given condition.
|
|
40
|
+
"""
|
|
41
|
+
SEVERITY = "Severity"
|
|
42
|
+
MONITOR_SERVICE = "MonitorService"
|
|
43
|
+
MONITOR_CONDITION = "MonitorCondition"
|
|
44
|
+
SIGNAL_TYPE = "SignalType"
|
|
45
|
+
TARGET_RESOURCE_TYPE = "TargetResourceType"
|
|
46
|
+
TARGET_RESOURCE = "TargetResource"
|
|
47
|
+
TARGET_RESOURCE_GROUP = "TargetResourceGroup"
|
|
48
|
+
ALERT_RULE_ID = "AlertRuleId"
|
|
49
|
+
ALERT_RULE_NAME = "AlertRuleName"
|
|
50
|
+
DESCRIPTION = "Description"
|
|
51
|
+
ALERT_CONTEXT = "AlertContext"
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class Operator(str, Enum):
|
|
55
|
+
"""
|
|
56
|
+
Operator for a given condition.
|
|
57
|
+
"""
|
|
58
|
+
EQUALS = "Equals"
|
|
59
|
+
NOT_EQUALS = "NotEquals"
|
|
60
|
+
CONTAINS = "Contains"
|
|
61
|
+
DOES_NOT_CONTAIN = "DoesNotContain"
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class RecurrenceType(str, Enum):
|
|
65
|
+
"""
|
|
66
|
+
Specifies when the recurrence should be applied.
|
|
67
|
+
"""
|
|
68
|
+
DAILY = "Daily"
|
|
69
|
+
WEEKLY = "Weekly"
|
|
70
|
+
MONTHLY = "Monthly"
|