public class MetricAlertResourcePatch extends Object
Constructor and Description |
---|
MetricAlertResourcePatch() |
Modifier and Type | Method and Description |
---|---|
List<MetricAlertAction> |
actions()
Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
|
Boolean |
autoMitigate()
Get the flag that indicates whether the alert should be auto resolved or not.
|
MetricAlertCriteria |
criteria()
Get defines the specific alert criteria information.
|
String |
description()
Get the description of the metric alert that will be included in the alert email.
|
boolean |
enabled()
Get the flag that indicates whether the metric alert is enabled.
|
org.joda.time.Period |
evaluationFrequency()
Get how often the metric alert is evaluated represented in ISO 8601 duration format.
|
org.joda.time.DateTime |
lastUpdatedTime()
Get last time the rule was updated in ISO8601 format.
|
List<String> |
scopes()
Get the list of resource id's that this metric alert is scoped to.
|
int |
severity()
Get alert severity {0, 1, 2, 3, 4}.
|
Map<String,String> |
tags()
Get resource tags.
|
org.joda.time.Period |
windowSize()
Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
|
MetricAlertResourcePatch |
withActions(List<MetricAlertAction> actions)
Set the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
|
MetricAlertResourcePatch |
withAutoMitigate(Boolean autoMitigate)
Set the flag that indicates whether the alert should be auto resolved or not.
|
MetricAlertResourcePatch |
withCriteria(MetricAlertCriteria criteria)
Set defines the specific alert criteria information.
|
MetricAlertResourcePatch |
withDescription(String description)
Set the description of the metric alert that will be included in the alert email.
|
MetricAlertResourcePatch |
withEnabled(boolean enabled)
Set the flag that indicates whether the metric alert is enabled.
|
MetricAlertResourcePatch |
withEvaluationFrequency(org.joda.time.Period evaluationFrequency)
Set how often the metric alert is evaluated represented in ISO 8601 duration format.
|
MetricAlertResourcePatch |
withScopes(List<String> scopes)
Set the list of resource id's that this metric alert is scoped to.
|
MetricAlertResourcePatch |
withSeverity(int severity)
Set alert severity {0, 1, 2, 3, 4}.
|
MetricAlertResourcePatch |
withTags(Map<String,String> tags)
Set resource tags.
|
MetricAlertResourcePatch |
withWindowSize(org.joda.time.Period windowSize)
Set the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
|
public MetricAlertResourcePatch withTags(Map<String,String> tags)
tags
- the tags value to setpublic String description()
public MetricAlertResourcePatch withDescription(String description)
description
- the description value to setpublic int severity()
public MetricAlertResourcePatch withSeverity(int severity)
severity
- the severity value to setpublic boolean enabled()
public MetricAlertResourcePatch withEnabled(boolean enabled)
enabled
- the enabled value to setpublic List<String> scopes()
public MetricAlertResourcePatch withScopes(List<String> scopes)
scopes
- the scopes value to setpublic org.joda.time.Period evaluationFrequency()
public MetricAlertResourcePatch withEvaluationFrequency(org.joda.time.Period evaluationFrequency)
evaluationFrequency
- the evaluationFrequency value to setpublic org.joda.time.Period windowSize()
public MetricAlertResourcePatch withWindowSize(org.joda.time.Period windowSize)
windowSize
- the windowSize value to setpublic MetricAlertCriteria criteria()
public MetricAlertResourcePatch withCriteria(MetricAlertCriteria criteria)
criteria
- the criteria value to setpublic Boolean autoMitigate()
public MetricAlertResourcePatch withAutoMitigate(Boolean autoMitigate)
autoMitigate
- the autoMitigate value to setpublic List<MetricAlertAction> actions()
public MetricAlertResourcePatch withActions(List<MetricAlertAction> actions)
actions
- the actions value to setpublic org.joda.time.DateTime lastUpdatedTime()
Copyright © 2019. All rights reserved.