Class PercentileMetricInner
java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.PercentileMetricInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PercentileMetricInner>
public final class PercentileMetricInner
extends Object
implements com.azure.json.JsonSerializable<PercentileMetricInner>
Percentile Metric data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendTime()Get the endTime property: The end time for the metric (ISO-8601 format).static PercentileMetricInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PercentileMetricInner from the JsonReader.Get the metricValues property: The percentile metric values for the specified time window and timestep.name()Get the name property: The name information for the metric.Get the startTime property: The start time for the metric (ISO-8601 format).Get the timeGrain property: The time grain to be used to summarize the metric values.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: The unit of the metric.voidvalidate()Validates the instance.Methods inherited from class java.lang.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
-
PercentileMetricInner
public PercentileMetricInner()Creates an instance of PercentileMetricInner class.
-
-
Method Details
-
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.
-
timeGrain
Get the timeGrain property: The time grain to be used to summarize the metric values.- Returns:
- the timeGrain value.
-
unit
Get the unit property: The unit of the metric.- Returns:
- the unit value.
-
name
Get the name property: The name information for the metric.- Returns:
- the name value.
-
metricValues
Get the metricValues property: The percentile metric values for the specified time window and timestep.- Returns:
- the metricValues value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PercentileMetricInner>- Throws:
IOException
-
fromJson
public static PercentileMetricInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PercentileMetricInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PercentileMetricInner 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 PercentileMetricInner.
-