Method GetRequestMetrics
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
GetRequestMetrics(bool)
Gets the request metrics, optionally since the last time they were checked.
public RequestMetricsCollection GetRequestMetrics(bool sinceLastCall = false)
Parameters
sinceLastCall
boolIf set to true, this resets the counter. Lifetime metrics are unaffected.
Returns
- RequestMetricsCollection
A snapshot of the rest metrics.