Skip to content

Commit 9cefcae

Browse files
committed
feat: change event messages
Signed-off-by: Jongmin Kim <[email protected]>
1 parent c0f0d8a commit 9cefcae

File tree

2 files changed

+9
-25
lines changed

2 files changed

+9
-25
lines changed

proto/spaceone/api/alert_manager/plugin/event.proto

-11
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ enum EventType {
2525
ALERT = 2;
2626
}
2727

28-
message EventResource {
29-
// +optional
30-
string resource_id = 1;
31-
// +optional
32-
string resource_type = 2;
33-
// +optional
34-
string name = 3;
35-
}
36-
3728
message EventInfo {
3829
string event_key = 1;
3930
EventType event_type = 2;
@@ -43,8 +34,6 @@ message EventInfo {
4334
string rule = 6;
4435
string image_url = 7;
4536
repeated string resources = 8;
46-
string provider = 9;
47-
string account = 10;
4837
google.protobuf.Struct additional_info = 11;
4938

5039
string occurred_at = 31;

proto/spaceone/api/alert_manager/v1/event.proto

+9-14
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,19 @@ message EventInfo {
4040
ERROR = 3;
4141
}
4242

43-
string event_id = 1;
44-
string event_key = 2;
45-
EventType event_type = 3;
46-
string title = 4;
47-
string description = 5;
48-
EventSeverity severity = 6;
49-
string rule = 7;
50-
string image_url = 8;
51-
repeated string resources = 9;
43+
string event_key = 1;
44+
EventType event_type = 2;
45+
string title = 3;
46+
string description = 4;
47+
EventSeverity severity = 5;
48+
string rule = 6;
49+
string image_url = 7;
50+
repeated string resources = 8;
5251

5352
google.protobuf.Struct additional_info = 15;
5453
google.protobuf.Struct raw_data = 16;
5554

56-
string domain_id = 21;
57-
string workspace_id = 22;
58-
string service_id = 23;
59-
string webhook_id = 24;
60-
string alert_id = 25;
55+
string webhook_id = 21;
6156

6257
string created_at = 31;
6358
string occurred_at = 32;

0 commit comments

Comments
 (0)