Class PrometheusResponseConverter

java.lang.Object
com.netflix.kayenta.prometheus.config.PrometheusResponseConverter
All Implemented Interfaces:
retrofit.converter.Converter

@Component public class PrometheusResponseConverter extends Object implements retrofit.converter.Converter
  • Constructor Details

    • PrometheusResponseConverter

      @Autowired public PrometheusResponseConverter(com.fasterxml.jackson.databind.ObjectMapper kayentaObjectMapper)
  • Method Details

    • fromBody

      public Object fromBody(retrofit.mime.TypedInput body, Type type) throws retrofit.converter.ConversionException
      Specified by:
      fromBody in interface retrofit.converter.Converter
      Throws:
      retrofit.converter.ConversionException
    • toBody

      public retrofit.mime.TypedOutput toBody(Object object)
      Specified by:
      toBody in interface retrofit.converter.Converter