summaryrefslogtreecommitdiffstats
path: root/aclk/aclk-schemas/proto/context
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:44 +0000
commit836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch)
tree1604da8f482d02effa033c94a84be42bc0c848c3 /aclk/aclk-schemas/proto/context
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz
netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'aclk/aclk-schemas/proto/context')
-rw-r--r--aclk/aclk-schemas/proto/context/v1/context.proto57
-rw-r--r--aclk/aclk-schemas/proto/context/v1/stream.proto34
2 files changed, 0 insertions, 91 deletions
diff --git a/aclk/aclk-schemas/proto/context/v1/context.proto b/aclk/aclk-schemas/proto/context/v1/context.proto
deleted file mode 100644
index eb771f8eb..000000000
--- a/aclk/aclk-schemas/proto/context/v1/context.proto
+++ /dev/null
@@ -1,57 +0,0 @@
-syntax = "proto3";
-
-package context.v1;
-
-option go_package = "context/v1;context";
-
-// ContextsUpdated is an Event produced by the Agent, consumed by the Cloud.
-//
-// it contains a collection of ContextUpdated messages for a specific NodeInstance.
-message ContextsUpdated {
- // contexUpdates contains the collection of context updates
- repeated ContextUpdated contextUpdates = 1;
- // claim_id, node_id pair identifies the node instance
- string claim_id = 2;
- string node_id = 3;
- // version_hash is the contexts version_hash result the cloud should
- // get after applying this message updates.
- uint64 version_hash = 4;
- // it's and always increasing number to compare
- // which version_hash is more recent between multiple
- // ContextsUpdated messages. Bigger means more recent.
- uint64 created_at = 5;
-}
-
-// ContextUpdated contains context data.
-message ContextUpdated {
- // context id
- string id = 1;
- // context version is an epoch in seconds.
- uint64 version = 2;
- // first_entry, last_entry are epochs in seconds
- uint64 first_entry = 3;
- uint64 last_entry = 4;
- // deleted flag is used to signal a context deletion
- bool deleted = 5;
- // context configuration fields
- string title = 6;
- uint64 priority = 7;
- string chart_type = 8;
- string units = 9;
- string family = 10;
-}
-
-// ContextsSnapshot is an Event produced by the Agent, consumed by the Cloud.
-//
-// it contains a snapshot of the existing contexts on the Agent.
-// snapshot version and context versions are epochs in seconds so we can
-// identify if a context version was generated after a specific snapshot.
-message ContextsSnapshot {
- // contexts contains the collection of existing contexts
- repeated ContextUpdated contexts = 1;
- // claim_id, node_id pair identifies the node instance
- string claim_id = 2;
- string node_id = 3;
- // version is an epoch in seconds
- uint64 version = 4;
-}
diff --git a/aclk/aclk-schemas/proto/context/v1/stream.proto b/aclk/aclk-schemas/proto/context/v1/stream.proto
deleted file mode 100644
index a6e7e3abf..000000000
--- a/aclk/aclk-schemas/proto/context/v1/stream.proto
+++ /dev/null
@@ -1,34 +0,0 @@
-syntax = "proto3";
-
-package context.v1;
-
-option go_package = "context/v1;context";
-
-// ContextsCheckpoint is a Command produced by the Cloud, consumed by the Agent.
-//
-// It informs the Agent the contexts' version_hash that the cloud has for a specific NodeInstance.
-message ContextsCheckpoint {
- // claim_id, node_id pair is used to identify the NodeInstance.
- string claim_id = 1;
- string node_id = 2;
- // version_hash tells the Agent the current version hash for the contexts received
- // if the version hash calculated by the Agent is different, Agent will request
- // to re-sync all contexts.
- uint64 version_hash= 3;
-}
-
-// StopStreamingContexts is a Command produced by the Cloud, consumed by the Agent.
-//
-// It instructs the Agent to stop sending ContextsUpdated messages for a NodeInstance
-// due to a reason.
-message StopStreamingContexts {
- // claim_id, node_id pair is used to identify the node instance
- string claim_id = 1;
- string node_id = 2;
-
- StopStreamingContextsReason reason = 3;
-}
-
-enum StopStreamingContextsReason {
- RATE_LIMIT_EXCEEDED = 0;
-}