You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,11 +149,12 @@ Usage:
149
149
check_elasticsearch snapshot [flags]
150
150
151
151
Flags:
152
-
-a, --all Check all retrieved snapshots. If not set only the latest snapshot is checked
153
-
-N, --number int Check latest N number snapshots. If not set only the latest snapshot is checked (default 1)
154
-
-r, --repository string Comma-separated list of snapshot repository names used to limit the request (default "*")
155
-
-s, --snapshot string Comma-separated list of snapshot names to retrieve. Wildcard (*) expressions are supported (default "*")
156
-
-h, --help help for snapshot
152
+
-a, --all Check all retrieved snapshots. If not set only the latest snapshot is checked
153
+
-N, --number int Check latest N number snapshots. If not set only the latest snapshot is checked (default 1)
154
+
-r, --repository string Comma-separated list of snapshot repository names used to limit the request (default "*")
155
+
-s, --snapshot string Comma-separated list of snapshot names to retrieve. Wildcard (*) expressions are supported (default "*")
156
+
-T, --no-snapshots-state string Set exit code to return if no snapshots are found. Supported values are 0, 1, 2, 3, OK, Warning, Critical, Unknown (case-insensitive - default "Unknown")
fs.IntP("number", "N", 1, "Check latest N number snapshots. If not set only the latest snapshot is checked")
123
166
fs.BoolP("all", "a", false, "Check all retrieved snapshots. If not set only the latest snapshot is checked")
124
167
168
+
fs.StringP("no-snapshots-state", "T", "UNKNOWN", "State to assign when no snapshots are found (0, 1, 2, 3, OK, WARNING, CRITICAL, UNKNOWN). If not set this defaults to UNKNOWN")
0 commit comments