Table of Contents

Struct RequestMetricsCollection

Namespace
DSharpPlus.Metrics
Assembly
DSharpPlus.dll

Represents an immutable snapshot of request metrics.

public readonly record struct RequestMetricsCollection

Properties

BadRequests

The amount of bad requests made during the specified duration.

BucketRatelimitsHit

The amount of bucket ratelimits hit during the specified duration.

Duration

The duration covered by these metrics.

FailedRequests

The failed requests made during the specified duration.

Forbidden

The amount of forbidden or unauthorized requests made during the specified duration.

GlobalRatelimitsHit

The amount of global ratelimits hit during the specified duration.

NotFound

The amount of requests whose target could not be found made during the specified duration.

RatelimitsHit

The amount of ratelimits hit during the specified duration.

ServerErrors

The amount of server errors hit during the specified duration.

SuccessfulRequests

The successful requests made during the specified duration.

TooLarge

The amount of requests whose payload was too large during the specified duration.

TotalRequests

The total amount of requests made during the specified duration.

Methods

ToString()

Returns a human-readable string representation of these metrics.