-
Notifications
You must be signed in to change notification settings - Fork 245
/
com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.yml
430 lines (430 loc) · 34.6 KB
/
com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
### YamlMime:JavaType
uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner"
name: "MetricAlertResourceInner"
nameWithType: "MetricAlertResourceInner"
summary: "The metric alert resource."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.ProxyResource?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.Resource?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.azure.core.management.ProxyResource?alt=com.azure.core.management.ProxyResource&text=ProxyResource\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.core.management.ProxyResource.id()?alt=com.azure.core.management.ProxyResource.id&text=id\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.ProxyResource.name()?alt=com.azure.core.management.ProxyResource.name&text=name\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.ProxyResource.type()?alt=com.azure.core.management.ProxyResource.type&text=type\" data-throw-if-not-resolved=\"False\" />"
- classRef: "<xref href=\"com.azure.core.management.Resource?alt=com.azure.core.management.Resource&text=Resource\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.core.management.Resource.fromJson(com.azure.json.JsonReader)?alt=com.azure.core.management.Resource.fromJson&text=fromJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.Resource.location()?alt=com.azure.core.management.Resource.location&text=location\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.Resource.tags()?alt=com.azure.core.management.Resource.tags&text=tags\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.Resource.toJson(com.azure.json.JsonWriter)?alt=com.azure.core.management.Resource.toJson&text=toJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.Resource.withLocation(java.lang.String)?alt=com.azure.core.management.Resource.withLocation&text=withLocation\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.Resource.withTags(java.util.Map<java.lang.String,java.lang.String>)?alt=com.azure.core.management.Resource.withTags&text=withTags\" data-throw-if-not-resolved=\"False\" />"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **MetricAlertResourceInner**</br> extends <xref href=\"com.azure.core.management.Resource?alt=com.azure.core.management.Resource&text=Resource\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.MetricAlertResourceInner()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.MetricAlertResourceInner()"
name: "MetricAlertResourceInner()"
nameWithType: "MetricAlertResourceInner.MetricAlertResourceInner()"
summary: "Creates an instance of Metric<wbr>Alert<wbr>Resource<wbr>Inner class."
syntax: "public MetricAlertResourceInner()"
desc: "Creates an instance of MetricAlertResourceInner class."
methods:
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.actions()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.actions()"
name: "actions()"
nameWithType: "MetricAlertResourceInner.actions()"
summary: "Get the actions property: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
syntax: "public List<MetricAlertAction> actions()"
desc: "Get the actions property: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
returns:
description: "the actions value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a><<xref href=\"com.azure.resourcemanager.monitor.models.MetricAlertAction?alt=com.azure.resourcemanager.monitor.models.MetricAlertAction&text=MetricAlertAction\" data-throw-if-not-resolved=\"False\" />>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.autoMitigate()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.autoMitigate()"
name: "autoMitigate()"
nameWithType: "MetricAlertResourceInner.autoMitigate()"
summary: "Get the auto<wbr>Mitigate property: the flag that indicates whether the alert should be auto resolved or not."
syntax: "public Boolean autoMitigate()"
desc: "Get the autoMitigate property: the flag that indicates whether the alert should be auto resolved or not. The default is true."
returns:
description: "the autoMitigate value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.criteria()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.criteria()"
name: "criteria()"
nameWithType: "MetricAlertResourceInner.criteria()"
summary: "Get the criteria property: defines the specific alert criteria information."
syntax: "public MetricAlertCriteria criteria()"
desc: "Get the criteria property: defines the specific alert criteria information."
returns:
description: "the criteria value."
type: "<xref href=\"com.azure.resourcemanager.monitor.models.MetricAlertCriteria?alt=com.azure.resourcemanager.monitor.models.MetricAlertCriteria&text=MetricAlertCriteria\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.description()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.description()"
name: "description()"
nameWithType: "MetricAlertResourceInner.description()"
summary: "Get the description property: the description of the metric alert that will be included in the alert email."
syntax: "public String description()"
desc: "Get the description property: the description of the metric alert that will be included in the alert email."
returns:
description: "the description value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.enabled()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.enabled()"
name: "enabled()"
nameWithType: "MetricAlertResourceInner.enabled()"
summary: "Get the enabled property: the flag that indicates whether the metric alert is enabled."
syntax: "public boolean enabled()"
desc: "Get the enabled property: the flag that indicates whether the metric alert is enabled."
returns:
description: "the enabled value."
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.evaluationFrequency()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.evaluationFrequency()"
name: "evaluationFrequency()"
nameWithType: "MetricAlertResourceInner.evaluationFrequency()"
summary: "Get the evaluation<wbr>Frequency property: how often the metric alert is evaluated represented in ISO 8601 duration format."
syntax: "public Duration evaluationFrequency()"
desc: "Get the evaluationFrequency property: how often the metric alert is evaluated represented in ISO 8601 duration format."
returns:
description: "the evaluationFrequency value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "MetricAlertResourceInner.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Metric<wbr>Alert<wbr>Resource<wbr>Inner from the Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static MetricAlertResourceInner fromJson(JsonReader jsonReader)"
exceptions:
- description: "If the deserialized JSON object was missing any required properties."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of MetricAlertResourceInner from the JsonReader."
returns:
description: "An instance of MetricAlertResourceInner if the JsonReader was pointing to an instance of it, or null if\n it was pointing to JSON null."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.id()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.id()"
name: "id()"
nameWithType: "MetricAlertResourceInner.id()"
summary: "Get the id property: Fully qualified resource Id for the resource."
overridden: "com.azure.core.management.ProxyResource.id()"
syntax: "public String id()"
desc: "Get the id property: Fully qualified resource Id for the resource."
returns:
description: "the id value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.isMigrated()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.isMigrated()"
name: "isMigrated()"
nameWithType: "MetricAlertResourceInner.isMigrated()"
summary: "Get the is<wbr>Migrated property: the value indicating whether this alert rule is migrated."
syntax: "public Boolean isMigrated()"
desc: "Get the isMigrated property: the value indicating whether this alert rule is migrated."
returns:
description: "the isMigrated value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.lastUpdatedTime()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.lastUpdatedTime()"
name: "lastUpdatedTime()"
nameWithType: "MetricAlertResourceInner.lastUpdatedTime()"
summary: "Get the last<wbr>Updated<wbr>Time property: Last time the rule was updated in ISO8601 format."
syntax: "public OffsetDateTime lastUpdatedTime()"
desc: "Get the lastUpdatedTime property: Last time the rule was updated in ISO8601 format."
returns:
description: "the lastUpdatedTime value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html\">OffsetDateTime</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.name()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.name()"
name: "name()"
nameWithType: "MetricAlertResourceInner.name()"
summary: "Get the name property: The name of the resource."
overridden: "com.azure.core.management.ProxyResource.name()"
syntax: "public String name()"
desc: "Get the name property: The name of the resource."
returns:
description: "the name value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.scopes()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.scopes()"
name: "scopes()"
nameWithType: "MetricAlertResourceInner.scopes()"
summary: "Get the scopes property: the list of resource id's that this metric alert is scoped to."
syntax: "public List<String> scopes()"
desc: "Get the scopes property: the list of resource id's that this metric alert is scoped to."
returns:
description: "the scopes value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a><<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.severity()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.severity()"
name: "severity()"
nameWithType: "MetricAlertResourceInner.severity()"
summary: "Get the severity property: Alert severity \\{0, 1, 2, 3, 4\\}."
syntax: "public int severity()"
desc: "Get the severity property: Alert severity \\{0, 1, 2, 3, 4\\}."
returns:
description: "the severity value."
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.targetResourceRegion()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.targetResourceRegion()"
name: "targetResourceRegion()"
nameWithType: "MetricAlertResourceInner.targetResourceRegion()"
summary: "Get the target<wbr>Resource<wbr>Region property: the region of the target resource(s) on which the alert is created/updated."
syntax: "public String targetResourceRegion()"
desc: "Get the targetResourceRegion property: 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."
returns:
description: "the targetResourceRegion value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.targetResourceType()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.targetResourceType()"
name: "targetResourceType()"
nameWithType: "MetricAlertResourceInner.targetResourceType()"
summary: "Get the target<wbr>Resource<wbr>Type property: the resource type of the target resource(s) on which the alert is created/updated."
syntax: "public String targetResourceType()"
desc: "Get the targetResourceType property: 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."
returns:
description: "the targetResourceType value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "MetricAlertResourceInner.toJson(JsonWriter jsonWriter)"
overridden: "com.azure.core.management.Resource.toJson(com.azure.json.JsonWriter)"
parameters:
- name: "jsonWriter"
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.type()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.type()"
name: "type()"
nameWithType: "MetricAlertResourceInner.type()"
summary: "Get the type property: The type of the resource."
overridden: "com.azure.core.management.ProxyResource.type()"
syntax: "public String type()"
desc: "Get the type property: The type of the resource."
returns:
description: "the type value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.validate()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.validate()"
name: "validate()"
nameWithType: "MetricAlertResourceInner.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.windowSize()"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.windowSize()"
name: "windowSize()"
nameWithType: "MetricAlertResourceInner.windowSize()"
summary: "Get the window<wbr>Size property: the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
syntax: "public Duration windowSize()"
desc: "Get the windowSize property: the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
returns:
description: "the windowSize value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withActions(java.util.List<com.azure.resourcemanager.monitor.models.MetricAlertAction>)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withActions(List<MetricAlertAction> actions)"
name: "withActions(List<MetricAlertAction> actions)"
nameWithType: "MetricAlertResourceInner.withActions(List<MetricAlertAction> actions)"
summary: "Set the actions property: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
parameters:
- description: "the actions value to set."
name: "actions"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a><<xref href=\"com.azure.resourcemanager.monitor.models.MetricAlertAction?alt=com.azure.resourcemanager.monitor.models.MetricAlertAction&text=MetricAlertAction\" data-throw-if-not-resolved=\"False\" />>"
syntax: "public MetricAlertResourceInner withActions(List<MetricAlertAction> actions)"
desc: "Set the actions property: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withAutoMitigate(java.lang.Boolean)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withAutoMitigate(Boolean autoMitigate)"
name: "withAutoMitigate(Boolean autoMitigate)"
nameWithType: "MetricAlertResourceInner.withAutoMitigate(Boolean autoMitigate)"
summary: "Set the auto<wbr>Mitigate property: the flag that indicates whether the alert should be auto resolved or not."
parameters:
- description: "the autoMitigate value to set."
name: "autoMitigate"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
syntax: "public MetricAlertResourceInner withAutoMitigate(Boolean autoMitigate)"
desc: "Set the autoMitigate property: the flag that indicates whether the alert should be auto resolved or not. The default is true."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withCriteria(com.azure.resourcemanager.monitor.models.MetricAlertCriteria)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withCriteria(MetricAlertCriteria criteria)"
name: "withCriteria(MetricAlertCriteria criteria)"
nameWithType: "MetricAlertResourceInner.withCriteria(MetricAlertCriteria criteria)"
summary: "Set the criteria property: defines the specific alert criteria information."
parameters:
- description: "the criteria value to set."
name: "criteria"
type: "<xref href=\"com.azure.resourcemanager.monitor.models.MetricAlertCriteria?alt=com.azure.resourcemanager.monitor.models.MetricAlertCriteria&text=MetricAlertCriteria\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourceInner withCriteria(MetricAlertCriteria criteria)"
desc: "Set the criteria property: defines the specific alert criteria information."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withDescription(java.lang.String)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withDescription(String description)"
name: "withDescription(String description)"
nameWithType: "MetricAlertResourceInner.withDescription(String description)"
summary: "Set the description property: the description of the metric alert that will be included in the alert email."
parameters:
- description: "the description value to set."
name: "description"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public MetricAlertResourceInner withDescription(String description)"
desc: "Set the description property: the description of the metric alert that will be included in the alert email."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withEnabled(boolean)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withEnabled(boolean enabled)"
name: "withEnabled(boolean enabled)"
nameWithType: "MetricAlertResourceInner.withEnabled(boolean enabled)"
summary: "Set the enabled property: the flag that indicates whether the metric alert is enabled."
parameters:
- description: "the enabled value to set."
name: "enabled"
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourceInner withEnabled(boolean enabled)"
desc: "Set the enabled property: the flag that indicates whether the metric alert is enabled."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withEvaluationFrequency(java.time.Duration)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withEvaluationFrequency(Duration evaluationFrequency)"
name: "withEvaluationFrequency(Duration evaluationFrequency)"
nameWithType: "MetricAlertResourceInner.withEvaluationFrequency(Duration evaluationFrequency)"
summary: "Set the evaluation<wbr>Frequency property: how often the metric alert is evaluated represented in ISO 8601 duration format."
parameters:
- description: "the evaluationFrequency value to set."
name: "evaluationFrequency"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
syntax: "public MetricAlertResourceInner withEvaluationFrequency(Duration evaluationFrequency)"
desc: "Set the evaluationFrequency property: how often the metric alert is evaluated represented in ISO 8601 duration format."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withLocation(java.lang.String)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withLocation(String location)"
name: "withLocation(String location)"
nameWithType: "MetricAlertResourceInner.withLocation(String location)"
overridden: "com.azure.core.management.Resource.withLocation(java.lang.String)"
parameters:
- name: "location"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public MetricAlertResourceInner withLocation(String location)"
returns:
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withScopes(java.util.List<java.lang.String>)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withScopes(List<String> scopes)"
name: "withScopes(List<String> scopes)"
nameWithType: "MetricAlertResourceInner.withScopes(List<String> scopes)"
summary: "Set the scopes property: the list of resource id's that this metric alert is scoped to."
parameters:
- description: "the scopes value to set."
name: "scopes"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a><<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>>"
syntax: "public MetricAlertResourceInner withScopes(List<String> scopes)"
desc: "Set the scopes property: the list of resource id's that this metric alert is scoped to."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withSeverity(int)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withSeverity(int severity)"
name: "withSeverity(int severity)"
nameWithType: "MetricAlertResourceInner.withSeverity(int severity)"
summary: "Set the severity property: Alert severity \\{0, 1, 2, 3, 4\\}."
parameters:
- description: "the severity value to set."
name: "severity"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourceInner withSeverity(int severity)"
desc: "Set the severity property: Alert severity \\{0, 1, 2, 3, 4\\}."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withTags(java.util.Map<java.lang.String,java.lang.String>)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withTags(Map<String,String> tags)"
name: "withTags(Map<String,String> tags)"
nameWithType: "MetricAlertResourceInner.withTags(Map<String,String> tags)"
overridden: "com.azure.core.management.Resource.withTags(java.util.Map<java.lang.String,java.lang.String>)"
parameters:
- name: "tags"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Map.html\">Map</a><<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>,<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>>"
syntax: "public MetricAlertResourceInner withTags(Map<String,String> tags)"
returns:
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withTargetResourceRegion(java.lang.String)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withTargetResourceRegion(String targetResourceRegion)"
name: "withTargetResourceRegion(String targetResourceRegion)"
nameWithType: "MetricAlertResourceInner.withTargetResourceRegion(String targetResourceRegion)"
summary: "Set the target<wbr>Resource<wbr>Region property: the region of the target resource(s) on which the alert is created/updated."
parameters:
- description: "the targetResourceRegion value to set."
name: "targetResourceRegion"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public MetricAlertResourceInner withTargetResourceRegion(String targetResourceRegion)"
desc: "Set the targetResourceRegion property: 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."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withTargetResourceType(java.lang.String)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withTargetResourceType(String targetResourceType)"
name: "withTargetResourceType(String targetResourceType)"
nameWithType: "MetricAlertResourceInner.withTargetResourceType(String targetResourceType)"
summary: "Set the target<wbr>Resource<wbr>Type property: the resource type of the target resource(s) on which the alert is created/updated."
parameters:
- description: "the targetResourceType value to set."
name: "targetResourceType"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public MetricAlertResourceInner withTargetResourceType(String targetResourceType)"
desc: "Set the targetResourceType property: 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."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withWindowSize(java.time.Duration)"
fullName: "com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner.withWindowSize(Duration windowSize)"
name: "withWindowSize(Duration windowSize)"
nameWithType: "MetricAlertResourceInner.withWindowSize(Duration windowSize)"
summary: "Set the window<wbr>Size property: the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
parameters:
- description: "the windowSize value to set."
name: "windowSize"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
syntax: "public MetricAlertResourceInner withWindowSize(Duration windowSize)"
desc: "Set the windowSize property: the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
returns:
description: "the MetricAlertResourceInner object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner?alt=com.azure.resourcemanager.monitor.fluent.models.MetricAlertResourceInner&text=MetricAlertResourceInner\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The metric alert resource."
metadata: {}
package: "com.azure.resourcemanager.monitor.fluent.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-monitor:2.44.0