curl --request POST \
--url https://api.example.com/api/events/filter \
--header 'Content-Type: application/json' \
--data '
{
"filter": {
"occurred": {
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z"
},
"event": {
"prefix": [
"<string>"
],
"exclude_prefix": [
"<string>"
],
"name": [
"<string>"
],
"exclude_name": [
"<string>"
]
},
"resource": {
"id": [
"<string>"
],
"id_prefix": [
"<string>"
],
"labels": {},
"distinct": false
},
"related": {
"id": [
"<string>"
],
"role": [
"<string>"
],
"resources_in_roles": [
"<array>"
],
"labels": {}
},
"any_resource": {
"id": [
"<string>"
],
"id_prefix": [
"<string>"
],
"labels": {}
},
"id": {
"id": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"text": {
"query": "<string>"
},
"order": "DESC"
},
"limit": 50
}
'{
"events": [
{
"occurred": "2023-11-07T05:31:56Z",
"event": "<string>",
"resource": {},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"related": [
{}
],
"payload": {},
"follows": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"received": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"next_page": "<string>"
}Queries for Events matching the given filter criteria in the given Account. Returns the first page of results, and the URL to request the next page (if there are more results).
curl --request POST \
--url https://api.example.com/api/events/filter \
--header 'Content-Type: application/json' \
--data '
{
"filter": {
"occurred": {
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z"
},
"event": {
"prefix": [
"<string>"
],
"exclude_prefix": [
"<string>"
],
"name": [
"<string>"
],
"exclude_name": [
"<string>"
]
},
"resource": {
"id": [
"<string>"
],
"id_prefix": [
"<string>"
],
"labels": {},
"distinct": false
},
"related": {
"id": [
"<string>"
],
"role": [
"<string>"
],
"resources_in_roles": [
"<array>"
],
"labels": {}
},
"any_resource": {
"id": [
"<string>"
],
"id_prefix": [
"<string>"
],
"labels": {}
},
"id": {
"id": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"text": {
"query": "<string>"
},
"order": "DESC"
},
"limit": 50
}
'{
"events": [
{
"occurred": "2023-11-07T05:31:56Z",
"event": "<string>",
"resource": {},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"related": [
{}
],
"payload": {},
"follows": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"received": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"next_page": "<string>"
}Additional optional filter criteria to narrow down the set of Events
Show child attributes
Filter criteria for the event name
Show child attributes
Only include events matching one of these prefixes
Exclude events matching one of these prefixes
Only include events matching one of these names exactly
Exclude events matching one of these names exactly
Filter criteria for the resource of the event
Show child attributes
Only include events for resources with these IDs
Only include events for resources with IDs starting with these prefixes.
Only include events for distinct resources
Filter criteria for the related resources of the event
Show child attributes
Only include events for related resources with these IDs
Only include events for related resources in these roles
Only include events with specific related resources in specific roles
2 elementsFilter criteria for any resource involved in the event
Show child attributes
Only include events for resources with these IDs
Only include events for resources with IDs starting with these prefixes
The order to return filtered events
ASC, DESC The number of events to return with each page
0 <= x <= 50Successful Response
A single page of events returned from the API, with an optional link to the next page of results
The Events matching the query
Show child attributes
When the event happened from the sender's perspective
The name of the event that happened
The client-provided identifier of this event
An open-ended set of data describing what happened
The ID of an event that is known to have occurred prior to this one. If set, this may be used to establish a more precise ordering of causally-related events when they occur close enough together in time that the system may receive them out-of-order.
When the event was received by Prefect Cloud
The total number of matching Events
The URL for the next page of results, if there are more
1Was this page helpful?