Class HttpMeterConfig
java.lang.Object
io.micronaut.configuration.metrics.binder.web.config.HttpMeterConfig
- Direct Known Subclasses:
HttpClientMeterConfig
,HttpServerMeterConfig
Http meter configuration.
- Since:
- 5.6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDefault: false.getMax()
Default: Micrometer default value (30).getMin()
Default: Micrometer default value (0.001).Double[]
Default is empty.Double[]
getSlos()
Default is empty.void
setHistogram
(Boolean histogram) Default: false.void
Default: Micrometer default value (30).void
Default: Micrometer default value (0.001).void
setPercentiles
(Double[] percentiles) Default is empty.void
Default is empty.
-
Constructor Details
-
HttpMeterConfig
public HttpMeterConfig()
-
-
Method Details
-
getPercentiles
Default is empty.- Returns:
- The percentiles. Specify in CSV format, ex: "0.95,0.99".
-
setPercentiles
Default is empty.- Parameters:
percentiles
- The percentiles. Specify in CSV format, ex: "0.95,0.99".
-
getHistogram
Default: false.- Returns:
- If a histogram should be published.
-
setHistogram
Default: false.- Parameters:
histogram
- If a histogram should be published.
-
getMin
Default: Micrometer default value (0.001).- Returns:
- The minimum time (in s) value expected.
-
setMin
Default: Micrometer default value (0.001).- Parameters:
min
- The minimum time (in s) value expected.
-
getMax
Default: Micrometer default value (30).- Returns:
- The maximum time (in s) value expected.
-
setMax
Default: Micrometer default value (30).- Parameters:
max
- The maximum time (in s) value expected.
-
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
Default is empty.- Parameters:
slos
- The user-defined service levels objectives (in s) to create. Specify in CSV format, ex: "0.1,0.4".
-