Package com.ocient.rest
Class MetricsResponse.Serializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<MetricsResponse>
com.ocient.rest.MetricsResponse.Serializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
- Enclosing class:
- MetricsResponse
public static class MetricsResponse.Serializer extends com.fasterxml.jackson.databind.JsonSerializer<MetricsResponse>
Returns a flat array of JSON objects, each representing a metric.
Intended for consumption by InfluxDB, the sink in the Ocient Managed Service log collection
pipeline. The flat hierarchy simplifies the InfluxDB JSON input data configuration.
NOTE: The InfluxDB JSON v2 input data format supports nested JSON objects, but the Ocient
Managed Service prefers the simplified configuration provided by the flat hierarchy.
See https://docs.influxdata.com/telegraf/v1.22/data_formats/input/json/
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description Serializer() -
Method Summary
Modifier and Type Method Description voidserialize(MetricsResponse value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public void serialize(MetricsResponse value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException- Specified by:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<MetricsResponse>- Throws:
IOException
-