Skip to content

Commit 09d479c

Browse files
authored
Merge pull request #527 from whdalsrnt/master
feat: change alert history request
2 parents 1526ca6 + dedd32a commit 09d479c

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

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

+21-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ service Alert {
4141
body: "*"
4242
};
4343
}
44-
rpc history (AlertRequest) returns (AlertHistoryInfo) {
44+
rpc history (AlertHistoryRequest) returns (AlertHistoryInfo) {
4545
option (google.api.http) = {
4646
post: "/alert-manager/v1/alert/history"
4747
body: "*"
@@ -120,6 +120,25 @@ message AlertRequest {
120120
string alert_id = 1;
121121
}
122122

123+
message AlertHistoryRequest {
124+
enum AlertAction {
125+
NONE = 0;
126+
TRIGGERED = 1;
127+
ACKNOWLEDGED = 2;
128+
RESOLVED = 3;
129+
NOTIFIED = 4;
130+
EVENT_PUSHED = 5;
131+
}
132+
133+
string alert_id = 1;
134+
// +optional
135+
AlertAction action = 2;
136+
// +optional
137+
bool include_event_info = 3;
138+
// +optional
139+
repeated spaceone.api.core.v2.Sort sort = 4;
140+
}
141+
123142
message AlertSearchQuery {
124143
enum AlertStatus {
125144
ALERT_STATE_NONE = 0;
@@ -234,4 +253,5 @@ message AlertEventInfo {
234253

235254
message AlertHistoryInfo {
236255
repeated AlertEventInfo results = 1;
256+
int32 total_count = 2;
237257
}

0 commit comments

Comments
 (0)