Hamcrest Matchers¶
-
is_metric
(*args, **kwargs)¶ is_observation(*, kind, name, value, sampling_rate) -> matcher
A hamcrest matcher that validates the specific parts of a
Observation
. All arguments are optional and can be provided by name or position.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 (str) – A hamcrest matcher or string that matches the value for this metric
- sampling_rate (float) – A hamcrest matcher or number that matches the sampling rate this metric was collected with
-
is_counter
(*, name, value, sampling_rate) → matcher[source]¶ A hamcrest matcher validating the parts of a counter
Observation
.See also
-
is_gauge
(*, name, value, sampling_rate) → matcher[source]¶ A hamcrest matcher validating the parts of a gauge
Observation
See also