Operation
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| Success | *prometheus.HistogramVec | Stores a Prometheus HistogramVec to record the duration of successful operations. |
| Failure | *prometheus.HistogramVec | Stores 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
| Name | Type | Description |
|---|---|---|
| values | string | A string representing the labels or values associated with the operation being timed. These values are used to categorize and filter the metrics. |
Returns
| Type | Description |
|---|---|
[OperationTimer](operationtimer.md?sid=flytestdlib_metrics_operationtimer) | An OperationTimer object that can be used to stop the timer and record the operation's duration. |