Class SiddhiLatencyMetric

    • Constructor Detail

      • SiddhiLatencyMetric

        public SiddhiLatencyMetric​(String name,
                                   com.codahale.metrics.MetricRegistry metricRegistry)
    • Method Detail

      • markIn

        public void markIn()
        This is called when the processing of the event is started. This is called at ProcessStreamReceiver#receive before the event is passed into process chain
        Specified by:
        markIn in interface LatencyTracker
      • markOut

        public void markOut()
        This is called to when the processing of an event is finished. This is called at two places, 1. OutputRateLimiter#sendToCallBacks - When the event is processed and by the full chain and emitted out 2. ProcessStreamReceiver#receive - When event is not processed by full process chain(e.g. Filtered out by a filter)
        Specified by:
        markOut in interface LatencyTracker