java.lang.Object
io.micronaut.configuration.metrics.binder.web.config.HttpMeterConfig
Direct Known Subclasses:
HttpClientMeterConfig, HttpServerMeterConfig

public abstract class HttpMeterConfig extends Object
Http meter configuration.
Since:
5.6.0
  • Constructor Details

    • HttpMeterConfig

      public HttpMeterConfig()
  • Method Details

    • getPercentiles

      public Double[] getPercentiles()
      Default is empty.
      Returns:
      The percentiles. Specify in CSV format, ex: "0.95,0.99".
    • setPercentiles

      public void setPercentiles(Double[] percentiles)
      Default is empty.
      Parameters:
      percentiles - The percentiles. Specify in CSV format, ex: "0.95,0.99".
    • getHistogram

      public Boolean getHistogram()
      Default: false.
      Returns:
      If a histogram should be published.
    • setHistogram

      public void setHistogram(Boolean histogram)
      Default: false.
      Parameters:
      histogram - If a histogram should be published.
    • getMin

      public Double getMin()
      Default: Micrometer default value (0.001).
      Returns:
      The minimum time (in s) value expected.
    • setMin

      public void setMin(Double min)
      Default: Micrometer default value (0.001).
      Parameters:
      min - The minimum time (in s) value expected.
    • getMax

      public Double getMax()
      Default: Micrometer default value (30).
      Returns:
      The maximum time (in s) value expected.
    • setMax

      public void setMax(Double max)
      Default: Micrometer default value (30).
      Parameters:
      max - The maximum time (in s) value expected.
    • getSlos

      public Double[] getSlos()
      Default is empty.
      Returns:
      The user-defined service levels objectives (in s) to create. Specify in CSV format, ex: "0.1,0.4".
    • setSlos

      public void setSlos(Double[] slos)
      Default is empty.
      Parameters:
      slos - The user-defined service levels objectives (in s) to create. Specify in CSV format, ex: "0.1,0.4".