Skip to content

Commit

Permalink
feat(CAD-357): Add ResourceGroupFilter to CLI Search
Browse files Browse the repository at this point in the history
  • Loading branch information
zekisherif committed Jul 24, 2023
1 parent 26c627d commit 0e5f116
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/v2_search_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import (
// }
type SearchFilter struct {
*TimeFilter `json:"timeFilter,omitempty"`
*ResourceGroupFilter `json:"resourceGroupFilter,omitempty"`
Filters []Filter `json:"filters,omitempty"`
Returns []string `json:"returns,omitempty"`
}
Expand All @@ -59,6 +60,10 @@ type TimeFilter struct {
EndTime *time.Time `json:"endTime,omitempty"`
}

type ResourceGroupFilter struct {
Guids []string `json:"guids,omitempty"`
}

type SearchResponse interface {
GetDataLength() int
}
Expand Down

0 comments on commit 0e5f116

Please sign in to comment.