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 new operation timer, allowing for the measurement of the duration of an operation. This is used to track the performance of various 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 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.