Class PostMetricData.Request
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonBuilder<T>
-
- io.helidon.integrations.common.rest.ApiJsonRequest<T>
-
- io.helidon.integrations.oci.connect.OciRequestBase<PostMetricData.Request>
-
- io.helidon.integrations.oci.telemetry.PostMetricData.Request
-
- All Implemented Interfaces:
ApiRequest<PostMetricData.Request>
- Enclosing class:
- PostMetricData
public static class PostMetricData.Request extends OciRequestBase<PostMetricData.Request>
Post metric data request.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BATCH_ATOMICITY_ATOMIC
Atomic batch - either all succeed, or all fail.static String
BATCH_ATOMICITY_NON_ATOMIC
Non atomic batch - some may succeed, some may fail.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PostMetricData.Request
addMetricData(PostMetricData.MetricData metricData)
Raw metric data points to be posted to the monitoring service.PostMetricData.Request
batchAtomicity(String atomicity)
Batch atomicity behavior.static PostMetricData.Request
builder()
Fluent API builder for configuring a request.-
Methods inherited from class io.helidon.integrations.oci.connect.OciRequestBase
add, endpoint, endpoint, hostFormat, hostPrefix, retryToken
-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequest
addHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaType
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.integrations.common.rest.ApiRequest
toJson
-
-
-
-
Field Detail
-
BATCH_ATOMICITY_ATOMIC
public static final String BATCH_ATOMICITY_ATOMIC
Atomic batch - either all succeed, or all fail.- See Also:
- Constant Field Values
-
BATCH_ATOMICITY_NON_ATOMIC
public static final String BATCH_ATOMICITY_NON_ATOMIC
Non atomic batch - some may succeed, some may fail.- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static PostMetricData.Request builder()
Fluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method isApiJsonBuilder.toJson(javax.json.JsonBuilderFactory)
used by theRestApi
.- Returns:
- new request builder
-
batchAtomicity
public PostMetricData.Request batchAtomicity(String atomicity)
Batch atomicity behavior. Requires either partial or full pass of input validation for metric objects in PostMetricData requests. The default value of NON_ATOMIC requires a partial pass: at least one metric object in the request must pass input validation, and any objects that failed validation are identified in the returned summary, along with their error messages. A value of ATOMIC requires a full pass: all metric objects in the request must pass input validation.Defaults to "NON_ATOMIC".
- Parameters:
atomicity
- atomicity to use- Returns:
- updated request
- See Also:
BATCH_ATOMICITY_ATOMIC
,BATCH_ATOMICITY_NON_ATOMIC
-
addMetricData
public PostMetricData.Request addMetricData(PostMetricData.MetricData metricData)
Raw metric data points to be posted to the monitoring service.- Parameters:
metricData
- metric data- Returns:
- updated request
-
-