Class TopQueryStatisticsInput
java.lang.Object
com.azure.resourcemanager.mariadb.models.TopQueryStatisticsInput
Input to get top query statistics.
-
Constructor Summary
ConstructorDescriptionCreates an instance of TopQueryStatisticsInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationFunction property: Aggregation function name.Get the aggregationWindow property: Aggregation interval type in ISO 8601 format.int
Get the numberOfTopQueries property: Max number of top queries to return.Get the observationEndTime property: Observation end time.Get the observationStartTime property: Observation start time.Get the observedMetric property: Observed metric name.void
validate()
Validates the instance.withAggregationFunction
(String aggregationFunction) Set the aggregationFunction property: Aggregation function name.withAggregationWindow
(String aggregationWindow) Set the aggregationWindow property: Aggregation interval type in ISO 8601 format.withNumberOfTopQueries
(int numberOfTopQueries) Set the numberOfTopQueries property: Max number of top queries to return.withObservationEndTime
(OffsetDateTime observationEndTime) Set the observationEndTime property: Observation end time.withObservationStartTime
(OffsetDateTime observationStartTime) Set the observationStartTime property: Observation start time.withObservedMetric
(String observedMetric) Set the observedMetric property: Observed metric name.
-
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
Set the numberOfTopQueries property: Max number of top queries to return.- Parameters:
numberOfTopQueries
- the numberOfTopQueries value to set.- Returns:
- the TopQueryStatisticsInput object itself.
-
aggregationFunction
Get the aggregationFunction property: Aggregation function name.- Returns:
- the aggregationFunction value.
-
withAggregationFunction
Set the aggregationFunction property: Aggregation function name.- Parameters:
aggregationFunction
- the aggregationFunction value to set.- Returns:
- the TopQueryStatisticsInput object itself.
-
observedMetric
Get the observedMetric property: Observed metric name.- Returns:
- the observedMetric value.
-
withObservedMetric
Set the observedMetric property: Observed metric name.- Parameters:
observedMetric
- the observedMetric value to set.- Returns:
- the TopQueryStatisticsInput object itself.
-
observationStartTime
Get the observationStartTime property: Observation start time.- Returns:
- the observationStartTime value.
-
withObservationStartTime
Set the observationStartTime property: Observation start time.- Parameters:
observationStartTime
- the observationStartTime value to set.- Returns:
- the TopQueryStatisticsInput object itself.
-
observationEndTime
Get the observationEndTime property: Observation end time.- Returns:
- the observationEndTime value.
-
withObservationEndTime
Set the observationEndTime property: Observation end time.- Parameters:
observationEndTime
- the observationEndTime value to set.- Returns:
- the TopQueryStatisticsInput object itself.
-
aggregationWindow
Get the aggregationWindow property: Aggregation interval type in ISO 8601 format.- Returns:
- the aggregationWindow value.
-
withAggregationWindow
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.
-