Python module that provides helpers for functional testing of metrics with testsuite; see Functional service tests (testsuite) for an introduction.
◆ _diff_metric_snapshots()
| str pytest_userver.metrics._diff_metric_snapshots |
( |
_FlattenedSnapshot |
lhs, |
|
|
_FlattenedSnapshot |
rhs, |
|
|
bool |
ignore_zeros |
|
) |
| |
|
protected |
◆ _do_compute_percentile()
| float pytest_userver.metrics._do_compute_percentile |
( |
Histogram |
hist, |
|
|
float |
percent |
|
) |
| |
|
protected |
◆ _flatten_snapshot()
| _FlattenedSnapshot pytest_userver.metrics._flatten_snapshot |
( |
|
values, |
|
|
bool |
ignore_zeros |
|
) |
| |
|
protected |
◆ _get_labels_tuple()
| tuple[tuple[str, str], ...] pytest_userver.metrics._get_labels_tuple |
( |
Metric |
metric | ) |
|
|
protected |
Returns labels as a tuple of sorted items.
Definition at line 357 of file metrics.py.
◆ _parse_metric_value()
| MetricValue pytest_userver.metrics._parse_metric_value |
( |
Any |
value | ) |
|
|
protected |
◆ _type_eq()
| bool pytest_userver.metrics._type_eq |
( |
MetricType |
lhs, |
|
|
MetricType |
rhs |
|
) |
| |
|
protected |
◆ _FlattenedSnapshot
| TypeAlias pytest_userver.metrics._FlattenedSnapshot = Set[tuple[str, Metric]] |
|
protected |