OBJECT
EventActionTemplate
link GraphQL Schema definition
1 type EventActionTemplate { 2 3 ID! : 4 5 # The name of template. e.g. "Run engine X for every new mention in a watchlist". 6 String! : 7 8 # owner of the template 9 ID! : 10 11 # Application this template could be applied to. If application_id is null, then 12 # this is an org-wide template. 13 ID : 14 15 # use "event" for now. In the future, we allow additional input_type types. For 16 # example, a schedule or a tweet. 17 EventActionTemplateInputType! : 18 19 # based on the input_type, input_validation describes additional validations. For 20 # example, if input_type is "event", input_validation could be a list of allowed 21 # events. 22 JSONData : 23 24 # A JSON structure that is compatible/specific to the input_type. For example, if 25 # input type is "event", then input_attributes simply contain the entire event 26 # payload. 27 JSONData : 28 29 # Either "job", "webhook", "sms", "email". Future action_type could be "gql" 30 # where action is purely a function call. 31 EventActionTemplateActionType! : 32 33 # Allows you to specify validation for the action_type. For example, if 34 # action_type is "job", perhaps only whitelist a list of engines that could be 35 # called. 36 JSONData : 37 38 # dedicated column to specify where/what the action is taking place. For example, 39 # if action is a job, then destination is an engine_id. For webhook, a uri. 40 String! : 41 42 # A JSON structure that is compatible with action_type. For example, if 43 # action_type is "webhook", action_attributes contain the mustache compatible 44 # template to format the content. If action_type is "job", then action_attributes 45 # need to specify a job template. 46 JSONData : 47 48 }
link Required by
- EventActionTemplateList
- MutationMutations are used to modify data. Each mutation takes an input that contains the data necessary to create or update the data in question.
- QueryQueries are used to retrieve data. If you're new to our API, try the `me` query to explore the information you have access to. Hit `ctrl-space` at any time to activate field completion hints, and mouse over a field or parameter to see its documentation.