Skip to main content

CreateEventDestinationInput

Add a destination that receives the organization's audit log events that match its filter.

input CreateEventDestinationInput {
adapter: EventDestinationAdapter!
auth: Map
condition: String
config: Map!
filter: EventFilterInput!
name: String!
}

Fields​

CreateEventDestinationInput.adapter ● EventDestinationAdapter! non-null enum {#adapter}​

How Massdriver sends events. eventDestinationAdapters lists each adapter and the settings it takes.

CreateEventDestinationInput.auth ● Map scalar {#auth}​

Credentials used to send events, in the shape of the adapter's authSchema from eventDestinationAdapters. The API never returns them.

CreateEventDestinationInput.condition ● String scalar {#condition}​

A jq expression run on each CloudEvent that the filter matches. The event is sent only when it outputs true. Use it for checks the filter cannot express, such as comparisons, or, or values inside data. It must finish within the install's timeout (1 second by default) and cannot use import, include, module, modulemeta, or get_search_list.

CreateEventDestinationInput.config ● Map! non-null scalar {#config}​

Where and how events are sent, in the shape of the adapter's configSchema from eventDestinationAdapters. The API returns it, so put credentials in auth.

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

The events the destination receives. An empty filter matches all of the organization's events.

CreateEventDestinationInput.name ● String! non-null scalar {#name}​

Name of the destination, unique in the organization.

Member Of​

createEventDestination mutation