File tree 1 file changed +21
-1
lines changed
proto/spaceone/api/alert_manager/v1
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ service Alert {
41
41
body : "*"
42
42
};
43
43
}
44
- rpc history (AlertRequest ) returns (AlertHistoryInfo ) {
44
+ rpc history (AlertHistoryRequest ) returns (AlertHistoryInfo ) {
45
45
option (google.api.http ) = {
46
46
post : "/alert-manager/v1/alert/history"
47
47
body : "*"
@@ -120,6 +120,25 @@ message AlertRequest {
120
120
string alert_id = 1 ;
121
121
}
122
122
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
+
123
142
message AlertSearchQuery {
124
143
enum AlertStatus {
125
144
ALERT_STATE_NONE = 0 ;
@@ -234,4 +253,5 @@ message AlertEventInfo {
234
253
235
254
message AlertHistoryInfo {
236
255
repeated AlertEventInfo results = 1 ;
256
+ int32 total_count = 2 ;
237
257
}
You can’t perform that action at this time.
0 commit comments