Skip to content

Commit 2b6c564

Browse files
authored
Merge pull request #525 from whdalsrnt/master
feat: remove fields from alert and event
2 parents 16d0e4f + 4f281f3 commit 2b6c564

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

proto/spaceone/api/alert_manager/v1/alert.proto

+4-14
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ message AlertCreateRequest {
8989
string image_url = 6;
9090
// +optional
9191
repeated AlertResource resources = 7;
92-
// +optional
93-
string provider = 8;
94-
// +optional
95-
string account = 9;
9692

9793
// +optional
9894
google.protobuf.Struct additional_info = 11;
@@ -147,13 +143,9 @@ message AlertSearchQuery {
147143
// +optional
148144
string resource = 6;
149145
// +optional
150-
string provider = 7;
151-
// +optional
152-
string account = 8;
153-
// +optional
154-
string triggered_type = 9;
146+
string triggered_type = 7;
155147
// +optional
156-
string triggered_by = 10;
148+
string triggered_by = 8;
157149

158150
// +optional
159151
string workspace_id = 21;
@@ -198,10 +190,8 @@ message AlertInfo {
198190
string rule = 7;
199191
string image_url = 8;
200192
repeated AlertResource resources = 9;
201-
string provider = 10;
202-
string account = 11;
203-
TriggeredType triggered_type = 12;
204-
string triggered_by = 13;
193+
TriggeredType triggered_type = 10;
194+
string triggered_by = 11;
205195

206196
google.protobuf.Struct additional_info = 15;
207197
repeated string labels = 16;

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

-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ message EventInfo {
4949
string rule = 7;
5050
string image_url = 8;
5151
repeated string resources = 9;
52-
string provider = 10;
53-
string account = 11;
5452

5553
google.protobuf.Struct additional_info = 15;
5654
google.protobuf.Struct raw_data = 16;

0 commit comments

Comments
 (0)