You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apiserver/internal/server/incidents.go
+30-2
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ import (
10
10
"net/http"
11
11
"sort"
12
12
"strconv"
13
+
"strings"
13
14
)
14
15
15
16
typeIncidentsResponsestruct {
@@ -19,6 +20,7 @@ type IncidentsResponse struct {
19
20
20
21
// incidents is a handler for the /incidents endpoint.
21
22
// It has a required query parameter of statusPageUrl
23
+
// It has an optional query parameter of impact (default is all), which is an array of impacts e.g. impact=critical,major,minor,none to exclude maintenance
22
24
func (s*Server) incidents(context*gin.Context) {
23
25
ctx:=context.Request.Context()
24
26
statusPageUrl:=context.Query("statusPageUrl")
@@ -27,6 +29,20 @@ func (s *Server) incidents(context *gin.Context) {
0 commit comments