Class RequestStats.RequestStatsBuilder
java.lang.Object
com.slack.api.rate_limits.metrics.RequestStats.RequestStatsBuilder
- Enclosing class:
- RequestStats
-
Method Summary
Modifier and TypeMethodDescriptionallCompletedCalls(Map<String, Long> allCompletedCalls) Method name -> # of callsbuild()currentQueueSize(Map<String, Integer> currentQueueSize) Method name -> The queue sizefailedCalls(Map<String, Long> failedCalls) Method name -> # of callslastMinuteRequests(Map<String, Integer> lastMinuteRequests) Method name -> The number of the requests in the last minutelastRequestTimestampMillis(Long lastRequestTimestampMillis) The last request timestamp in millisecondsrateLimitedMethods(Map<String, Long> rateLimitedMethods) Method name -> Epoch millis to retrysuccessfulCalls(Map<String, Long> successfulCalls) Method name -> # of callstoString()unsuccessfulCalls(Map<String, Long> unsuccessfulCalls) Method name -> # of calls
-
Method Details
-
lastRequestTimestampMillis
The last request timestamp in milliseconds- Returns:
this.
-
allCompletedCalls
Method name -> # of calls- Returns:
this.
-
successfulCalls
Method name -> # of calls- Returns:
this.
-
unsuccessfulCalls
Method name -> # of calls- Returns:
this.
-
failedCalls
Method name -> # of calls- Returns:
this.
-
currentQueueSize
Method name -> The queue size- Returns:
this.
-
lastMinuteRequests
Method name -> The number of the requests in the last minute- Returns:
this.
-
rateLimitedMethods
Method name -> Epoch millis to retry- Returns:
this.
-
build
-
toString
-