Skip to content

Commit

Permalink
Add group key (#93)
Browse files Browse the repository at this point in the history
* Add grouping key

* Add grouping key and priority
  • Loading branch information
AlexH6015 authored Mar 2, 2025
1 parent 2a7f04e commit 60ce37a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/com/coralogixapis/alerts/v3/alert_def_priority.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
syntax = "proto3";
import "google/protobuf/descriptor.proto";
import "google/protobuf/wrappers.proto";

package com.coralogixapis.alerts.v3;

Expand All @@ -9,3 +11,8 @@ enum AlertDefPriority {
ALERT_DEF_PRIORITY_P2 = 3;
ALERT_DEF_PRIORITY_P1 = 4;
}

message Priority {
AlertDefPriority value = 1;
google.protobuf.StringValue name = 2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ import "com/coralogixapis/alerts/v3/notification/logs_immediate_notification.pro
import "com/coralogixapis/alerts/v3/notification/logs_threshold_notification.proto";
import "com/coralogixapis/alerts/v3/notification/metric_threshold_notification.proto";


message AlertNotificationEvent {
google.protobuf.Timestamp timestamp = 1;
google.protobuf.StringValue id = 2;
AlertStatus status = 3;
Attachments attachments = 4;
map<string, Group> groups = 5;
google.protobuf.StringValue grouping_key = 6;
Priority highest_priority = 7;

}

message Group {
Expand Down

0 comments on commit 60ce37a

Please sign in to comment.