Compare commits
No commits in common. "ad6ae278b55d71a8cf8ab0fb3ceb90670f49a6cd" and "a95e2ee7750e13a768a59c4e4e7136813a5edbce" have entirely different histories.
ad6ae278b5
...
a95e2ee775
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
from cmk.gui.i18n import _
|
from cmk.gui.i18n import _
|
||||||
from cmk.gui.plugins.wato.utils import (
|
from cmk.gui.plugins.wato.utils import (
|
||||||
CheckParameterRulespecWithItem,
|
CheckParameterRulespecWithoutItem,
|
||||||
rulespec_registry,
|
rulespec_registry,
|
||||||
RulespecGroupCheckParametersDiscovery,
|
RulespecGroupCheckParametersDiscovery,
|
||||||
)
|
)
|
||||||
from cmk.gui.valuespec import Dictionary, Float, Tuple, TextInput
|
from cmk.gui.valuespec import Dictionary, Float, Tuple
|
||||||
|
|
||||||
defaults={
|
defaults={
|
||||||
"im_rate_upper": 999999,
|
"im_rate_upper": 999999,
|
||||||
@ -81,19 +81,12 @@ def _parameter_valuespec_graylog_input_metrics():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def _item_spec_graylog_input_metrics():
|
|
||||||
return TextInput(
|
|
||||||
title=_("Service")
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
rulespec_registry.register(
|
rulespec_registry.register(
|
||||||
CheckParameterRulespecWithItem(
|
CheckParameterRulespecWithoutItem(
|
||||||
check_group_name="graylog_input_metrics",
|
check_group_name="graylog_input_metrics",
|
||||||
group=RulespecGroupCheckParametersDiscovery,
|
group=RulespecGroupCheckParametersDiscovery,
|
||||||
match_type="dict",
|
match_type="dict",
|
||||||
parameter_valuespec=_parameter_valuespec_graylog_input_metrics,
|
parameter_valuespec=_parameter_valuespec_graylog_input_metrics,
|
||||||
item_spec=_item_spec_graylog_input_metrics,
|
|
||||||
title=lambda: _("Graylog input metrics"),
|
title=lambda: _("Graylog input metrics"),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user