Class PostMetricData.MetricDataPoint
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<PostMetricData.MetricDataPoint>
io.helidon.integrations.oci.telemetry.PostMetricData.MetricDataPoint
- Enclosing class:
- PostMetricData
public static class PostMetricData.MetricDataPoint
extends ApiJsonBuilder<PostMetricData.MetricDataPoint>
The post metric data consists of a set of
PostMetricData.MetricData,
and each metric data has one or more data points.-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new builder.count(int count) The number of occurrences of the associated value in the set of data.timestamp(TemporalAccessor instant) Timestamp of the metric.Timestamp as date.value(double value) Numeric value of the metric.Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilder
add, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, preBuild, toJson
-
Method Details
-
builder
Create a new builder.- Returns:
- new builder
-
count
The number of occurrences of the associated value in the set of data. Default is 1. Value must be greater than zero.- Parameters:
count- number of occurrences- Returns:
- updated data point
-
value
Numeric value of the metric.- Parameters:
value- value of the metric- Returns:
- updated data point
-
timestamp
Timestamp of the metric.- Parameters:
instant- the instant- Returns:
- updated data point
-
timestamp
Timestamp as date.- Parameters:
time- the instant- Returns:
- updated data point
-