Metric type that contains the labels: typing.Dict[str, str]
and value: int
.
More...
Public Member Functions | |
int | __hash__ (self) |
typing.Tuple | get_labels_tuple (self) |
Returns labels as a tuple of sorted items. | |
Static Public Attributes | |
typing | labels .Dict[str, str] |
float | value |
Metric type that contains the labels: typing.Dict[str, str]
and value: int
.
The type is hashable and comparable:
Definition at line 15 of file metrics.py.
int pytest_userver.metrics.Metric.__hash__ | ( | self | ) |
Definition at line 29 of file metrics.py.
typing.Tuple pytest_userver.metrics.Metric.get_labels_tuple | ( | self | ) |
Returns labels as a tuple of sorted items.
Definition at line 32 of file metrics.py.
|
static |
Definition at line 26 of file metrics.py.
|
static |
Definition at line 27 of file metrics.py.