summaryrefslogtreecommitdiffstats
path: root/aclk/aclk-schemas/proto/alarm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:18 +0000
commit5da14042f70711ea5cf66e034699730335462f66 (patch)
tree0f6354ccac934ed87a2d555f45be4c831cf92f4a /aclk/aclk-schemas/proto/alarm
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz
netdata-5da14042f70711ea5cf66e034699730335462f66.zip
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'aclk/aclk-schemas/proto/alarm')
-rw-r--r--aclk/aclk-schemas/proto/alarm/v1/config.proto61
-rw-r--r--aclk/aclk-schemas/proto/alarm/v1/stream.proto148
2 files changed, 0 insertions, 209 deletions
diff --git a/aclk/aclk-schemas/proto/alarm/v1/config.proto b/aclk/aclk-schemas/proto/alarm/v1/config.proto
deleted file mode 100644
index 430078fcf..000000000
--- a/aclk/aclk-schemas/proto/alarm/v1/config.proto
+++ /dev/null
@@ -1,61 +0,0 @@
-syntax = "proto3";
-
-package alarms.v1;
-
-option go_package = "alarms/v1;alarms";
-
-message SendAlarmConfiguration{
- string config_hash = 1;
-}
-
-message ProvideAlarmConfiguration {
- string config_hash = 1;
- AlarmConfiguration config = 2;
-}
-
-message AlarmConfiguration{
- string alarm = 1;
- string template = 2;
- string on_chart = 3;
-
- string classification = 4;
- string type = 5;
- string component = 6;
-
- string os = 7;
- string hosts = 8;
- string plugin = 9;
- string module = 10;
- string charts = 11;
- string families = 12;
- string lookup = 13;
- string every = 14;
- string units = 15;
-
- string green = 16;
- string red = 17;
-
- string calculation_expr = 18;
- string warning_expr = 19;
- string critical_expr = 20;
-
- string recipient = 21;
- string exec = 22;
- string delay = 23;
- string repeat = 24;
- string info = 25;
- string options = 26;
- string host_labels = 27;
-
- //parsed values from above config values
- //indicated by p_
- int32 p_db_lookup_after = 28;
- int32 p_db_lookup_before = 29;
- string p_db_lookup_dimensions = 30;
- string p_db_lookup_method = 31;
- string p_db_lookup_options = 32;
- int32 p_update_every = 33;
-
- string chart_labels = 34;
- string summary = 35;
-}
diff --git a/aclk/aclk-schemas/proto/alarm/v1/stream.proto b/aclk/aclk-schemas/proto/alarm/v1/stream.proto
deleted file mode 100644
index 44f190682..000000000
--- a/aclk/aclk-schemas/proto/alarm/v1/stream.proto
+++ /dev/null
@@ -1,148 +0,0 @@
-syntax = "proto3";
-
-package alarms.v1;
-
-import "google/protobuf/timestamp.proto";
-
-option go_package = "alarms/v1;alarms";
-
-message SendAlarmLogHealth {
- string node_id = 1;
-}
-
-message AlarmLogHealth {
- string claim_id = 1;
- string node_id = 2;
- bool enabled = 3;
- AlarmLogStatus status = 4;
- LogEntries log_entries = 5;
-}
-
-message LogEntries {
- int64 first_sequence_id = 1;
- google.protobuf.Timestamp first_when = 2;
-
- int64 last_sequence_id = 3;
- google.protobuf.Timestamp last_when = 4;
-}
-
-enum AlarmLogStatus {
- ALARM_LOG_STATUS_UNSPECIFIED = 0;
- ALARM_LOG_STATUS_RUNNING = 1;
- ALARM_LOG_STATUS_IDLE = 2;
-}
-
-message StartAlarmStreaming {
- string node_id = 1;
- uint64 batch_id = 2 [deprecated=true];
- uint64 start_sequnce_id = 3 [deprecated=true];
- // Instructs the agent to sync all configured alarms
- bool resets = 4;
-}
-
-message SendAlarmCheckpoint {
- string node_id = 1;
- string claim_id = 2;
-}
-
-message AlarmCheckpoint {
- string node_id = 1;
- string claim_id = 2;
- bytes checksum = 3;
-}
-
-message AlarmLogEntry {
- string node_id = 1;
- string claim_id = 2;
-
- // The chart's id field
- string chart = 3;
- string name = 4;
- string family = 5;
- uint64 batch_id = 6 [deprecated=true];
- uint64 sequence_id = 7 [deprecated=true];
- uint64 when = 8;
-
- string config_hash = 9;
-
- int32 utc_offset = 10;
- string timezone = 11;
-
- // Paths that can be custom for the same alarm, but depend on installation path for each user. Should be here or in config ?
- string exec_path = 12;
- string conf_source = 13;
- string command = 14;
-
- // In seconds, uint32 is safe ?
- uint32 duration = 15;
- uint32 non_clear_duration = 16;
-
- AlarmStatus status = 17;
- AlarmStatus old_status = 18;
- uint64 delay = 19;
- uint64 delay_up_to_timestamp = 20;
- // Todo: verify that we need these. sequence_id doesn't suffice?
- // uint64 updated_by_id = 12;
- // uint64 updates_id = 13;
- uint64 last_repeat = 21;
- bool silenced = 22;
-
- // Check if string values are needed
- string value_string = 23;
- string old_value_string = 24;
-
- double value = 25;
- double old_value = 26;
-
- // Updated alarm entry, when the status of the alarm has been updated by a later entry
- bool updated = 27;
-
- // Rendered_info
- string rendered_info = 28;
-
- // The chart's context field
- string chart_context = 29;
-
- // Counter of alert transitions for this alert chain
- uint64 event_id = 30;
-
- // A unique uuid for this alert event
- string transition_id = 31;
-
- // The chart's name field
- string chart_name = 32;
-
- // The rendered summary
- string summary = 33;
-}
-
-enum AlarmStatus {
- ALARM_STATUS_NULL = 0;
- ALARM_STATUS_UNKNOWN = 1;
- ALARM_STATUS_REMOVED = 2;
- ALARM_STATUS_NOT_A_NUMBER = 3;
- ALARM_STATUS_CLEAR = 4;
- ALARM_STATUS_WARNING = 5;
- ALARM_STATUS_CRITICAL = 6;
-}
-
-// SendAlarmSnapshot: send from cloud to the agent, to initiate an AlarmSnapshot image of current alarms back to the cloud
-message SendAlarmSnapshot {
- string node_id = 1;
- string claim_id = 2;
- uint64 snapshot_id = 3 [deprecated=true];
- uint64 sequence_id = 4 [deprecated=true];
- string snapshot_uuid = 5;
-}
-
-// Agent responds with AlarmSnapshot to a SendAlarmSnapshot message
-message AlarmSnapshot{
- string node_id = 1;
- string claim_id = 2;
- uint64 snapshot_id = 3 [deprecated=true]; // Same id from SendAlarmSnapshot message
- uint32 chunks = 4; // In case full snapshot can not fit in a single message, indicates the total number of messages for this snapshot_id
- uint32 chunk_size = 5; // How many alerts this chunk contains
- uint32 chunk = 6; // Chunk index of this message
- repeated AlarmLogEntry alarms = 7; // a list of AlarmLogEntry's
- string snapshot_uuid = 8;
-}