Skip to main content

APITimer

No overview available.

Attributes

AttributeTypeDescription
Successlabeled.TimerStores a labeled.Timer instance to measure successful API call durations.
Failurelabeled.TimerStores 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

NameTypeDescription
err*errorAn error object; if non-nil, the timer records a failure, otherwise it records a success.