From 0ea2db5801757751de59ad7aaab5ac903c248424 Mon Sep 17 00:00:00 2001 From: Sebastien Tricaud Date: Sun, 12 Apr 2020 20:44:34 -0700 Subject: [PATCH] manifold is now the consensus --- sightingdb-format/raw.md.txt | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/sightingdb-format/raw.md.txt b/sightingdb-format/raw.md.txt index 9f2754b..589ebf9 100644 --- a/sightingdb-format/raw.md.txt +++ b/sightingdb-format/raw.md.txt @@ -96,8 +96,8 @@ Table of Contents The SightingDB format is in JSON [RFC8259] format and used to query a SightingDB compatible connector. In SightingDB, a Sighting Object is composed of a single JSON object. This object contains the following - fields: value, first_seen, last_seen, count, tags, ttl, frequency and - manifold. + fields: value, first_seen, last_seen, count, tags, ttl and consensus. + 2.1.1. Attribute Storage @@ -128,7 +128,7 @@ Internet-Draft SightingDB query format November 2019 that expired, preserving the origin namespace _shadow/: When a value is searched and does not exists, it is stored there _stats: Statistics _config: Configuration _all: All the Attributes in one - place, used to retrieve the 'manifold' property. + place, used to retrieve the 'consensus' property. The Attribute Key MUST always be the last part of the Namespace. @@ -182,8 +182,8 @@ Internet-Draft SightingDB query format November 2019 2.1.3.6. ttl Time To Live, represents the expiration in seconds since the time the - Attribute was created. Once it has expired, it moves in the private - Namespace _expired. + Attribute was created (first_seen). Once it has expired, it moves in + the private Namespace _expired. When an Attribute has this field set to 0, it means it is not set to expired. This is the default behavior. @@ -191,16 +191,10 @@ Internet-Draft SightingDB query format November 2019 When an Attribute has this field set to a number greater than 0, the expiration status is computed only at retrieval time. -2.1.3.7. frequency - - Frequency is the number of time an Attribute is seen in average per - day. As this field can introduced latence, its implementation is - OPTIONAL. - -2.1.3.8. manifold +2.1.3.8. consensus When a given Attribute Value is stored in different namespaces, the - manifold field keeps track of them so it returns in how many + consensus field keeps track of them so it returns in how many different places this attributes exists. This is a simple counter. 2.2. SightingDB Format - One Attribute @@ -213,7 +207,7 @@ Internet-Draft SightingDB query format November 2019 "tags":"", "ttl":0, "frequency":1185, - "manifold": 17 + "consensus": 17 }