diff options
author | Kristian Lyngstol <Kristian.Lyngstol@telenor.com> | 2019-01-24 15:37:19 +0100 |
---|---|---|
committer | Kristian Lyngstol <Kristian.Lyngstol@telenor.com> | 2019-01-24 15:37:19 +0100 |
commit | 2b165d6d035f368bbdc0372e41cf71731c23f5bc (patch) | |
tree | aaba36dcaacc11fb4d065ba676522aa46ee00db7 /doc/gondul-receiver.rst | |
parent | af9857d2e9c8c0506afe7a3afc1125fedae9c84a (diff) |
docs/gondul-receiver.rst: Minor style fixes
Diffstat (limited to 'doc/gondul-receiver.rst')
-rw-r--r-- | doc/gondul-receiver.rst | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/gondul-receiver.rst b/doc/gondul-receiver.rst index f83ce7c..6b2ea5f 100644 --- a/doc/gondul-receiver.rst +++ b/doc/gondul-receiver.rst @@ -62,17 +62,16 @@ The core API accepts N or more metrics in a single post. The core of the API will accept 3 fields: -- "source" - a text-string identifying the source of the data, e.g. "dhcp", +- `source` - a text-string identifying the source of the data, e.g. "dhcp", "ping", "snmp". This should be sent either as a json text field, or as part of the url. E.g., allow posting to - https://user:pass@gondul/api/write/gtimes/dhcp . The benefit of linking - this with the URL is that it will simplify authentication in the future, - allowing "write-only" accounts. -- "metadata" - this is a generic JSON object that contain a number of fields - that will be indexed upon or used by enrichment. Example: { "server": - "dhcpserver1", "time": "2019-01-05T15:00:10Z" }. - "time": "2019-01-05T12:00:10Z", " -- "data" - an array of json-objects. Each object in the array must either + ``https://user:pass@gondul/api/write/gtimes/dhcp`` . The benefit of + linking this with the URL is that it will simplify authentication in the + future, allowing "write-only" accounts. +- `metadata` - this is a generic JSON object that contain a number of fields + that will be indexed upon or used by enrichment. Example: ``{ "server": + "dhcpserver1", "time": "2019-01-05T15:00:10Z" }``. +- `data` - an array of json-objects. Each object in the array must either have a "time" field or the "metadata"-field must have a time field. |