mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Add the 'ttl' parameter for sensu_check
The TTL [1] parameter for checks allows Sensu to detect if a check has gotten stale (i.e, stopped checking). [1]: https://sensuapp.org/docs/latest/reference/checks.html#check-attributes
This commit is contained in:
parent
913a8f864a
commit
16073f5b08
1 changed files with 8 additions and 0 deletions
|
@ -85,6 +85,12 @@ options:
|
||||||
- Timeout for the check
|
- Timeout for the check
|
||||||
required: false
|
required: false
|
||||||
default: 10
|
default: 10
|
||||||
|
ttl:
|
||||||
|
description:
|
||||||
|
- Time to live in seconds until the check is considered stale
|
||||||
|
required: false
|
||||||
|
default: null
|
||||||
|
version_added: 2.4
|
||||||
handle:
|
handle:
|
||||||
description:
|
description:
|
||||||
- Whether the check should be handled or not
|
- Whether the check should be handled or not
|
||||||
|
@ -263,6 +269,7 @@ def sensu_check(module, path, name, state='present', backup=False):
|
||||||
'subscribers',
|
'subscribers',
|
||||||
'interval',
|
'interval',
|
||||||
'timeout',
|
'timeout',
|
||||||
|
'ttl',
|
||||||
'handle',
|
'handle',
|
||||||
'dependencies',
|
'dependencies',
|
||||||
'standalone',
|
'standalone',
|
||||||
|
@ -363,6 +370,7 @@ def main():
|
||||||
'subscribers': {'type': 'list'},
|
'subscribers': {'type': 'list'},
|
||||||
'interval': {'type': 'int'},
|
'interval': {'type': 'int'},
|
||||||
'timeout': {'type': 'int'},
|
'timeout': {'type': 'int'},
|
||||||
|
'ttl': {'type': 'int'},
|
||||||
'handle': {'type': 'bool'},
|
'handle': {'type': 'bool'},
|
||||||
'subdue_begin': {'type': 'str'},
|
'subdue_begin': {'type': 'str'},
|
||||||
'subdue_end': {'type': 'str'},
|
'subdue_end': {'type': 'str'},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue