You can create a custom event for an application.
Steps
mutation {
createEvent(input: {
eventName: String
eventType: String
# ID of the application this event is for
application: String
# Who can subscribe to this event. True if anyone, else false
public: Boolean
# A message in Protocol buffer format. If not provided, defaults to custom message
# (ex. message JobCompleted { string job_id = 10; string timestamp_ms = 11; # string job_status = 12; } )
schemaData: Protobuf
})
{
id
eventName
eventType
public
description
schemaData
}
}
The response looks like this:
{
"data": {
"createEvent": {
"id": "54336641-0e17-473c-b329-4c21417cb075",
"eventName": "test-event",
"eventType": "test-event-start",
"public": true,
"description": "",
"schemaData": ""
}
}
}