Partager via


MetricAlertStatusProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.MetricAlertStatusProperties

Implements

public final class MetricAlertStatusProperties
implements JsonSerializable<MetricAlertStatusProperties>

An alert status properties.

Constructor Summary

Constructor Description
MetricAlertStatusProperties()

Creates an instance of MetricAlertStatusProperties class.

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 MetricAlertStatusProperties fromJson(JsonReader jsonReader)

Reads an instance of MetricAlertStatusProperties from the JsonReader.

String status()

Get the status property: status value.

OffsetDateTime timestamp()

Get the timestamp property: UTC time when the status was checked.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MetricAlertStatusProperties withDimensions(Map<String,String> dimensions)

Set the dimensions property: An object describing the type of the dimensions.

MetricAlertStatusProperties withStatus(String status)

Set the status property: status value.

MetricAlertStatusProperties 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 dimensions()

Get the dimensions property: An object describing the type of the dimensions.

Returns:

the dimensions value.

fromJson

public static MetricAlertStatusProperties fromJson(JsonReader jsonReader)

Reads an instance of MetricAlertStatusProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MetricAlertStatusProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MetricAlertStatusProperties.

status

public String status()

Get the status property: status value.

Returns:

the status value.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: UTC time when the status was checked.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDimensions

public MetricAlertStatusProperties withDimensions(Map dimensions)

Set the dimensions property: An object describing the type of the dimensions.

Parameters:

dimensions - the dimensions value to set.

Returns:

the MetricAlertStatusProperties object itself.

withStatus

public MetricAlertStatusProperties withStatus(String status)

Set the status property: status value.

Parameters:

status - the status value to set.

Returns:

the MetricAlertStatusProperties object itself.

withTimestamp

public MetricAlertStatusProperties withTimestamp(OffsetDateTime timestamp)

Set the timestamp property: UTC time when the status was checked.

Parameters:

timestamp - the timestamp value to set.

Returns:

the MetricAlertStatusProperties object itself.

Applies to