Class TopQueryStatisticsInput
- java.lang.Object
-
- com.azure.resourcemanager.mysql.models.TopQueryStatisticsInput
-
public final class TopQueryStatisticsInput extends Object
Input to get top query statistics.
-
-
Constructor Summary
Constructors Constructor Description TopQueryStatisticsInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaggregationFunction()Get the aggregationFunction property: Aggregation function name.StringaggregationWindow()Get the aggregationWindow property: Aggregation interval type in ISO 8601 format.intnumberOfTopQueries()Get the numberOfTopQueries property: Max number of top queries to return.OffsetDateTimeobservationEndTime()Get the observationEndTime property: Observation end time.OffsetDateTimeobservationStartTime()Get the observationStartTime property: Observation start time.StringobservedMetric()Get the observedMetric property: Observed metric name.voidvalidate()Validates the instance.TopQueryStatisticsInputwithAggregationFunction(String aggregationFunction)Set the aggregationFunction property: Aggregation function name.TopQueryStatisticsInputwithAggregationWindow(String aggregationWindow)Set the aggregationWindow property: Aggregation interval type in ISO 8601 format.TopQueryStatisticsInputwithNumberOfTopQueries(int numberOfTopQueries)Set the numberOfTopQueries property: Max number of top queries to return.TopQueryStatisticsInputwithObservationEndTime(OffsetDateTime observationEndTime)Set the observationEndTime property: Observation end time.TopQueryStatisticsInputwithObservationStartTime(OffsetDateTime observationStartTime)Set the observationStartTime property: Observation start time.TopQueryStatisticsInputwithObservedMetric(String observedMetric)Set the observedMetric property: Observed metric name.
-
-
-
Method Detail
-
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.
-
-