Thresholds need to be passed for the log alert type (#64851)
* Thresholds need to be passed for the log alert type * removed whitespace from linting error
This commit is contained in:
parent
95d4908987
commit
e1a815381a
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ def install_monitor(module):
|
|||
|
||||
if module.params['type'] == "service check":
|
||||
options["thresholds"] = module.params['thresholds'] or {'ok': 1, 'critical': 1, 'warning': 1}
|
||||
if module.params['type'] == "metric alert" and module.params['thresholds'] is not None:
|
||||
if module.params['type'] in ["metric alert", "log alert"] and module.params['thresholds'] is not None:
|
||||
options["thresholds"] = module.params['thresholds']
|
||||
|
||||
monitor = _get_monitor(module)
|
||||
|
|
Loading…
Add table
Reference in a new issue