接口 GaugeService

  • 所有已知实现类:
    BufferGaugeService, DefaultGaugeService, DropwizardMetricServices

    public interface GaugeService
    A service that can be used to submit a named double value for storage and analysis. Any statistics or analysis that needs to be carried out is best left for other concerns, but ultimately they are under control of the implementation of this service. For instance, the value submitted here could be a method execution timing result, and it would go to a backend that keeps a histogram of recent values for comparison purposes. Or it could be a simple measurement of a sensor value (like a temperature reading) to be passed on to a monitoring system in its raw form.
    • 方法详细资料

      • submit

        void submit​(String metricName,
                    double value)
        Set the specified gauge value.
        参数:
        metricName - the name of the gauge to set
        value - the value of the gauge