Class BasicClientStats

  • Direct Known Subclasses:
    ClientStats

    public class BasicClientStats
    extends AbstractVeniceHttpStats
    This class offers very basic metrics for client, and right now, it is directly used by DaVinci.
    • Constructor Detail

      • BasicClientStats

        protected BasicClientStats​(io.tehuti.metrics.MetricsRepository metricsRepository,
                                   java.lang.String storeName,
                                   RequestType requestType)
    • Method Detail

      • getClientStats

        public static BasicClientStats getClientStats​(io.tehuti.metrics.MetricsRepository metricsRepository,
                                                      java.lang.String storeName,
                                                      RequestType requestType,
                                                      ClientConfig clientConfig)
      • recordHealthyRequest

        public void recordHealthyRequest()
      • recordUnhealthyRequest

        public void recordUnhealthyRequest()
      • recordHealthyLatency

        public void recordHealthyLatency​(double latency)
      • recordRequestKeyCount

        public void recordRequestKeyCount​(int keyCount)
      • recordSuccessRequestKeyCount

        public void recordSuccessRequestKeyCount​(int successKeyCount)
      • getRequestRate

        protected final io.tehuti.metrics.stats.Rate getRequestRate()
      • getSuccessRequestKeyCountRate

        protected final io.tehuti.metrics.stats.Rate getSuccessRequestKeyCountRate()