]> granicus.if.org Git - vnstat/commitdiff
improve --json and --xml output documentation regarding the field that should be...
authorTeemu Toivola <git@humdi.net>
Sat, 20 Apr 2019 15:07:43 +0000 (18:07 +0300)
committerTeemu Toivola <git@humdi.net>
Sat, 20 Apr 2019 15:07:43 +0000 (18:07 +0300)
CHANGES
man/vnstat.1

diff --git a/CHANGES b/CHANGES
index c9e130afa3b9d36f056b075cc4706d1b7baa4412..fe2f2b435d61a1f776d95043c8a89c55eace8c47 100644 (file)
--- a/CHANGES
+++ b/CHANGES
    - Highlight current day in top list when visible
    - Changes in interface specific detected bandwidth limits are reported
      in the log
+ - Notes
+   - Added clarification to the man page that the 'jsonversion' and
+     'xmlversion' fields in the --json and --xml outputs should be seen as
+     the API version and compared to the previously used version in 3rd party
+     implementations for verifying compatibility
 
 
 2.1 / 6-Dec-2018
index aef77536fec7d729cf4e9ff6db5ed95302325d38..4386c85f569d60ad76f8f151646bc4185b0010a2 100644 (file)
@@ -216,7 +216,12 @@ and
 .B "-tr"
 options without
 .I mode
-having any effect to the output.
+having any effect to the output. The
+.B "jsonversion"
+field in the output contains the API version information. It will be changed only when the
+names or structures of previously existing content gets changed. In comparison, the
+.B "vnstatversion"
+field exists mainly as extra information.
 
 .TP
 .BI "-l, --live " [mode]
@@ -256,8 +261,8 @@ is set to 0.
 .BI "--oneline " [mode]
 Show traffic summary for selected interface using one line with a parsable
 format. The output contains 15 fields with ; used as field delimiter. The 1st
-field contains the version information of the output that will be changed
-in future versions of vnStat if the field structure changes. The following
+field contains the API version information of the output that will only be changed
+in future versions if the field content or structure changes. The following
 fields in order 2) interface name, 3) timestamp for today, 4) rx for today,
 5) tx for today, 6) total for today, 7) average traffic rate for today,
 8) timestamp for current month, 9) rx for current month, 10) tx for current
@@ -360,7 +365,12 @@ to 'f' will output only 5 minute resolution entries, 'h' hours, 'd' days, 'm' mo
 years and 't' the top days. An optional
 .I limit
 parameter can be used to limit the number results to a given number of most recent
-entries.
+entries. The
+.B "xmlversion"
+field in the output contains the API version information. It will be changed only when the
+names or structures of previously existing content gets changed. In comparison, the
+.B "vnstatversion"
+field exists mainly as extra information.
 
 .TP
 .BI "-y, --years " [count]