temelio_monitoring.context.json package
Submodules
temelio_monitoring.context.json.count_values_from_json module
This module manage element count testing context for data from JSON
-
class
temelio_monitoring.context.json.count_values_from_json.
CountValuesFromJSON
(*args, **kwargs)[source]
Bases: nagiosplugin.context.ScalarContext
ScalarValueFromJSON context class
-
describe
(metric)[source]
Manage base context output
Parameters: | metric (nagiosplugin.Metric) – Metric returned by probe |
Returns: | String representation of context result |
Return type: | str |
-
evaluate
(metric, resource)[source]
Compare probe result and expected value
Parameters: |
- metric (nagiosplugin.Metric) – Metric returned by probe
- resource (nagiosplugin.Resource) – Resource contains probe
|
Returns: | Result object of context evaluation
|
Return type: | nagiosplugin.Result
|
-
performance
(metric, resource)[source]
temelio_monitoring.context.json.scalar_value_from_json module
This module manage Scalar value testing context for data from JSON
-
class
temelio_monitoring.context.json.scalar_value_from_json.
ScalarValueFromJSON
(name, warning=None, critical=None, fmt_metric='{name} is {valueunit}', result_cls=<class 'nagiosplugin.result.Result'>)[source]
Bases: nagiosplugin.context.ScalarContext
ScalarValueFromJSON context class
-
evaluate
(metric, resource)[source]
Compare probe result and expected value
Parameters: |
- metric (nagiosplugin.Metric) – Metric returned by probe
- resource (nagiosplugin.Resource) – Resource contains probe
|
Returns: | Result object of context evaluation
|
Return type: | nagiosplugin.Result
|
temelio_monitoring.context.json.string_value_from_json module
This module manage String value testing context for data from JSON
-
class
temelio_monitoring.context.json.string_value_from_json.
StringValueFromJSON
(name, expected_string='', operator='==')[source]
Bases: nagiosplugin.context.Context
StringValueFromJSON context class
-
describe
(metric)[source]
Manage base context output
Parameters: | metric (nagiosplugin.Metric) – Metric returned by probe |
Returns: | String representation of context result |
Return type: | str |
-
evaluate
(metric, resource)[source]
Compare probe result and expected value
Parameters: |
- metric (nagiosplugin.Metric) – Metric returned by probe
- resource (nagiosplugin.Resource) – Resource contains probe
|
Returns: | Result object of context evaluation
|
Return type: | nagiosplugin.Result
|
Module contents
Manage json context classes import