Class TopQueryStatisticsInputProperties

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

public final class TopQueryStatisticsInputProperties extends Object
The properties for input to get top query statistics.
  • Constructor Details

    • TopQueryStatisticsInputProperties

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

    • numberOfTopQueries

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

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

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

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

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

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

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

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

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

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

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

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

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