Class DiagnosticMetricSet

java.lang.Object
com.azure.resourcemanager.appservice.models.DiagnosticMetricSet
All Implemented Interfaces:
com.azure.json.JsonSerializable<DiagnosticMetricSet>

public final class DiagnosticMetricSet extends Object implements com.azure.json.JsonSerializable<DiagnosticMetricSet>
Class representing Diagnostic Metric information.
  • Method Details

    • name

      public String name()
      Get the name property: Name of the metric.
      Returns:
      the name value.
    • unit

      public String unit()
      Get the unit property: Metric's unit.
      Returns:
      the unit value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Start time of the period.
      Returns:
      the startTime value.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: End time of the period.
      Returns:
      the endTime value.
    • timeGrain

      public String timeGrain()
      Get the timeGrain property: Presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.
      Returns:
      the timeGrain value.
    • values

      public List<DiagnosticMetricSample> values()
      Get the values property: Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
      Returns:
      the values value.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DiagnosticMetricSet>
      Throws:
      IOException
    • fromJson

      public static DiagnosticMetricSet fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DiagnosticMetricSet from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DiagnosticMetricSet 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 DiagnosticMetricSet.