QueryStatisticsProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.QueryStatisticsProperties

Implements

public final class QueryStatisticsProperties
implements JsonSerializable<QueryStatisticsProperties>

Properties of a query execution statistics.

Constructor Summary

Constructor Description
QueryStatisticsProperties()

Creates an instance of QueryStatisticsProperties class.

Method Summary

Modifier and Type Method and Description
String databaseName()

Get the databaseName property: Database name of the database in which this query was executed.

String endTime()

Get the endTime property: The end time for the metric (ISO-8601 format).

static QueryStatisticsProperties fromJson(JsonReader jsonReader)

Reads an instance of QueryStatisticsProperties from the JsonReader.

List<QueryMetricInterval> intervals()

Get the intervals property: List of intervals with appropriate metric data.

String queryId()

Get the queryId property: Unique query id (unique within one database).

String startTime()

Get the startTime property: The start time for the metric (ISO-8601 format).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QueryStatisticsProperties withIntervals(List<QueryMetricInterval> intervals)

Set the intervals property: List of intervals with appropriate metric data.

Methods inherited from java.lang.Object

Constructor Details

QueryStatisticsProperties

public QueryStatisticsProperties()

Creates an instance of QueryStatisticsProperties class.

Method Details

databaseName

public String databaseName()

Get the databaseName property: Database name of the database in which this query was executed.

Returns:

the databaseName value.

endTime

public String endTime()

Get the endTime property: The end time for the metric (ISO-8601 format).

Returns:

the endTime value.

fromJson

public static QueryStatisticsProperties fromJson(JsonReader jsonReader)

Reads an instance of QueryStatisticsProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of QueryStatisticsProperties 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 QueryStatisticsProperties.

intervals

public List intervals()

Get the intervals property: List of intervals with appropriate metric data.

Returns:

the intervals value.

queryId

public String queryId()

Get the queryId property: Unique query id (unique within one database).

Returns:

the queryId value.

startTime

public String startTime()

Get the startTime property: The start time for the metric (ISO-8601 format).

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIntervals

public QueryStatisticsProperties withIntervals(List intervals)

Set the intervals property: List of intervals with appropriate metric data.

Parameters:

intervals - the intervals value to set.

Returns:

the QueryStatisticsProperties object itself.

Applies to