Fix non-matching defaults in docs (#5446) (#5451)

* Allow to pass options as lookup options.

* Adjust tests.

* Fix non-matching defaults.

(cherry picked from commit a978bff2c7)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2022-11-01 18:06:30 +00:00
committed by GitHub
parent cba4fa2fe8
commit b26df2a008
79 changed files with 187 additions and 63 deletions

View File

@@ -53,14 +53,12 @@ options:
elements: str
description:
- List of handlers to notify when the check fails
default: []
subscribers:
type: list
elements: str
description:
- List of subscribers/channels this check should run for
- See sensu_subscribers to subscribe a machine to a channel
default: []
interval:
type: int
description:
@@ -92,7 +90,6 @@ options:
elements: str
description:
- Other checks this check depends on, if dependencies fail handling of this check will be disabled
default: []
metric:
description:
- Whether the check is a metric
@@ -138,7 +135,6 @@ options:
description:
- A hash/dictionary of custom parameters for mixing to the configuration.
- You can't rewrite others module parameters using this
default: {}
source:
type: str
description:

View File

@@ -62,6 +62,7 @@ options:
type: str
description:
- The prefix to add to the metric.
default: ''
value:
type: int
required: true