Class MetricsEndpointImpl

java.lang.Object
org.apache.servicecomb.solution.basic.integration.MetricsEndpointImpl
All Implemented Interfaces:
org.apache.servicecomb.foundation.metrics.MetricsInitializer, MetricsEndpoint

@RestSchema(schemaId="scb-metrics", schemaInterface=MetricsEndpoint.class) public class MetricsEndpointImpl extends Object implements org.apache.servicecomb.foundation.metrics.MetricsInitializer, MetricsEndpoint
  • Field Summary

    Fields inherited from interface org.apache.servicecomb.solution.basic.integration.MetricsEndpoint

    NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    idToString(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Measurement measurement, StringBuilder sb)
     
    void
    init(io.micrometer.core.instrument.MeterRegistry meterRegistry, com.google.common.eventbus.EventBus eventBus, org.apache.servicecomb.foundation.metrics.MetricsBootstrapConfig config)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.servicecomb.foundation.metrics.MetricsInitializer

    destroy, getOrder
  • Constructor Details

    • MetricsEndpointImpl

      public MetricsEndpointImpl()
  • Method Details

    • init

      public void init(io.micrometer.core.instrument.MeterRegistry meterRegistry, com.google.common.eventbus.EventBus eventBus, org.apache.servicecomb.foundation.metrics.MetricsBootstrapConfig config)
      Specified by:
      init in interface org.apache.servicecomb.foundation.metrics.MetricsInitializer
    • measure

      public Map<String,Double> measure()
      Specified by:
      measure in interface MetricsEndpoint
    • idToString

      protected String idToString(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Measurement measurement, StringBuilder sb)