AlertProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.AlertProperties

Implements

public final class AlertProperties
implements JsonSerializable<AlertProperties>

Alert property bag.

Constructor Summary

Constructor Description
AlertProperties()

Creates an instance of AlertProperties class.

Method Summary

Modifier and Type Method and Description
Object context()

Get the context property: Information specific to the monitor service that gives more contextual details about the alert.

Object egressConfig()

Get the egressConfig property: Config which would be used for displaying the data in portal.

Essentials essentials()

Get the essentials property: This object contains consistent fields across different monitor services.

static AlertProperties fromJson(JsonReader jsonReader)

Reads an instance of AlertProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AlertProperties withEssentials(Essentials essentials)

Set the essentials property: This object contains consistent fields across different monitor services.

Methods inherited from java.lang.Object

Constructor Details

AlertProperties

public AlertProperties()

Creates an instance of AlertProperties class.

Method Details

context

public Object context()

Get the context property: Information specific to the monitor service that gives more contextual details about the alert.

Returns:

the context value.

egressConfig

public Object egressConfig()

Get the egressConfig property: Config which would be used for displaying the data in portal.

Returns:

the egressConfig value.

essentials

public Essentials essentials()

Get the essentials property: This object contains consistent fields across different monitor services.

Returns:

the essentials value.

fromJson

public static AlertProperties fromJson(JsonReader jsonReader)

Reads an instance of AlertProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEssentials

public AlertProperties withEssentials(Essentials essentials)

Set the essentials property: This object contains consistent fields across different monitor services.

Parameters:

essentials - the essentials value to set.

Returns:

the AlertProperties object itself.

Applies to