From 3362af58d11fe2bbaedc1979a7055bd1965a1209 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 14 Nov 2014 19:30:46 +0100 Subject: [PATCH] sysdbql(7): Documented arrays. --- doc/sysdbql.7.txt | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/doc/sysdbql.7.txt b/doc/sysdbql.7.txt index 5e9fb85..46abfd3 100644 --- a/doc/sysdbql.7.txt +++ b/doc/sysdbql.7.txt @@ -15,6 +15,7 @@ SYNOPSIS FETCH host 'some.host.name'; LOOKUP hosts MATCHING attribute['architecture'] = 'amd64' + AND 'backend::collectd::unixsock' in backend FILTER age < 5 * interval; DESCRIPTION @@ -248,6 +249,12 @@ all types may be used in any place where a value is expected. (minutes), *s* (seconds), *ms* (milliseconds), *us* (microseconds), or *ns* (nanoseconds). Note that years and months are approximations. +*Array constants*:: + An array stores of one or more values of the same type. It may be + specified as a comma-separated list of constant values enclosed in square + brackets ('[,,...]'). For each value, the same rules apply + as for a regular constant value of that type. + RESPONSE FORMAT --------------- The JavaScript Object Notation (JSON) format, as specified in RFC 4627, is @@ -262,11 +269,13 @@ replies look like. The replies are pretty-printed to more easily follow them. [{ "name": "host1.example.com", "last_update": "2001-02-03 04:05:06 +0700", - "update_interval": "5m4s" + "update_interval": "5m4s", + "backend": ['backend::mk-livestatus'] },{ "name": "host2.example.com", "last_update": "2001-02-03 04:05:06 +0700", - "update_interval": "5m4s" + "update_interval": "10s", + "backend": ['backend::mk-livestatus','backend::collectd::unixsock'] }] FETCH host 'host1.example.com'; @@ -274,18 +283,21 @@ replies look like. The replies are pretty-printed to more easily follow them. "name": "host1.example.com", "last_update": "2001-02-03 04:05:06 +0700", "update_interval": "5m4s", + "backend": ['backend::mk-livestatus'], "attributes": [{ "name": "architecture", "value": "amd64", "last_update": "2001-02-03 04:05:06 +0700", - "update_interval": "5m4s" + "update_interval": "5m4s", + "backend": ['backend::mk-livestatus'] },{ ... }], "services": [{ "name": "some service", "last_update": "2001-02-03 04:05:06 +0700", - "update_interval": "5m4s" + "update_interval": "5m4s", + "backend": ['backend::mk-livestatus'] },{ ... }]} @@ -295,18 +307,21 @@ replies look like. The replies are pretty-printed to more easily follow them. "name": "host1.example.com", "last_update": "2001-02-03 04:05:06 +0700", "update_interval": "5m4s", + "backend": ['backend::mk-livestatus'], "attributes": [{ "name": "architecture", "value": "amd64", "last_update": "2001-02-03 04:05:06 +0700", - "update_interval": "5m4s" + "update_interval": "5m4s", + "backend": ['backend::mk-livestatus'] },{ ... }], "services": [{ "name": "some service", "last_update": "2001-02-03 04:05:06 +0700", - "update_interval": "5m4s" + "update_interval": "5m4s", + "backend": ['backend::mk-livestatus'] },{ ... }]},{ -- 2.30.2