Class TopQueryStatisticsInput

java.lang.Object
com.azure.resourcemanager.mariadb.models.TopQueryStatisticsInput

public final class TopQueryStatisticsInput extends Object
Input to get top query statistics.
  • Constructor Details

    • TopQueryStatisticsInput

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

    • numberOfTopQueries

      public int numberOfTopQueries()
      Get the numberOfTopQueries property: Max number of top queries to return.
      Returns:
      the numberOfTopQueries value.
    • withNumberOfTopQueries

      public TopQueryStatisticsInput withNumberOfTopQueries(int numberOfTopQueries)
      Set the numberOfTopQueries property: Max number of top queries to return.
      Parameters:
      numberOfTopQueries - the numberOfTopQueries value to set.
      Returns:
      the TopQueryStatisticsInput object itself.
    • aggregationFunction

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

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

      public String observedMetric()
      Get the observedMetric property: Observed metric name.
      Returns:
      the observedMetric value.
    • withObservedMetric

      public TopQueryStatisticsInput withObservedMetric(String observedMetric)
      Set the observedMetric property: Observed metric name.
      Parameters:
      observedMetric - the observedMetric value to set.
      Returns:
      the TopQueryStatisticsInput object itself.
    • observationStartTime

      public OffsetDateTime observationStartTime()
      Get the observationStartTime property: Observation start time.
      Returns:
      the observationStartTime value.
    • withObservationStartTime

      public TopQueryStatisticsInput withObservationStartTime(OffsetDateTime observationStartTime)
      Set the observationStartTime property: Observation start time.
      Parameters:
      observationStartTime - the observationStartTime value to set.
      Returns:
      the TopQueryStatisticsInput object itself.
    • observationEndTime

      public OffsetDateTime observationEndTime()
      Get the observationEndTime property: Observation end time.
      Returns:
      the observationEndTime value.
    • withObservationEndTime

      public TopQueryStatisticsInput withObservationEndTime(OffsetDateTime observationEndTime)
      Set the observationEndTime property: Observation end time.
      Parameters:
      observationEndTime - the observationEndTime value to set.
      Returns:
      the TopQueryStatisticsInput object itself.
    • aggregationWindow

      public String aggregationWindow()
      Get the aggregationWindow property: Aggregation interval type in ISO 8601 format.
      Returns:
      the aggregationWindow value.
    • withAggregationWindow

      public TopQueryStatisticsInput withAggregationWindow(String aggregationWindow)
      Set the aggregationWindow property: Aggregation interval type in ISO 8601 format.
      Parameters:
      aggregationWindow - the aggregationWindow value to set.
      Returns:
      the TopQueryStatisticsInput object itself.
    • validate

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