Skip to main content

CreateEventDestinationInput

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

input CreateEventDestinationInput {
adapter: EventDestinationAdapter!
attributes: Map
auth: Map
condition: String
config: Map!
eventTypes: [String!]
name: String!
}

Fields​

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

How the destination receives events. eventDestinationAdapters lists each adapter and the settings it takes.

CreateEventDestinationInput.attributes ● Map scalar {#attributes}​

Attribute values that the event's entity must have had when the event happened. An event must have all of them. Leave it empty to receive events of any attributes. For other logic, use the condition.

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 event types and attributes select. The event is sent only when it outputs true. The CloudEvent's data holds the entity, its attributes (such as md-environment), and the event's metadata. 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.eventTypes ● [String!] list scalar {#event-types}​

The event types the destination receives, or <entity>.* for every event of an entity. Leave it empty to receive every event. The eventTypes query lists the event types.

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

Name of the destination, unique in the organization.

Member Of​

createEventDestination mutation