Partager via


AnomalyAlert Class

  • java.lang.Object
    • com.azure.ai.metricsadvisor.models.AnomalyAlert

Implements

public final class AnomalyAlert
implements JsonSerializable<AnomalyAlert>

The AnomalyAlert model.

Constructor Summary

Constructor Description
AnomalyAlert()

Creates an instance of AnomalyAlert class.

Method Summary

Modifier and Type Method and Description
static AnomalyAlert fromJson(JsonReader jsonReader)

Reads an instance of AnomalyAlert from the JsonReader.

OffsetDateTime getCreatedTime()

Get the createdTime property: created time.

String getId()

Get the id property: alert id.

OffsetDateTime getModifiedTime()

Get the modifiedTime property: modified time.

OffsetDateTime getTimestamp()

Get the timestamp property: anomaly time.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AnomalyAlert

public AnomalyAlert()

Creates an instance of AnomalyAlert class.

Method Details

fromJson

public static AnomalyAlert fromJson(JsonReader jsonReader)

Reads an instance of AnomalyAlert from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AnomalyAlert 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 AnomalyAlert.

getCreatedTime

public OffsetDateTime getCreatedTime()

Get the createdTime property: created time.

Returns:

the createdTime value.

getId

public String getId()

Get the id property: alert id.

Returns:

the id value.

getModifiedTime

public OffsetDateTime getModifiedTime()

Get the modifiedTime property: modified time.

Returns:

the modifiedTime value.

getTimestamp

public OffsetDateTime getTimestamp()

Get the timestamp property: anomaly time.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to