MetricAlertStatus Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. MetricAlertStatus
- com.
Implements
public final class MetricAlertStatus
implements JsonSerializable<MetricAlertStatus>
An alert status.
Constructor Summary
Constructor | Description |
---|---|
MetricAlertStatus() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
id()
Get the id property: The alert rule arm id. |
String |
name()
Get the name property: The status name. |
Metric |
properties()
Get the properties property: The alert status properties of the metric alert status. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The extended resource type name. |
void |
validate()
Validates the instance. |
Metric |
withId(String id)
Set the id property: The alert rule arm id. |
Metric |
withName(String name)
Set the name property: The status name. |
Metric |
withProperties(MetricAlertStatusProperties properties)
Set the properties property: The alert status properties of the metric alert status. |
Metric |
withType(String type)
Set the type property: The extended resource type name. |
Methods inherited from java.lang.Object
Constructor Details
MetricAlertStatus
public MetricAlertStatus()
Creates an instance of MetricAlertStatus class.
Method Details
fromJson
public static MetricAlertStatus fromJson(JsonReader jsonReader)
Reads an instance of MetricAlertStatus from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The alert rule arm id.
Returns:
name
public String name()
Get the name property: The status name.
Returns:
properties
public MetricAlertStatusProperties properties()
Get the properties property: The alert status properties of the metric alert status.
Returns:
toJson
type
public String type()
Get the type property: The extended resource type name.
Returns:
validate
public void validate()
Validates the instance.
withId
public MetricAlertStatus withId(String id)
Set the id property: The alert rule arm id.
Parameters:
Returns:
withName
public MetricAlertStatus withName(String name)
Set the name property: The status name.
Parameters:
Returns:
withProperties
public MetricAlertStatus withProperties(MetricAlertStatusProperties properties)
Set the properties property: The alert status properties of the metric alert status.
Parameters:
Returns:
withType
public MetricAlertStatus withType(String type)
Set the type property: The extended resource type name.
Parameters:
Returns:
Applies to
Azure SDK for Java