Hamcrest Matchers¶
-
is_metric
(kind=<object object>, name=<object object>, value=<object object>, sampling_rate=<object object>)[source]¶ A hamcrest matcher that validates the specific parts of a
Metric
.Parameters: - kind (str) – A hamcrest matcher or string that matches the kind for this metric
- name (str) – A hamcrest matcher or string that matches the name for this metric
- value – A hamcrest matcher or string that matches the value for this metric
- sampling_rate – A hamcrest matcher or number that matches the sampling rate this metric was collected with
-
is_counter
(name=<object object>, value=<object object>, sampling_rate=<object object>)[source]¶ A hamcrest matcher validating the parts of a
Metric
of kindMETRIC_COUNTER_KIND
See also
-
is_gauge
(name=<object object>, value=<object object>, sampling_rate=<object object>)[source]¶ A hamcrest matcher validating the parts of a
Metric
of kindMETRIC_GAUGE_KIND
See also
-
is_set
(name=<object object>, value=<object object>, sampling_rate=<object object>)[source]¶ A hamcrest matcher validating the parts of a
Metric
of kindMETRIC_SET_KIND
See also
-
is_timer
(name=<object object>, value=<object object>, sampling_rate=<object object>)[source]¶ A hamcrest matcher validating the parts of a
Metric
of kindMETRIC_TIMER_KIND
See also