Class PrometheusResponse

java.lang.Object
com.yahoo.container.jdisc.HttpResponse
ai.vespa.metricsproxy.http.PrometheusResponse

public class PrometheusResponse extends com.yahoo.container.jdisc.HttpResponse
Author:
jonmv
  • Field Summary

    Fields inherited from class com.yahoo.container.jdisc.HttpResponse

    DEFAULT_CHARACTER_ENCODING, DEFAULT_MIME_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrometheusResponse(int status, PrometheusModel model)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    void
    render(OutputStream outputStream)
     

    Methods inherited from class com.yahoo.container.jdisc.HttpResponse

    complete, getCharacterEncoding, getContentType, getJdiscResponse, getLogValues, getRequestType, getStatus, headers, populateAccessLogEntry, setRequestType, setStatus

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PrometheusResponse

      public PrometheusResponse(int status, PrometheusModel model)
  • Method Details

    • render

      public void render(OutputStream outputStream) throws IOException
      Specified by:
      render in class com.yahoo.container.jdisc.HttpResponse
      Throws:
      IOException
    • maxPendingBytes

      public long maxPendingBytes()
      Overrides:
      maxPendingBytes in class com.yahoo.container.jdisc.HttpResponse