PrometheusRuleResolveConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. PrometheusRuleResolveConfiguration
- com.
Implements
public final class PrometheusRuleResolveConfiguration
implements JsonSerializable<PrometheusRuleResolveConfiguration>
Specifies the Prometheus alert rule configuration.
Constructor Summary
| Constructor | Description |
|---|---|
| PrometheusRuleResolveConfiguration() |
Creates an instance of Prometheus |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
autoResolved()
Get the auto |
|
static
Prometheus |
fromJson(JsonReader jsonReader)
Reads an instance of Prometheus |
| String |
timeToResolve()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Prometheus |
withAutoResolved(Boolean autoResolved)
Set the auto |
|
Prometheus |
withTimeToResolve(String timeToResolve)
Set the time |
Methods inherited from java.lang.Object
Constructor Details
PrometheusRuleResolveConfiguration
public PrometheusRuleResolveConfiguration()
Creates an instance of PrometheusRuleResolveConfiguration class.
Method Details
autoResolved
public Boolean autoResolved()
Get the autoResolved property: the flag that indicates whether or not to auto resolve a fired alert.
Returns:
fromJson
public static PrometheusRuleResolveConfiguration fromJson(JsonReader jsonReader)
Reads an instance of PrometheusRuleResolveConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
timeToResolve
public String timeToResolve()
Get the timeToResolve property: the duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format. Should be between 1 and 15 minutes.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAutoResolved
public PrometheusRuleResolveConfiguration withAutoResolved(Boolean autoResolved)
Set the autoResolved property: the flag that indicates whether or not to auto resolve a fired alert.
Parameters:
Returns:
withTimeToResolve
public PrometheusRuleResolveConfiguration withTimeToResolve(String timeToResolve)
Set the timeToResolve property: the duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format. Should be between 1 and 15 minutes.
Parameters:
Returns: