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.

@@ -0,0 +1,231 @@
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
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+ from . import outputs
17
+
18
+ __all__ = [
19
+ 'GetActivityLogAlertResult',
20
+ 'AwaitableGetActivityLogAlertResult',
21
+ 'get_activity_log_alert',
22
+ 'get_activity_log_alert_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetActivityLogAlertResult:
27
+ """
28
+ An Activity Log Alert rule resource.
29
+ """
30
+ def __init__(__self__, actions=None, azure_api_version=None, condition=None, description=None, enabled=None, id=None, location=None, name=None, scopes=None, tags=None, type=None):
31
+ if actions and not isinstance(actions, dict):
32
+ raise TypeError("Expected argument 'actions' to be a dict")
33
+ pulumi.set(__self__, "actions", actions)
34
+ if azure_api_version and not isinstance(azure_api_version, str):
35
+ raise TypeError("Expected argument 'azure_api_version' to be a str")
36
+ pulumi.set(__self__, "azure_api_version", azure_api_version)
37
+ if condition and not isinstance(condition, dict):
38
+ raise TypeError("Expected argument 'condition' to be a dict")
39
+ pulumi.set(__self__, "condition", condition)
40
+ if description and not isinstance(description, str):
41
+ raise TypeError("Expected argument 'description' to be a str")
42
+ pulumi.set(__self__, "description", description)
43
+ if enabled and not isinstance(enabled, bool):
44
+ raise TypeError("Expected argument 'enabled' to be a bool")
45
+ pulumi.set(__self__, "enabled", enabled)
46
+ if id and not isinstance(id, str):
47
+ raise TypeError("Expected argument 'id' to be a str")
48
+ pulumi.set(__self__, "id", id)
49
+ if location and not isinstance(location, str):
50
+ raise TypeError("Expected argument 'location' to be a str")
51
+ pulumi.set(__self__, "location", location)
52
+ if name and not isinstance(name, str):
53
+ raise TypeError("Expected argument 'name' to be a str")
54
+ pulumi.set(__self__, "name", name)
55
+ if scopes and not isinstance(scopes, list):
56
+ raise TypeError("Expected argument 'scopes' to be a list")
57
+ pulumi.set(__self__, "scopes", scopes)
58
+ if tags and not isinstance(tags, dict):
59
+ raise TypeError("Expected argument 'tags' to be a dict")
60
+ pulumi.set(__self__, "tags", tags)
61
+ if type and not isinstance(type, str):
62
+ raise TypeError("Expected argument 'type' to be a str")
63
+ pulumi.set(__self__, "type", type)
64
+
65
+ @property
66
+ @pulumi.getter
67
+ def actions(self) -> 'outputs.ActionListResponse':
68
+ """
69
+ The actions that will activate when the condition is met.
70
+ """
71
+ return pulumi.get(self, "actions")
72
+
73
+ @property
74
+ @pulumi.getter(name="azureApiVersion")
75
+ def azure_api_version(self) -> str:
76
+ """
77
+ The Azure API version of the resource.
78
+ """
79
+ return pulumi.get(self, "azure_api_version")
80
+
81
+ @property
82
+ @pulumi.getter
83
+ def condition(self) -> 'outputs.AlertRuleAllOfConditionResponse':
84
+ """
85
+ The condition that will cause this alert to activate.
86
+ """
87
+ return pulumi.get(self, "condition")
88
+
89
+ @property
90
+ @pulumi.getter
91
+ def description(self) -> Optional[str]:
92
+ """
93
+ A description of this Activity Log Alert rule.
94
+ """
95
+ return pulumi.get(self, "description")
96
+
97
+ @property
98
+ @pulumi.getter
99
+ def enabled(self) -> Optional[bool]:
100
+ """
101
+ Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
102
+ """
103
+ return pulumi.get(self, "enabled")
104
+
105
+ @property
106
+ @pulumi.getter
107
+ def id(self) -> str:
108
+ """
109
+ The resource Id.
110
+ """
111
+ return pulumi.get(self, "id")
112
+
113
+ @property
114
+ @pulumi.getter
115
+ def location(self) -> Optional[str]:
116
+ """
117
+ The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
118
+ """
119
+ return pulumi.get(self, "location")
120
+
121
+ @property
122
+ @pulumi.getter
123
+ def name(self) -> str:
124
+ """
125
+ The name of the resource.
126
+ """
127
+ return pulumi.get(self, "name")
128
+
129
+ @property
130
+ @pulumi.getter
131
+ def scopes(self) -> Sequence[str]:
132
+ """
133
+ A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
134
+ """
135
+ return pulumi.get(self, "scopes")
136
+
137
+ @property
138
+ @pulumi.getter
139
+ def tags(self) -> Optional[Mapping[str, str]]:
140
+ """
141
+ The tags of the resource.
142
+ """
143
+ return pulumi.get(self, "tags")
144
+
145
+ @property
146
+ @pulumi.getter
147
+ def type(self) -> str:
148
+ """
149
+ The type of the resource.
150
+ """
151
+ return pulumi.get(self, "type")
152
+
153
+
154
+ class AwaitableGetActivityLogAlertResult(GetActivityLogAlertResult):
155
+ # pylint: disable=using-constant-test
156
+ def __await__(self):
157
+ if False:
158
+ yield self
159
+ return GetActivityLogAlertResult(
160
+ actions=self.actions,
161
+ azure_api_version=self.azure_api_version,
162
+ condition=self.condition,
163
+ description=self.description,
164
+ enabled=self.enabled,
165
+ id=self.id,
166
+ location=self.location,
167
+ name=self.name,
168
+ scopes=self.scopes,
169
+ tags=self.tags,
170
+ type=self.type)
171
+
172
+
173
+ def get_activity_log_alert(activity_log_alert_name: Optional[str] = None,
174
+ resource_group_name: Optional[str] = None,
175
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetActivityLogAlertResult:
176
+ """
177
+ Get an Activity Log Alert rule.
178
+
179
+ Uses Azure REST API version 2020-10-01.
180
+
181
+
182
+ :param str activity_log_alert_name: The name of the Activity Log Alert rule.
183
+ :param str resource_group_name: The name of the resource group. The name is case insensitive.
184
+ """
185
+ __args__ = dict()
186
+ __args__['activityLogAlertName'] = activity_log_alert_name
187
+ __args__['resourceGroupName'] = resource_group_name
188
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
189
+ __ret__ = pulumi.runtime.invoke('azure-native:monitor:getActivityLogAlert', __args__, opts=opts, typ=GetActivityLogAlertResult).value
190
+
191
+ return AwaitableGetActivityLogAlertResult(
192
+ actions=pulumi.get(__ret__, 'actions'),
193
+ azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
194
+ condition=pulumi.get(__ret__, 'condition'),
195
+ description=pulumi.get(__ret__, 'description'),
196
+ enabled=pulumi.get(__ret__, 'enabled'),
197
+ id=pulumi.get(__ret__, 'id'),
198
+ location=pulumi.get(__ret__, 'location'),
199
+ name=pulumi.get(__ret__, 'name'),
200
+ scopes=pulumi.get(__ret__, 'scopes'),
201
+ tags=pulumi.get(__ret__, 'tags'),
202
+ type=pulumi.get(__ret__, 'type'))
203
+ def get_activity_log_alert_output(activity_log_alert_name: Optional[pulumi.Input[str]] = None,
204
+ resource_group_name: Optional[pulumi.Input[str]] = None,
205
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetActivityLogAlertResult]:
206
+ """
207
+ Get an Activity Log Alert rule.
208
+
209
+ Uses Azure REST API version 2020-10-01.
210
+
211
+
212
+ :param str activity_log_alert_name: The name of the Activity Log Alert rule.
213
+ :param str resource_group_name: The name of the resource group. The name is case insensitive.
214
+ """
215
+ __args__ = dict()
216
+ __args__['activityLogAlertName'] = activity_log_alert_name
217
+ __args__['resourceGroupName'] = resource_group_name
218
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
219
+ __ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getActivityLogAlert', __args__, opts=opts, typ=GetActivityLogAlertResult)
220
+ return __ret__.apply(lambda __response__: GetActivityLogAlertResult(
221
+ actions=pulumi.get(__response__, 'actions'),
222
+ azure_api_version=pulumi.get(__response__, 'azure_api_version'),
223
+ condition=pulumi.get(__response__, 'condition'),
224
+ description=pulumi.get(__response__, 'description'),
225
+ enabled=pulumi.get(__response__, 'enabled'),
226
+ id=pulumi.get(__response__, 'id'),
227
+ location=pulumi.get(__response__, 'location'),
228
+ name=pulumi.get(__response__, 'name'),
229
+ scopes=pulumi.get(__response__, 'scopes'),
230
+ tags=pulumi.get(__response__, 'tags'),
231
+ type=pulumi.get(__response__, 'type')))
@@ -0,0 +1,343 @@
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
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+ from . import outputs
17
+
18
+ __all__ = [
19
+ 'GetMetricAlertResult',
20
+ 'AwaitableGetMetricAlertResult',
21
+ 'get_metric_alert',
22
+ 'get_metric_alert_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetMetricAlertResult:
27
+ """
28
+ The metric alert resource.
29
+ """
30
+ def __init__(__self__, actions=None, auto_mitigate=None, azure_api_version=None, criteria=None, description=None, enabled=None, evaluation_frequency=None, id=None, is_migrated=None, last_updated_time=None, location=None, name=None, scopes=None, severity=None, tags=None, target_resource_region=None, target_resource_type=None, type=None, window_size=None):
31
+ if actions and not isinstance(actions, list):
32
+ raise TypeError("Expected argument 'actions' to be a list")
33
+ pulumi.set(__self__, "actions", actions)
34
+ if auto_mitigate and not isinstance(auto_mitigate, bool):
35
+ raise TypeError("Expected argument 'auto_mitigate' to be a bool")
36
+ pulumi.set(__self__, "auto_mitigate", auto_mitigate)
37
+ if azure_api_version and not isinstance(azure_api_version, str):
38
+ raise TypeError("Expected argument 'azure_api_version' to be a str")
39
+ pulumi.set(__self__, "azure_api_version", azure_api_version)
40
+ if criteria and not isinstance(criteria, dict):
41
+ raise TypeError("Expected argument 'criteria' to be a dict")
42
+ pulumi.set(__self__, "criteria", criteria)
43
+ if description and not isinstance(description, str):
44
+ raise TypeError("Expected argument 'description' to be a str")
45
+ pulumi.set(__self__, "description", description)
46
+ if enabled and not isinstance(enabled, bool):
47
+ raise TypeError("Expected argument 'enabled' to be a bool")
48
+ pulumi.set(__self__, "enabled", enabled)
49
+ if evaluation_frequency and not isinstance(evaluation_frequency, str):
50
+ raise TypeError("Expected argument 'evaluation_frequency' to be a str")
51
+ pulumi.set(__self__, "evaluation_frequency", evaluation_frequency)
52
+ if id and not isinstance(id, str):
53
+ raise TypeError("Expected argument 'id' to be a str")
54
+ pulumi.set(__self__, "id", id)
55
+ if is_migrated and not isinstance(is_migrated, bool):
56
+ raise TypeError("Expected argument 'is_migrated' to be a bool")
57
+ pulumi.set(__self__, "is_migrated", is_migrated)
58
+ if last_updated_time and not isinstance(last_updated_time, str):
59
+ raise TypeError("Expected argument 'last_updated_time' to be a str")
60
+ pulumi.set(__self__, "last_updated_time", last_updated_time)
61
+ if location and not isinstance(location, str):
62
+ raise TypeError("Expected argument 'location' to be a str")
63
+ pulumi.set(__self__, "location", location)
64
+ if name and not isinstance(name, str):
65
+ raise TypeError("Expected argument 'name' to be a str")
66
+ pulumi.set(__self__, "name", name)
67
+ if scopes and not isinstance(scopes, list):
68
+ raise TypeError("Expected argument 'scopes' to be a list")
69
+ pulumi.set(__self__, "scopes", scopes)
70
+ if severity and not isinstance(severity, int):
71
+ raise TypeError("Expected argument 'severity' to be a int")
72
+ pulumi.set(__self__, "severity", severity)
73
+ if tags and not isinstance(tags, dict):
74
+ raise TypeError("Expected argument 'tags' to be a dict")
75
+ pulumi.set(__self__, "tags", tags)
76
+ if target_resource_region and not isinstance(target_resource_region, str):
77
+ raise TypeError("Expected argument 'target_resource_region' to be a str")
78
+ pulumi.set(__self__, "target_resource_region", target_resource_region)
79
+ if target_resource_type and not isinstance(target_resource_type, str):
80
+ raise TypeError("Expected argument 'target_resource_type' to be a str")
81
+ pulumi.set(__self__, "target_resource_type", target_resource_type)
82
+ if type and not isinstance(type, str):
83
+ raise TypeError("Expected argument 'type' to be a str")
84
+ pulumi.set(__self__, "type", type)
85
+ if window_size and not isinstance(window_size, str):
86
+ raise TypeError("Expected argument 'window_size' to be a str")
87
+ pulumi.set(__self__, "window_size", window_size)
88
+
89
+ @property
90
+ @pulumi.getter
91
+ def actions(self) -> Optional[Sequence['outputs.MetricAlertActionResponse']]:
92
+ """
93
+ the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
94
+ """
95
+ return pulumi.get(self, "actions")
96
+
97
+ @property
98
+ @pulumi.getter(name="autoMitigate")
99
+ def auto_mitigate(self) -> Optional[bool]:
100
+ """
101
+ the flag that indicates whether the alert should be auto resolved or not. The default is true.
102
+ """
103
+ return pulumi.get(self, "auto_mitigate")
104
+
105
+ @property
106
+ @pulumi.getter(name="azureApiVersion")
107
+ def azure_api_version(self) -> str:
108
+ """
109
+ The Azure API version of the resource.
110
+ """
111
+ return pulumi.get(self, "azure_api_version")
112
+
113
+ @property
114
+ @pulumi.getter
115
+ def criteria(self) -> Any:
116
+ """
117
+ defines the specific alert criteria information.
118
+ """
119
+ return pulumi.get(self, "criteria")
120
+
121
+ @property
122
+ @pulumi.getter
123
+ def description(self) -> Optional[str]:
124
+ """
125
+ the description of the metric alert that will be included in the alert email.
126
+ """
127
+ return pulumi.get(self, "description")
128
+
129
+ @property
130
+ @pulumi.getter
131
+ def enabled(self) -> bool:
132
+ """
133
+ the flag that indicates whether the metric alert is enabled.
134
+ """
135
+ return pulumi.get(self, "enabled")
136
+
137
+ @property
138
+ @pulumi.getter(name="evaluationFrequency")
139
+ def evaluation_frequency(self) -> str:
140
+ """
141
+ how often the metric alert is evaluated represented in ISO 8601 duration format.
142
+ """
143
+ return pulumi.get(self, "evaluation_frequency")
144
+
145
+ @property
146
+ @pulumi.getter
147
+ def id(self) -> str:
148
+ """
149
+ Azure resource Id
150
+ """
151
+ return pulumi.get(self, "id")
152
+
153
+ @property
154
+ @pulumi.getter(name="isMigrated")
155
+ def is_migrated(self) -> bool:
156
+ """
157
+ the value indicating whether this alert rule is migrated.
158
+ """
159
+ return pulumi.get(self, "is_migrated")
160
+
161
+ @property
162
+ @pulumi.getter(name="lastUpdatedTime")
163
+ def last_updated_time(self) -> str:
164
+ """
165
+ Last time the rule was updated in ISO8601 format.
166
+ """
167
+ return pulumi.get(self, "last_updated_time")
168
+
169
+ @property
170
+ @pulumi.getter
171
+ def location(self) -> str:
172
+ """
173
+ Resource location
174
+ """
175
+ return pulumi.get(self, "location")
176
+
177
+ @property
178
+ @pulumi.getter
179
+ def name(self) -> str:
180
+ """
181
+ Azure resource name
182
+ """
183
+ return pulumi.get(self, "name")
184
+
185
+ @property
186
+ @pulumi.getter
187
+ def scopes(self) -> Sequence[str]:
188
+ """
189
+ the list of resource id's that this metric alert is scoped to. You cannot change the scope of a metric rule based on logs.
190
+ """
191
+ return pulumi.get(self, "scopes")
192
+
193
+ @property
194
+ @pulumi.getter
195
+ def severity(self) -> int:
196
+ """
197
+ Alert severity {0, 1, 2, 3, 4}
198
+ """
199
+ return pulumi.get(self, "severity")
200
+
201
+ @property
202
+ @pulumi.getter
203
+ def tags(self) -> Optional[Mapping[str, str]]:
204
+ """
205
+ Resource tags
206
+ """
207
+ return pulumi.get(self, "tags")
208
+
209
+ @property
210
+ @pulumi.getter(name="targetResourceRegion")
211
+ def target_resource_region(self) -> Optional[str]:
212
+ """
213
+ the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
214
+ """
215
+ return pulumi.get(self, "target_resource_region")
216
+
217
+ @property
218
+ @pulumi.getter(name="targetResourceType")
219
+ def target_resource_type(self) -> Optional[str]:
220
+ """
221
+ the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
222
+ """
223
+ return pulumi.get(self, "target_resource_type")
224
+
225
+ @property
226
+ @pulumi.getter
227
+ def type(self) -> str:
228
+ """
229
+ Azure resource type
230
+ """
231
+ return pulumi.get(self, "type")
232
+
233
+ @property
234
+ @pulumi.getter(name="windowSize")
235
+ def window_size(self) -> str:
236
+ """
237
+ the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
238
+ """
239
+ return pulumi.get(self, "window_size")
240
+
241
+
242
+ class AwaitableGetMetricAlertResult(GetMetricAlertResult):
243
+ # pylint: disable=using-constant-test
244
+ def __await__(self):
245
+ if False:
246
+ yield self
247
+ return GetMetricAlertResult(
248
+ actions=self.actions,
249
+ auto_mitigate=self.auto_mitigate,
250
+ azure_api_version=self.azure_api_version,
251
+ criteria=self.criteria,
252
+ description=self.description,
253
+ enabled=self.enabled,
254
+ evaluation_frequency=self.evaluation_frequency,
255
+ id=self.id,
256
+ is_migrated=self.is_migrated,
257
+ last_updated_time=self.last_updated_time,
258
+ location=self.location,
259
+ name=self.name,
260
+ scopes=self.scopes,
261
+ severity=self.severity,
262
+ tags=self.tags,
263
+ target_resource_region=self.target_resource_region,
264
+ target_resource_type=self.target_resource_type,
265
+ type=self.type,
266
+ window_size=self.window_size)
267
+
268
+
269
+ def get_metric_alert(resource_group_name: Optional[str] = None,
270
+ rule_name: Optional[str] = None,
271
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMetricAlertResult:
272
+ """
273
+ Retrieve an alert rule definition.
274
+
275
+ Uses Azure REST API version 2018-03-01.
276
+
277
+
278
+ :param str resource_group_name: The name of the resource group. The name is case insensitive.
279
+ :param str rule_name: The name of the rule.
280
+ """
281
+ __args__ = dict()
282
+ __args__['resourceGroupName'] = resource_group_name
283
+ __args__['ruleName'] = rule_name
284
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
285
+ __ret__ = pulumi.runtime.invoke('azure-native:monitor:getMetricAlert', __args__, opts=opts, typ=GetMetricAlertResult).value
286
+
287
+ return AwaitableGetMetricAlertResult(
288
+ actions=pulumi.get(__ret__, 'actions'),
289
+ auto_mitigate=pulumi.get(__ret__, 'auto_mitigate'),
290
+ azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
291
+ criteria=pulumi.get(__ret__, 'criteria'),
292
+ description=pulumi.get(__ret__, 'description'),
293
+ enabled=pulumi.get(__ret__, 'enabled'),
294
+ evaluation_frequency=pulumi.get(__ret__, 'evaluation_frequency'),
295
+ id=pulumi.get(__ret__, 'id'),
296
+ is_migrated=pulumi.get(__ret__, 'is_migrated'),
297
+ last_updated_time=pulumi.get(__ret__, 'last_updated_time'),
298
+ location=pulumi.get(__ret__, 'location'),
299
+ name=pulumi.get(__ret__, 'name'),
300
+ scopes=pulumi.get(__ret__, 'scopes'),
301
+ severity=pulumi.get(__ret__, 'severity'),
302
+ tags=pulumi.get(__ret__, 'tags'),
303
+ target_resource_region=pulumi.get(__ret__, 'target_resource_region'),
304
+ target_resource_type=pulumi.get(__ret__, 'target_resource_type'),
305
+ type=pulumi.get(__ret__, 'type'),
306
+ window_size=pulumi.get(__ret__, 'window_size'))
307
+ def get_metric_alert_output(resource_group_name: Optional[pulumi.Input[str]] = None,
308
+ rule_name: Optional[pulumi.Input[str]] = None,
309
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMetricAlertResult]:
310
+ """
311
+ Retrieve an alert rule definition.
312
+
313
+ Uses Azure REST API version 2018-03-01.
314
+
315
+
316
+ :param str resource_group_name: The name of the resource group. The name is case insensitive.
317
+ :param str rule_name: The name of the rule.
318
+ """
319
+ __args__ = dict()
320
+ __args__['resourceGroupName'] = resource_group_name
321
+ __args__['ruleName'] = rule_name
322
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
323
+ __ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getMetricAlert', __args__, opts=opts, typ=GetMetricAlertResult)
324
+ return __ret__.apply(lambda __response__: GetMetricAlertResult(
325
+ actions=pulumi.get(__response__, 'actions'),
326
+ auto_mitigate=pulumi.get(__response__, 'auto_mitigate'),
327
+ azure_api_version=pulumi.get(__response__, 'azure_api_version'),
328
+ criteria=pulumi.get(__response__, 'criteria'),
329
+ description=pulumi.get(__response__, 'description'),
330
+ enabled=pulumi.get(__response__, 'enabled'),
331
+ evaluation_frequency=pulumi.get(__response__, 'evaluation_frequency'),
332
+ id=pulumi.get(__response__, 'id'),
333
+ is_migrated=pulumi.get(__response__, 'is_migrated'),
334
+ last_updated_time=pulumi.get(__response__, 'last_updated_time'),
335
+ location=pulumi.get(__response__, 'location'),
336
+ name=pulumi.get(__response__, 'name'),
337
+ scopes=pulumi.get(__response__, 'scopes'),
338
+ severity=pulumi.get(__response__, 'severity'),
339
+ tags=pulumi.get(__response__, 'tags'),
340
+ target_resource_region=pulumi.get(__response__, 'target_resource_region'),
341
+ target_resource_type=pulumi.get(__response__, 'target_resource_type'),
342
+ type=pulumi.get(__response__, 'type'),
343
+ window_size=pulumi.get(__response__, 'window_size')))
@@ -131,6 +131,8 @@ def get_private_endpoint_connection(private_endpoint_connection_name: Optional[s
131
131
 
132
132
  Uses Azure REST API version 2023-06-01-preview.
133
133
 
134
+ Other available API versions: 2021-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
135
+
134
136
 
135
137
  :param str private_endpoint_connection_name: The name of the private endpoint connection.
136
138
  :param str resource_group_name: The name of the resource group. The name is case insensitive.
@@ -160,6 +162,8 @@ def get_private_endpoint_connection_output(private_endpoint_connection_name: Opt
160
162
 
161
163
  Uses Azure REST API version 2023-06-01-preview.
162
164
 
165
+ Other available API versions: 2021-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
166
+
163
167
 
164
168
  :param str private_endpoint_connection_name: The name of the private endpoint connection.
165
169
  :param str resource_group_name: The name of the resource group. The name is case insensitive.
@@ -166,6 +166,8 @@ def get_private_link_scope(resource_group_name: Optional[str] = None,
166
166
 
167
167
  Uses Azure REST API version 2023-06-01-preview.
168
168
 
169
+ Other available API versions: 2021-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
170
+
169
171
 
170
172
  :param str resource_group_name: The name of the resource group. The name is case insensitive.
171
173
  :param str scope_name: The name of the Azure Monitor PrivateLinkScope resource.
@@ -195,6 +197,8 @@ def get_private_link_scope_output(resource_group_name: Optional[pulumi.Input[str
195
197
 
196
198
  Uses Azure REST API version 2023-06-01-preview.
197
199
 
200
+ Other available API versions: 2021-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
201
+
198
202
 
199
203
  :param str resource_group_name: The name of the resource group. The name is case insensitive.
200
204
  :param str scope_name: The name of the Azure Monitor PrivateLinkScope resource.
@@ -155,6 +155,8 @@ def get_private_link_scoped_resource(name: Optional[str] = None,
155
155
 
156
156
  Uses Azure REST API version 2023-06-01-preview.
157
157
 
158
+ Other available API versions: 2021-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
159
+
158
160
 
159
161
  :param str name: The name of the scoped resource object.
160
162
  :param str resource_group_name: The name of the resource group. The name is case insensitive.
@@ -186,6 +188,8 @@ def get_private_link_scoped_resource_output(name: Optional[pulumi.Input[str]] =
186
188
 
187
189
  Uses Azure REST API version 2023-06-01-preview.
188
190
 
191
+ Other available API versions: 2021-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
192
+
189
193
 
190
194
  :param str name: The name of the scoped resource object.
191
195
  :param str resource_group_name: The name of the resource group. The name is case insensitive.