cmk.graphing.v1.translations
- class PassiveCheck(name)
A passive check has the prefix
check_mk-.- Parameters:
name (
str) – The name of the passive check.
Example
>>> PassiveCheck("check_plugin") PassiveCheck(name='check_plugin')
- class ActiveCheck(name)
An active check has the prefix
check_mk_active-.- Parameters:
name (
str) – The name of the active check
Example
>>> ActiveCheck("http") ActiveCheck(name='http')
- class HostCheckCommand(name)
A host check command has the prefix
check-mk-.- Parameters:
name (
str) – The name of the host check command
Example
>>> HostCheckCommand("host-ping") HostCheckCommand(name='host-ping')
- class NagiosPlugin(name)
A classical Nagios plug-in has the prefix
check_.- Parameters:
name (
str) – The name of the Nagios plug-in
Example
>>> NagiosPlugin("check_plugin") NagiosPlugin(name='check_plugin')
- class RenameTo(metric_name)
- Parameters:
metric_name (
str) – A new metric name
Example
>>> RenameTo("new-metric-name") RenameTo(metric_name='new-metric-name')
- class ScaleBy(factor)
- Parameters:
factor (
int|float) – A number with which the old metric is scaled
Example
>>> ScaleBy(1.5) ScaleBy(factor=1.5)
- class RenameToAndScaleBy(metric_name, factor)
- Parameters:
metric_name (
str) – A new metric namefactor (
int|float) – A number with which the old metric is scaled
Example
>>> RenameToAndScaleBy("new-metric-name", 1.5) RenameToAndScaleBy(metric_name='new-metric-name', factor=1.5)