Class QueryStatisticProperties

java.lang.Object
com.azure.resourcemanager.mariadb.fluent.models.QueryStatisticProperties

public final class QueryStatisticProperties extends Object
The properties of a query statistic.
  • Constructor Details

    • QueryStatisticProperties

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

    • queryId

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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