Use add item template for graylog input metrics.
This commit is contained in:
parent
98773de09b
commit
ad6ae278b5
@ -5,11 +5,11 @@
|
||||
|
||||
from cmk.gui.i18n import _
|
||||
from cmk.gui.plugins.wato.utils import (
|
||||
CheckParameterRulespecWithoutItem,
|
||||
CheckParameterRulespecWithItem,
|
||||
rulespec_registry,
|
||||
RulespecGroupCheckParametersDiscovery,
|
||||
)
|
||||
from cmk.gui.valuespec import Dictionary, Float, Tuple
|
||||
from cmk.gui.valuespec import Dictionary, Float, Tuple, TextInput
|
||||
|
||||
defaults={
|
||||
"im_rate_upper": 999999,
|
||||
@ -81,12 +81,19 @@ def _parameter_valuespec_graylog_input_metrics():
|
||||
)
|
||||
|
||||
|
||||
def _item_spec_graylog_input_metrics():
|
||||
return TextInput(
|
||||
title=_("Service")
|
||||
)
|
||||
|
||||
|
||||
rulespec_registry.register(
|
||||
CheckParameterRulespecWithoutItem(
|
||||
CheckParameterRulespecWithItem(
|
||||
check_group_name="graylog_input_metrics",
|
||||
group=RulespecGroupCheckParametersDiscovery,
|
||||
match_type="dict",
|
||||
parameter_valuespec=_parameter_valuespec_graylog_input_metrics,
|
||||
item_spec=_item_spec_graylog_input_metrics,
|
||||
title=lambda: _("Graylog input metrics"),
|
||||
)
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user