QueryMetricInterval Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. QueryMetricInterval
- com.
Implements
public final class QueryMetricInterval
implements JsonSerializable<QueryMetricInterval>
Properties of a query metrics interval.
Constructor Summary
Constructor | Description |
---|---|
QueryMetricInterval() |
Creates an instance of Query |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
executionCount()
Get the execution |
static
Query |
fromJson(JsonReader jsonReader)
Reads an instance of Query |
String |
intervalStartTime()
Get the interval |
Query |
intervalType()
Get the interval |
List<Query |
metrics()
Get the metrics property: List of metric objects for this interval. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Query |
withMetrics(List<QueryMetricProperties> metrics)
Set the metrics property: List of metric objects for this interval. |
Methods inherited from java.lang.Object
Constructor Details
QueryMetricInterval
public QueryMetricInterval()
Creates an instance of QueryMetricInterval class.
Method Details
executionCount
public Long executionCount()
Get the executionCount property: Execution count of a query in this interval.
Returns:
fromJson
public static QueryMetricInterval fromJson(JsonReader jsonReader)
Reads an instance of QueryMetricInterval from the JsonReader.
Parameters:
Returns:
Throws:
intervalStartTime
public String intervalStartTime()
Get the intervalStartTime property: The start time for the metric interval (ISO-8601 format).
Returns:
intervalType
public QueryTimeGrainType intervalType()
Get the intervalType property: Interval type (length).
Returns:
metrics
public List
Get the metrics property: List of metric objects for this interval.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMetrics
public QueryMetricInterval withMetrics(List
Set the metrics property: List of metric objects for this interval.
Parameters:
Returns:
Applies to
Azure SDK for Java