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
Metricof kindMETRIC_COUNTER_KINDSee also
-
is_gauge(name=<object object>, value=<object object>, sampling_rate=<object object>)[source]¶ A hamcrest matcher validating the parts of a
Metricof kindMETRIC_GAUGE_KINDSee also
-
is_set(name=<object object>, value=<object object>, sampling_rate=<object object>)[source]¶ A hamcrest matcher validating the parts of a
Metricof kindMETRIC_SET_KINDSee also
-
is_timer(name=<object object>, value=<object object>, sampling_rate=<object object>)[source]¶ A hamcrest matcher validating the parts of a
Metricof kindMETRIC_TIMER_KINDSee also