Class QueryMetricInterval
java.lang.Object
com.azure.resourcemanager.sql.models.QueryMetricInterval
Properties of a query metrics interval.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the executionCount property: Execution count of a query in this interval.Get the intervalStartTime property: The start time for the metric interval (ISO-8601 format).Get the intervalType property: Interval type (length).metrics()Get the metrics property: List of metric objects for this interval.voidvalidate()Validates the instance.withMetrics(List<QueryMetricProperties> metrics) Set the metrics property: List of metric objects for this interval.
-
Constructor Details
-
QueryMetricInterval
public QueryMetricInterval()Creates an instance of QueryMetricInterval class.
-
-
Method Details
-
intervalStartTime
Get the intervalStartTime property: The start time for the metric interval (ISO-8601 format).- Returns:
- the intervalStartTime value.
-
intervalType
Get the intervalType property: Interval type (length).- Returns:
- the intervalType value.
-
executionCount
Get the executionCount property: Execution count of a query in this interval.- Returns:
- the executionCount value.
-
metrics
Get the metrics property: List of metric objects for this interval.- Returns:
- the metrics value.
-
withMetrics
Set the metrics property: List of metric objects for this interval.- Parameters:
metrics- the metrics value to set.- Returns:
- the QueryMetricInterval object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-