Commit 9de59a05 authored by Lasse Karstensen's avatar Lasse Karstensen

Update the documented JSON output format.

parent 1625f9c7
......@@ -71,7 +71,7 @@ The following options are available:
-x
Displays the result as XML.
-j
-j
Displays the result as JSON.
CURSES MODE
......@@ -181,10 +181,20 @@ With -j the output format is::
{
"timestamp": "YYYY-MM-DDTHH:mm:SS",
"FIELD NAME": {"type": "FIELD TYPE", "ident": "FIELD IDENT", "value": FIELD VALUE, "flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT", "description": "FIELD DESCRIPTION"},
"FIELD NAME": {
"description": "FIELD DESCRIPTION",
"type": "FIELD TYPE", "ident": "FIELD IDENT", "flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT",
"value": FIELD VALUE,
},
"FIELD2 NAME": {
"description": "FIELD2 DESCRIPTION",
"type": "FIELD2 TYPE", "ident": "FIELD2 IDENT", "flag": "FIELD2 SEMANTICS", "format": "FIELD2 DISPLAY FORMAT",
"value": FIELD2 VALUE,
},
[..]
}
Type and ident are optional. Timestamp is the time when the report was
generated by varnishstat.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment