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: design/query-svc.go
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,9 @@ var _ = dsl.Service("query-svc", func() {
56
56
dsl.Attribute("tags_all", dsl.ArrayOf(dsl.String), "Tags to search with AND logic - matches resources that have all of these tags", func() {
57
57
dsl.Example([]string{"governance", "security"})
58
58
})
59
+
dsl.Attribute("filters", dsl.ArrayOf(dsl.String), "Direct field filters with term clauses on data fields - format: 'field:value' (e.g., 'status:active'). Fields are automatically prefixed with 'data.'", func() {
dsl.Attribute("cel_filter", dsl.String, "CEL expression to filter results on resource data fields. Available variables: data (map), resource_type (string), id (string)", func() {
60
63
dsl.Example(`data.slug == "tlf"`)
61
64
dsl.MaxLength(1000)
@@ -82,6 +85,7 @@ var _ = dsl.Service("query-svc", func() {
82
85
dsl.Param("type")
83
86
dsl.Param("tags")
84
87
dsl.Param("tags_all")
88
+
dsl.Param("filters")
85
89
dsl.Param("cel_filter")
86
90
dsl.Param("sort")
87
91
dsl.Param("page_token")
@@ -125,6 +129,9 @@ var _ = dsl.Service("query-svc", func() {
125
129
dsl.Attribute("tags_all", dsl.ArrayOf(dsl.String), "Tags to search with AND logic - matches resources that have all of these tags", func() {
126
130
dsl.Example([]string{"governance", "security"})
127
131
})
132
+
dsl.Attribute("filters", dsl.ArrayOf(dsl.String), "Direct field filters with term clauses on data fields - format: 'field:value' (e.g., 'status:active'). Fields are automatically prefixed with 'data.'", func() {
0 commit comments