+2
-2
lines changedFilter options
+2
-2
lines changed Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ import (
12
12
type ListIncidentsParams struct {
13
13
Limit int `json:"limit" jsonschema:"description=The maximum number of incidents to return"`
14
14
Drill bool `json:"drill" jsonschema:"description=Whether to include drill incidents"`
15
-
Status string `json:"status" jsonschema:"description=The status of the incidents to include"`
15
+
Status string `json:"status" jsonschema:"description=The status of the incidents to include. Valid values: 'active', 'resolved'"`
16
16
}
17
17
18
18
func listIncidents(ctx context.Context, args ListIncidentsParams) (*incident.QueryIncidentPreviewsResponse, error) {
@@ -23,7 +23,7 @@ func listIncidents(ctx context.Context, args ListIncidentsParams) (*incident.Que
23
23
query = "isdrill:false"
24
24
}
25
25
if args.Status != "" {
26
-
query += fmt.Sprintf(" and status:%s", args.Status)
26
+
query += fmt.Sprintf(" status:%s", args.Status)
27
27
}
28
28
incidents, err := is.QueryIncidentPreviews(ctx, incident.QueryIncidentPreviewsRequest{
29
29
Query: incident.IncidentPreviewsQuery{
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4