Class QueryMetricInterval

java.lang.Object
com.azure.resourcemanager.sql.models.QueryMetricInterval

public final class QueryMetricInterval extends Object
Properties of a query metrics interval.
  • Constructor Details

    • QueryMetricInterval

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

    • intervalStartTime

      public String intervalStartTime()
      Get the intervalStartTime property: The start time for the metric interval (ISO-8601 format).
      Returns:
      the intervalStartTime value.
    • intervalType

      public QueryTimeGrainType intervalType()
      Get the intervalType property: Interval type (length).
      Returns:
      the intervalType value.
    • executionCount

      public Long executionCount()
      Get the executionCount property: Execution count of a query in this interval.
      Returns:
      the executionCount value.
    • metrics

      public List<QueryMetricProperties> metrics()
      Get the metrics property: List of metric objects for this interval.
      Returns:
      the metrics value.
    • withMetrics

      public QueryMetricInterval withMetrics(List<QueryMetricProperties> metrics)
      Set the metrics property: List of metric objects for this interval.
      Parameters:
      metrics - the metrics value to set.
      Returns:
      the QueryMetricInterval object itself.
    • validate

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