Class WebMetricsServerCondition

java.lang.Object
io.micronaut.configuration.metrics.binder.web.WebMetricsServerCondition
All Implemented Interfaces:
io.micronaut.context.condition.Condition, Predicate<io.micronaut.context.condition.ConditionContext>

public class WebMetricsServerCondition extends Object implements io.micronaut.context.condition.Condition
A custom Condition that defines if ServerRequestMeterRegistryFilter should be created.
  • Constructor Details

    • WebMetricsServerCondition

      public WebMetricsServerCondition()
  • Method Details

    • matches

      public boolean matches(io.micronaut.context.condition.ConditionContext context)
      Specified by:
      matches in interface io.micronaut.context.condition.Condition