Class DatadogResponseSerializer
java.lang.Object
com.commercetools.monitoring.datadog.DatadogResponseSerializer
- All Implemented Interfaces:
ResponseSerializer
This serializer uses API to submit metrics to datadog.
If you are using dogstatsd, use
DatadogResponseSerializer
to submit metrics to datadog with statsd.-
Constructor Summary
ConstructorDescriptionDatadogResponseSerializer
(ResponseSerializer serializer, com.datadog.api.client.ApiClient ddApiClient) DatadogResponseSerializer
(ResponseSerializer serializer, com.datadog.api.client.v2.api.MetricsApi apiInstance) -
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.datadog.api.client.v2.api.MetricsApi apiInstance) -
DatadogResponseSerializer
public DatadogResponseSerializer(ResponseSerializer serializer, com.datadog.api.client.ApiClient ddApiClient)
-
-
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
-