AlertProperties Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. AlertProperties
- com.
Implements
public final class AlertProperties
implements JsonSerializable<AlertProperties>
Alert property bag.
Constructor Summary
| Constructor | Description |
|---|---|
| AlertProperties() |
Creates an instance of Alert |
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 egress |
| Essentials |
essentials()
Get the essentials property: This object contains consistent fields across different monitor services. |
|
static
Alert |
fromJson(JsonReader jsonReader)
Reads an instance of Alert |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Alert |
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:
egressConfig
public Object egressConfig()
Get the egressConfig property: Config which would be used for displaying the data in portal.
Returns:
essentials
public Essentials essentials()
Get the essentials property: This object contains consistent fields across different monitor services.
Returns:
fromJson
public static AlertProperties fromJson(JsonReader jsonReader)
Reads an instance of AlertProperties from the JsonReader.
Parameters:
Returns:
Throws:
toJson
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:
Returns: