AlertEvent
No description
type AlertEvent implements Node {
id: ID!
ruleID: ID!
status: AlertEventAlertEventStatus!
alertType: AlertEventAlertType!
severity: AlertEventAlertSeverity!
subject: String!
body: String!
context: Map
recipients: [String!]!
channelType: String!
sentAt: Time
errorMessage: String
resourceType: AlertEventAlertResourceType!
resourceID: String
ownerID: String!
readAt: Time
createdAt: Time!
rule: AlertRule!
}
Fields
AlertEvent.id ● ID! non-null scalar
AlertEvent.ruleID ● ID! non-null scalar
Foreign key to the rule that triggered this event
AlertEvent.status ● AlertEventAlertEventStatus! non-null enum
Delivery status: pending, sent, failed, suppressed, recorded
AlertEvent.alertType ● AlertEventAlertType! non-null enum
Alert type (denormalized from rule)
AlertEvent.severity ● AlertEventAlertSeverity! non-null enum
Severity (denormalized from rule)
AlertEvent.subject ● String! non-null scalar
Alert subject/title
AlertEvent.body ● String! non-null scalar
Alert body content (plain text)
AlertEvent.context ● Map scalar
Event context data (bot ID, trade details, metrics, etc.)
AlertEvent.recipients ● [String!]! non-null scalar
Actual recipients at time of send
AlertEvent.channelType ● String! non-null scalar
Delivery channel type: email (webhook, push reserved for future)
AlertEvent.sentAt ● Time scalar
When the alert was actually delivered
AlertEvent.errorMessage ● String scalar
Error message if delivery failed
AlertEvent.resourceType ● AlertEventAlertResourceType! non-null enum
Type of resource that triggered alert
AlertEvent.resourceID ● String scalar
Resource ID - UUID for bot/strategy/runner, or organization alias for org-level events
AlertEvent.ownerID ● String! non-null scalar
Organization ID
AlertEvent.readAt ● Time scalar
When the alert was read by the user
AlertEvent.createdAt ● Time! non-null scalar
AlertEvent.rule ● AlertRule! non-null object
Interfaces
Node interface
An object with an ID. Follows the Relay Global Object Identification Specification
Returned By
alertEventCreated subscription ● markAlertEventAsRead mutation
Member Of
AlertEventEdge object