Class Statistics

java.lang.Object
com.amazonaws.xray.strategy.sampling.rule.Statistics

public class Statistics
extends java.lang.Object
Per-Rule statistics maintained by the sampler. Used for making sampling decisions and for reporting rule usage to X-Ray.
  • Constructor Summary

    Constructors
    Constructor Description
    Statistics()  
  • Method Summary

    Modifier and Type Method Description
    int getBorrowed()  
    int getRequests()  
    int getSampled()  
    void incBorrowed()  
    void incRequest()  
    void incSampled()  
    void reset()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Statistics

      public Statistics()
  • Method Details

    • reset

      public void reset()
    • incRequest

      public void incRequest()
    • incSampled

      public void incSampled()
    • incBorrowed

      public void incBorrowed()
    • getRequests

      public int getRequests()
    • getSampled

      public int getSampled()
    • getBorrowed

      public int getBorrowed()