vakna health: check that the API is serving
Note
This page is generated from a mock CLI, and its numbers are placeholders.
Verified against vakna 0.0.0-mock on · generated from the CLI's own definitions
vakna health: check that the API is serving.
Synopsis
sh
vakna healthFlags
| Flag | Default | What it does |
|---|---|---|
--timeout <duration> |
10s |
give up on the API after this long |
--format <format> |
text |
text, or json: one JSON object per line |
--json |
off |
the same as --format json |
-h, --help |
off |
this help |
Examples
Example
sh
vakna healthprints serving
Exit code 0.
Another example
sh
vakna health --format jsonprints {"v":1,"event":"health","status":"serving","mocked":true}
Exit code 0.
When it fails
sh
vakna health --format yamlprints vakna: unknown --format yaml
hint: vakna --help # text or json
Exit code 2.
Exit codes
JSON output
With --format json (or --json) every line is one JSON object. v is the format's version; mocked marks numbers from the mock.
sh
vakna health --format jsonprints {"v":1,"event":"health","status":"serving","mocked":true}
Errors
vakna: unknown command, unknown flag or missing argument: Runvakna <command> --helpand fix the command line it points to.
--help
This page and the help text come from one definition.
Output
vakna health · check that the API is serving
usage
vakna health
flags
--timeout <duration> give up on the API after this long (default: 10s)
--format <format> text, or json: one JSON object per line (default: text)
--json the same as --format json (default: off)
-h, --help this help (default: off)
examples
vakna health
vakna health --format json
exit codes
0 ok
1 vakna failed; under shell, run, try or fork, the command in the box failed