MetricAlertStatusProperties Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. MetricAlertStatusProperties
- com.
Implements
public final class MetricAlertStatusProperties
implements JsonSerializable<MetricAlertStatusProperties>
An alert status properties.
Constructor | Description |
---|---|
Metric |
Creates an instance of Metric |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
dimensions()
Get the dimensions property: An object describing the type of the dimensions. |
static
Metric |
from Reads an instance of Metric |
String |
status()
Get the status property: status value. |
Offset |
timestamp()
Get the timestamp property: UTC time when the status was checked. |
Json |
to |
void |
validate()
Validates the instance. |
Metric |
with Set the dimensions property: An object describing the type of the dimensions. |
Metric |
with Set the status property: status value. |
Metric |
with Set the timestamp property: UTC time when the status was checked. |
Methods inherited from java.lang.Object
MetricAlertStatusProperties
public MetricAlertStatusProperties()
Creates an instance of MetricAlertStatusProperties class.
dimensions
public Map
Get the dimensions property: An object describing the type of the dimensions.
Returns:
fromJson
public static MetricAlertStatusProperties fromJson(JsonReader jsonReader)
Reads an instance of MetricAlertStatusProperties from the JsonReader.
Parameters:
Returns:
Throws:
status
public String status()
Get the status property: status value.
Returns:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: UTC time when the status was checked.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDimensions
public MetricAlertStatusProperties withDimensions(Map
Set the dimensions property: An object describing the type of the dimensions.
Parameters:
Returns:
withStatus
public MetricAlertStatusProperties withStatus(String status)
Set the status property: status value.
Parameters:
Returns:
withTimestamp
public MetricAlertStatusProperties withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: UTC time when the status was checked.
Parameters:
Returns:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: