Skip to main content

Operation

No overview available.

Attributes​

AttributeTypeDescription
Success*prometheus.HistogramVecStores a Prometheus HistogramVec to record the duration of successful operations.
Failure*prometheus.HistogramVecStores a Prometheus HistogramVec to record the duration of failed operations.

Methods​


Start()​

@classmethod
def Start(
values: string
) - > [OperationTimer](operationtimer.md?sid=flytestdlib_metrics_operationtimer)

Starts a timer for an operation, allowing for the measurement of its duration. This is used to track the performance of specific operations within the system.

Parameters​

NameTypeDescription
valuesstringA string representing the labels or values associated with the operation being timed. These values are used to categorize and filter the recorded metrics.

Returns​

TypeDescription
[OperationTimer](operationtimer.md?sid=flytestdlib_metrics_operationtimer)An OperationTimer object that can be used to stop the timer and record the operation's duration.