PercentileMetricValue Class

public final class PercentileMetricValue
extends MetricValue

Represents percentile metrics values.

Method Summary

Modifier and Type Method and Description
Double average()

Get the average property: The average value of the metric.

Integer count()

Get the count property: The number of values for the metric.

static PercentileMetricValue fromJson(JsonReader jsonReader)

Reads an instance of PercentileMetricValue from the JsonReader.

Double maximum()

Get the maximum property: The max value of the metric.

Double minimum()

Get the minimum property: The min value of the metric.

Double p10()

Get the p10 property: The 10th percentile value for the metric.

Double p25()

Get the p25 property: The 25th percentile value for the metric.

Double p50()

Get the p50 property: The 50th percentile value for the metric.

Double p75()

Get the p75 property: The 75th percentile value for the metric.

Double p90()

Get the p90 property: The 90th percentile value for the metric.

Double p95()

Get the p95 property: The 95th percentile value for the metric.

Double p99()

Get the p99 property: The 99th percentile value for the metric.

OffsetDateTime timestamp()

Get the timestamp property: The metric timestamp (ISO-8601 format).

JsonWriter toJson(JsonWriter jsonWriter)
Double total()

Get the total property: The total value of the metric.

void validate()

Validates the instance.

Methods inherited from MetricValue

Methods inherited from java.lang.Object

Method Details

average

public Double average()

Get the average property: The average value of the metric.

Overrides:

PercentileMetricValue.average()

Returns:

the average value.

count

public Integer count()

Get the count property: The number of values for the metric.

Overrides:

PercentileMetricValue.count()

Returns:

the count value.

fromJson

public static PercentileMetricValue fromJson(JsonReader jsonReader)

Reads an instance of PercentileMetricValue from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maximum

public Double maximum()

Get the maximum property: The max value of the metric.

Overrides:

PercentileMetricValue.maximum()

Returns:

the maximum value.

minimum

public Double minimum()

Get the minimum property: The min value of the metric.

Overrides:

PercentileMetricValue.minimum()

Returns:

the minimum value.

p10

public Double p10()

Get the p10 property: The 10th percentile value for the metric.

Returns:

the p10 value.

p25

public Double p25()

Get the p25 property: The 25th percentile value for the metric.

Returns:

the p25 value.

p50

public Double p50()

Get the p50 property: The 50th percentile value for the metric.

Returns:

the p50 value.

p75

public Double p75()

Get the p75 property: The 75th percentile value for the metric.

Returns:

the p75 value.

p90

public Double p90()

Get the p90 property: The 90th percentile value for the metric.

Returns:

the p90 value.

p95

public Double p95()

Get the p95 property: The 95th percentile value for the metric.

Returns:

the p95 value.

p99

public Double p99()

Get the p99 property: The 99th percentile value for the metric.

Returns:

the p99 value.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: The metric timestamp (ISO-8601 format).

Overrides:

PercentileMetricValue.timestamp()

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PercentileMetricValue.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

total

public Double total()

Get the total property: The total value of the metric.

Overrides:

PercentileMetricValue.total()

Returns:

the total value.

validate

public void validate()

Validates the instance.

Overrides:

PercentileMetricValue.validate()

Applies to