Class QueryStatisticInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.mariadb.fluent.models.QueryStatisticInner
public final class QueryStatisticInner
extends com.azure.core.management.ProxyResource
Represents a Query Statistic.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationFunction property: Aggregation function name.Get the databaseNames property: The list of database names.endTime()
Get the endTime property: Observation end time.Get the metricDisplayName property: Metric display name.Get the metricName property: Metric name.Get the metricValue property: Metric value.Get the metricValueUnit property: Metric value unit.Get the queryExecutionCount property: Number of query executions in this time interval.queryId()
Get the queryId property: Database query identifier.Get the startTime property: Observation start time.void
validate()
Validates the instance.withAggregationFunction
(String aggregationFunction) Set the aggregationFunction property: Aggregation function name.withDatabaseNames
(List<String> databaseNames) Set the databaseNames property: The list of database names.withEndTime
(OffsetDateTime endTime) Set the endTime property: Observation end time.withMetricDisplayName
(String metricDisplayName) Set the metricDisplayName property: Metric display name.withMetricName
(String metricName) Set the metricName property: Metric name.withMetricValue
(Double metricValue) Set the metricValue property: Metric value.withMetricValueUnit
(String metricValueUnit) Set the metricValueUnit property: Metric value unit.withQueryExecutionCount
(Long queryExecutionCount) Set the queryExecutionCount property: Number of query executions in this time interval.withQueryId
(String queryId) Set the queryId property: Database query identifier.withStartTime
(OffsetDateTime startTime) Set the startTime property: Observation start time.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
QueryStatisticInner
public QueryStatisticInner()Creates an instance of QueryStatisticInner class.
-
-
Method Details
-
queryId
Get the queryId property: Database query identifier.- Returns:
- the queryId value.
-
withQueryId
Set the queryId property: Database query identifier.- Parameters:
queryId
- the queryId value to set.- Returns:
- the QueryStatisticInner object itself.
-
startTime
Get the startTime property: Observation start time.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Observation start time.- Parameters:
startTime
- the startTime value to set.- Returns:
- the QueryStatisticInner object itself.
-
endTime
Get the endTime property: Observation end time.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: Observation end time.- Parameters:
endTime
- the endTime value to set.- Returns:
- the QueryStatisticInner 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 QueryStatisticInner object itself.
-
databaseNames
Get the databaseNames property: The list of database names.- Returns:
- the databaseNames value.
-
withDatabaseNames
Set the databaseNames property: The list of database names.- Parameters:
databaseNames
- the databaseNames value to set.- Returns:
- the QueryStatisticInner object itself.
-
queryExecutionCount
Get the queryExecutionCount property: Number of query executions in this time interval.- Returns:
- the queryExecutionCount value.
-
withQueryExecutionCount
Set the queryExecutionCount property: Number of query executions in this time interval.- Parameters:
queryExecutionCount
- the queryExecutionCount value to set.- Returns:
- the QueryStatisticInner object itself.
-
metricName
Get the metricName property: Metric name.- Returns:
- the metricName value.
-
withMetricName
Set the metricName property: Metric name.- Parameters:
metricName
- the metricName value to set.- Returns:
- the QueryStatisticInner object itself.
-
metricDisplayName
Get the metricDisplayName property: Metric display name.- Returns:
- the metricDisplayName value.
-
withMetricDisplayName
Set the metricDisplayName property: Metric display name.- Parameters:
metricDisplayName
- the metricDisplayName value to set.- Returns:
- the QueryStatisticInner object itself.
-
metricValue
Get the metricValue property: Metric value.- Returns:
- the metricValue value.
-
withMetricValue
Set the metricValue property: Metric value.- Parameters:
metricValue
- the metricValue value to set.- Returns:
- the QueryStatisticInner object itself.
-
metricValueUnit
Get the metricValueUnit property: Metric value unit.- Returns:
- the metricValueUnit value.
-
withMetricValueUnit
Set the metricValueUnit property: Metric value unit.- Parameters:
metricValueUnit
- the metricValueUnit value to set.- Returns:
- the QueryStatisticInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-