Skip to main content

previewEventDestination

List the organization's recent audit log events that a filter and a condition match, newest first. Use it to check a filter and condition before you create or change a destination with them.

The condition runs on each page after the filter selects it, so a page can hold fewer items than limit. Follow cursor.next until it is null to see every match. If the condition cannot run on an event, the preview stops at that event and returns an error that names it. Events after it are not checked.

query {
previewEventDestination(organizationId: "my-org", filter: { types: ["deployment.*"] }) {
items {
id
type
occurredAt
}
}
}
previewEventDestination(
organizationId: ID!
filter: EventFilterInput!
condition: String
cursor: Cursor
): AuditLogsPage

Arguments​

previewEventDestination.organizationId ● ID! non-null scalar {#organization-id}​

Your organization's unique identifier.

previewEventDestination.filter ● EventFilterInput! non-null input {#filter}​

The filter to check.

previewEventDestination.condition ● String scalar {#condition}​

A jq expression to check with the filter. The event matches when it outputs true.

previewEventDestination.cursor ● Cursor input {#cursor}​

Pagination cursor from a previous response.

Type​

AuditLogsPage object​