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
When using /api/events/filter it's possible to match against related resources using the EventFilter object in JSON format. The EventRelatedFilter object allows us to filter the events based on a set of keys and values contained within an related resource where all fields are expected to match a related resource.
Describe the proposed behavior
It would be great if there was an additional option to search and match against multiple pairs at once.
The filter, could then be expanded with an additional attribute looking something like this:
classEventRelatedFilter(EventDataFilter):
label_pairs: Optional[List[ResourceSpecification]] =Field(
None, description="Only include events for related resources with these label pairs"
)
Describe the current behavior
When using /api/events/filter it's possible to match against related resources using the EventFilter object in JSON format. The EventRelatedFilter object allows us to filter the events based on a set of keys and values contained within an related resource where all fields are expected to match a related resource.
Describe the proposed behavior
It would be great if there was an additional option to search and match against multiple pairs at once.
The filter, could then be expanded with an additional attribute looking something like this:
Example Use
Posting to the new API might look like this:
The above would return all events that had a combination of the related resources.
Additional context
Note this is somewhat related to #16978 and a similar operator selection as described there would also be useful.
The text was updated successfully, but these errors were encountered: