default_value should be None

This commit is contained in:
Marius Pana 2018-09-14 18:36:46 +03:00
parent 1e25e400e0
commit 8533198ad7

View File

@ -73,36 +73,36 @@ register_check_parameters(
Tuple( Tuple(
title=_("Write size /s"), title=_("Write size /s"),
elements=[ elements=[
Float(title=_("Warning at"), default_value=200.000, unit="bytes/s"), Float(title=_("Warning at"), default_value=None, unit="bytes/s"),
Float(title=_("Critical at"), default_value=250.000, unit="bytes/s"), Float(title=_("Critical at"), default_value=None, unit="bytes/s"),
])), ])),
("write_b_op", ("write_b_op",
Tuple( Tuple(
title=_("Write bytes per operation"), title=_("Write bytes per operation"),
elements=[ elements=[
Float(title=_("Warning at"), default_value=200.000, unit="bytes/s"), Float(title=_("Warning at"), default_value=None, unit="bytes/s"),
Float(title=_("Critical at"), default_value=250.000, unit="bytes/s"), Float(title=_("Critical at"), default_value=None, unit="bytes/s"),
])), ])),
("write_retrans", ("write_retrans",
Tuple( Tuple(
title=_("Write Retransmissions"), title=_("Write Retransmissions"),
elements=[ elements=[
Percentage(title=_("Warning at"), default_value=10.0), Percentage(title=_("Warning at"), default_value=None),
Percentage(title=_("Critical at"), default_value=20.0), Percentage(title=_("Critical at"), default_value=None),
])), ])),
("write_avg_rtt_ms", ("write_avg_rtt_ms",
Tuple( Tuple(
title=_("Write Avg RTT (ms)"), title=_("Write Avg RTT (ms)"),
elements=[ elements=[
Float(title=_("Warning at"), default_value=10.000, unit="ms"), Float(title=_("Warning at"), default_value=None, unit="ms"),
Float(title=_("Critical at"), default_value=20.000, unit="ms"), Float(title=_("Critical at"), default_value=None, unit="ms"),
])), ])),
("write_avg_exe_ms", ("write_avg_exe_ms",
Tuple( Tuple(
title=_("Write Avg exe (ms)"), title=_("Write Avg exe (ms)"),
elements=[ elements=[
Float(title=_("Warning at"), default_value=10.000, unit="ms"), Float(title=_("Warning at"), default_value=None, unit="ms"),
Float(title=_("Critical at"), default_value=20.000, unit="ms"), Float(title=_("Critical at"), default_value=None, unit="ms"),
])), ])),
] ]
), ),