Class RequestStats
- java.lang.Object
-
- com.slack.api.rate_limits.metrics.RequestStats
-
public class RequestStats extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestStats.RequestStatsBuilder
-
Constructor Summary
Constructors Constructor Description RequestStats()RequestStats(Map<String,Long> allCompletedCalls, Map<String,Long> successfulCalls, Map<String,Long> unsuccessfulCalls, Map<String,Long> failedCalls, Map<String,Integer> currentQueueSize, Map<String,Integer> lastMinuteRequests, Map<String,Long> rateLimitedMethods)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestStats.RequestStatsBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)Map<String,Long>getAllCompletedCalls()Method name -> # of callsMap<String,Integer>getCurrentQueueSize()Method name -> The queue sizeMap<String,Long>getFailedCalls()Method name -> # of callsMap<String,Integer>getLastMinuteRequests()Method name -> The number of the requests in the last minuteMap<String,Long>getRateLimitedMethods()Method name -> Epoch millis to retryMap<String,Long>getSuccessfulCalls()Method name -> # of callsMap<String,Long>getUnsuccessfulCalls()Method name -> # of callsinthashCode()StringtoString()
-
-
-
Method Detail
-
builder
public static RequestStats.RequestStatsBuilder builder()
-
getLastMinuteRequests
public Map<String,Integer> getLastMinuteRequests()
Method name -> The number of the requests in the last minute
-
getRateLimitedMethods
public Map<String,Long> getRateLimitedMethods()
Method name -> Epoch millis to retry
-
canEqual
protected boolean canEqual(Object other)
-
-