Class QueryStatisticInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.mariadb.fluent.models.QueryStatisticInner

public final class QueryStatisticInner extends com.azure.core.management.ProxyResource
Represents a Query Statistic.
  • Constructor Details

    • QueryStatisticInner

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

    • queryId

      public String queryId()
      Get the queryId property: Database query identifier.
      Returns:
      the queryId value.
    • withQueryId

      public QueryStatisticInner withQueryId(String queryId)
      Set the queryId property: Database query identifier.
      Parameters:
      queryId - the queryId value to set.
      Returns:
      the QueryStatisticInner object itself.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Observation start time.
      Returns:
      the startTime value.
    • withStartTime

      public QueryStatisticInner withStartTime(OffsetDateTime startTime)
      Set the startTime property: Observation start time.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the QueryStatisticInner object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: Observation end time.
      Returns:
      the endTime value.
    • withEndTime

      public QueryStatisticInner withEndTime(OffsetDateTime endTime)
      Set the endTime property: Observation end time.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the QueryStatisticInner object itself.
    • aggregationFunction

      public String aggregationFunction()
      Get the aggregationFunction property: Aggregation function name.
      Returns:
      the aggregationFunction value.
    • withAggregationFunction

      public QueryStatisticInner withAggregationFunction(String aggregationFunction)
      Set the aggregationFunction property: Aggregation function name.
      Parameters:
      aggregationFunction - the aggregationFunction value to set.
      Returns:
      the QueryStatisticInner object itself.
    • databaseNames

      public List<String> databaseNames()
      Get the databaseNames property: The list of database names.
      Returns:
      the databaseNames value.
    • withDatabaseNames

      public QueryStatisticInner withDatabaseNames(List<String> databaseNames)
      Set the databaseNames property: The list of database names.
      Parameters:
      databaseNames - the databaseNames value to set.
      Returns:
      the QueryStatisticInner object itself.
    • queryExecutionCount

      public Long queryExecutionCount()
      Get the queryExecutionCount property: Number of query executions in this time interval.
      Returns:
      the queryExecutionCount value.
    • withQueryExecutionCount

      public QueryStatisticInner withQueryExecutionCount(Long queryExecutionCount)
      Set the queryExecutionCount property: Number of query executions in this time interval.
      Parameters:
      queryExecutionCount - the queryExecutionCount value to set.
      Returns:
      the QueryStatisticInner object itself.
    • metricName

      public String metricName()
      Get the metricName property: Metric name.
      Returns:
      the metricName value.
    • withMetricName

      public QueryStatisticInner withMetricName(String metricName)
      Set the metricName property: Metric name.
      Parameters:
      metricName - the metricName value to set.
      Returns:
      the QueryStatisticInner object itself.
    • metricDisplayName

      public String metricDisplayName()
      Get the metricDisplayName property: Metric display name.
      Returns:
      the metricDisplayName value.
    • withMetricDisplayName

      public QueryStatisticInner withMetricDisplayName(String metricDisplayName)
      Set the metricDisplayName property: Metric display name.
      Parameters:
      metricDisplayName - the metricDisplayName value to set.
      Returns:
      the QueryStatisticInner object itself.
    • metricValue

      public Double metricValue()
      Get the metricValue property: Metric value.
      Returns:
      the metricValue value.
    • withMetricValue

      public QueryStatisticInner withMetricValue(Double metricValue)
      Set the metricValue property: Metric value.
      Parameters:
      metricValue - the metricValue value to set.
      Returns:
      the QueryStatisticInner object itself.
    • metricValueUnit

      public String metricValueUnit()
      Get the metricValueUnit property: Metric value unit.
      Returns:
      the metricValueUnit value.
    • withMetricValueUnit

      public QueryStatisticInner withMetricValueUnit(String metricValueUnit)
      Set the metricValueUnit property: Metric value unit.
      Parameters:
      metricValueUnit - the metricValueUnit value to set.
      Returns:
      the QueryStatisticInner object itself.
    • validate

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