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 Summary
Constructor | Description |
---|---|
MetricAlertStatusProperties() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
dimensions()
Get the dimensions property: An object describing the type of the dimensions. |
static
Metric |
fromJson(JsonReader jsonReader)
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 |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Metric |
withDimensions(Map<String,String> dimensions)
Set the dimensions property: An object describing the type of the dimensions. |
Metric |
withStatus(String status)
Set the status property: status value. |
Metric |
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: UTC time when the status was checked. |
Methods inherited from java.lang.Object
Constructor Details
MetricAlertStatusProperties
public MetricAlertStatusProperties()
Creates an instance of MetricAlertStatusProperties class.
Method Details
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:
Applies to
Azure SDK for Java