Class DatadogResponseSerializer
java.lang.Object
com.commercetools.monitoring.datadog.statsd.DatadogResponseSerializer
- All Implemented Interfaces:
ResponseSerializer
This serializer uses dogstatsd library to submit metrics to datadog.
If you are not using statsd, use
DatadogResponseSerializer
to submit metrics to datadog with API.-
Constructor Summary
ConstructorDescriptionDatadogResponseSerializer
(ResponseSerializer serializer, com.timgroup.statsd.StatsDClient datadogStatsDClient) -
Method Summary
Modifier and TypeMethodDescription<O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, com.fasterxml.jackson.core.type.TypeReference<O> outputType) <O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, JavaType outputType) <O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, Class<O> outputType) byte[]
toJsonByteArray
(Object value)
-
Constructor Details
-
DatadogResponseSerializer
public DatadogResponseSerializer(ResponseSerializer serializer, com.timgroup.statsd.StatsDClient datadogStatsDClient)
-
-
Method Details
-
convertResponse
public <O> ApiHttpResponse<O> convertResponse(ApiHttpResponse<byte[]> response, Class<O> outputType) - Specified by:
convertResponse
in interfaceResponseSerializer
-
convertResponse
public <O> ApiHttpResponse<O> convertResponse(ApiHttpResponse<byte[]> response, JavaType outputType) - Specified by:
convertResponse
in interfaceResponseSerializer
-
convertResponse
public <O> ApiHttpResponse<O> convertResponse(ApiHttpResponse<byte[]> response, com.fasterxml.jackson.core.type.TypeReference<O> outputType) - Specified by:
convertResponse
in interfaceResponseSerializer
-
toJsonByteArray
public byte[] toJsonByteArray(Object value) throws com.fasterxml.jackson.core.JsonProcessingException - Specified by:
toJsonByteArray
in interfaceResponseSerializer
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-