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 ofPostMetricData.MetricData
, and each metric data has one or more data points.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PostMetricData.MetricDataPoint
builder()
Create a new builder.PostMetricData.MetricDataPoint
count(int count)
The number of occurrences of the associated value in the set of data.PostMetricData.MetricDataPoint
timestamp(TemporalAccessor instant)
Timestamp of the metric.PostMetricData.MetricDataPoint
timestamp(Date time)
Timestamp as date.PostMetricData.MetricDataPoint
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 Detail
-
builder
public static PostMetricData.MetricDataPoint builder()
Create a new builder.- Returns:
- new builder
-
count
public PostMetricData.MetricDataPoint count(int 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
public PostMetricData.MetricDataPoint value(double value)
Numeric value of the metric.- Parameters:
value
- value of the metric- Returns:
- updated data point
-
timestamp
public PostMetricData.MetricDataPoint timestamp(TemporalAccessor instant)
Timestamp of the metric.- Parameters:
instant
- the instant- Returns:
- updated data point
-
timestamp
public PostMetricData.MetricDataPoint timestamp(Date time)
Timestamp as date.- Parameters:
time
- the instant- Returns:
- updated data point
-
-