APITimer
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| Success | labeled.Timer | Stores a labeled.Timer instance to measure successful API call durations. |
| Failure | labeled.Timer | Stores a labeled.Timer instance to measure failed API call durations. |
Methods
Stop()
@classmethod
def Stop(
err: *error
)
Stops the timer and records the duration, categorizing it as a success or failure based on the provided error.
Parameters
| Name | Type | Description |
|---|---|---|
| err | *error | An error object; if non-nil, the timer records a failure, otherwise it records a success. |