summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f754d2)
raw | patch | inline | side by side (parent: 4f754d2)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 6 Oct 2014 06:29:32 +0000 (08:29 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 6 Oct 2014 06:29:32 +0000 (08:29 +0200) |
doc/sysdbql.7.txt | patch | blob | history |
diff --git a/doc/sysdbql.7.txt b/doc/sysdbql.7.txt
index 2bccc3e36e0688f3d9ac921f0c18887bf09dad16..8842c01033226227085ce36cdfde5b04a3f6e94d 100644 (file)
--- a/doc/sysdbql.7.txt
+++ b/doc/sysdbql.7.txt
FETCH host 'some.host.name';
- LOOKUP hosts MATCHING attribute.architecture = 'amd64'
- FILTER :age < 5 * :interval;
+ LOOKUP hosts MATCHING attribute[architecture] = 'amd64'
+ FILTER .age < 5 * .interval;
DESCRIPTION
-----------
*attribute*::
The full name of a host attribute.
-*attribute.*'<name>'::
+*attribute[*'<name>'*]*::
The value of the named host attribute. If an attribute of the specified
does not exist, each comparison is treated as if the value does not match.
See the documentation for the *IS NULL* and *IS NOT NULL* operators for
The following fields (core properties) of stored objects may be queried:
-*:last_update*::
+*.last_update*::
The timestamp of the last update of the object. This value is based on
information provided by the queried backend if possible.
-*:age*::
+*.age*::
The amount of time since the last update of the object.
-*:interval*::
+*.interval*::
The interval with which the object gets updated. This value is determined
automatically based on a moving average determined from the update
timestamps of an object. It depends on the update timestamps as provided
by the backend (if available) and SysDB's query interval.
-*:backend*::
+*.backend*::
The name of the backend (plugin) providing the data.
The type of the *last_update*, *age*, and *interval* fields is date-time and
...
}]}
- LOOKUP hosts MATCHING attribute.architecture = 'amd64';
+ LOOKUP hosts MATCHING attribute[architecture] = 'amd64';
[{
"name": "host1.example.com",
"last_update": "2001-02-03 04:05:06 +0700",