Class TopQueriesInner
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.TopQueriesInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TopQueriesInner>
public final class TopQueriesInner
extends Object
implements com.azure.json.JsonSerializable<TopQueriesInner>
The TopQueries model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationFunction property: Aggregation function used to calculate query metrics.endTime()Get the endTime property: The end time for the metric (ISO-8601 format).static TopQueriesInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TopQueriesInner from the JsonReader.Get the intervalType property: Interval type (length).Get the numberOfQueries property: Requested number of top queries.Get the observationMetric property: Metric used to rank queries.queries()Get the queries property: List of top resource consuming queries with appropriate metric data.Get the startTime property: The start time for the metric (ISO-8601 format).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withQueries(List<QueryStatisticsProperties> queries) Set the queries property: List of top resource consuming queries with appropriate metric data.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TopQueriesInner
public TopQueriesInner()Creates an instance of TopQueriesInner class.
-
-
Method Details
-
numberOfQueries
Get the numberOfQueries property: Requested number of top queries.- Returns:
- the numberOfQueries value.
-
aggregationFunction
Get the aggregationFunction property: Aggregation function used to calculate query metrics.- Returns:
- the aggregationFunction value.
-
observationMetric
Get the observationMetric property: Metric used to rank queries.- Returns:
- the observationMetric value.
-
intervalType
Get the intervalType property: Interval type (length).- Returns:
- the intervalType value.
-
startTime
Get the startTime property: The start time for the metric (ISO-8601 format).- Returns:
- the startTime value.
-
endTime
Get the endTime property: The end time for the metric (ISO-8601 format).- Returns:
- the endTime value.
-
queries
Get the queries property: List of top resource consuming queries with appropriate metric data.- Returns:
- the queries value.
-
withQueries
Set the queries property: List of top resource consuming queries with appropriate metric data.- Parameters:
queries- the queries value to set.- Returns:
- the TopQueriesInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TopQueriesInner>- Throws:
IOException
-
fromJson
Reads an instance of TopQueriesInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TopQueriesInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TopQueriesInner.
-