Class MetricAlertStatusProperties

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

public final class MetricAlertStatusProperties extends Object
An alert status properties.
  • Constructor Details

    • MetricAlertStatusProperties

      public MetricAlertStatusProperties()
      Creates an instance of MetricAlertStatusProperties class.
  • Method Details

    • dimensions

      public Map<String,String> dimensions()
      Get the dimensions property: An object describing the type of the dimensions.
      Returns:
      the dimensions value.
    • withDimensions

      public MetricAlertStatusProperties withDimensions(Map<String,String> 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.
    • status

      public String status()
      Get the status property: status value.
      Returns:
      the status value.
    • withStatus

      public MetricAlertStatusProperties withStatus(String status)
      Set the status property: status value.
      Parameters:
      status - the status value to set.
      Returns:
      the MetricAlertStatusProperties object itself.
    • timestamp

      public OffsetDateTime timestamp()
      Get the timestamp property: UTC time when the status was checked.
      Returns:
      the timestamp value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.