AlarmEvent
A lifecycle event for a cloud metric alarm attached to an instance.
Emitted when an alarm is registered, reconfigured, removed, or when its
firing state changes (e.g., OK → ALARM). State transitions surface as
UPDATED — read the latest status from alarm.currentState. Subscribe via
environmentEvents or instanceEvents.
type AlarmEvent implements Event {
action: EventAction!
timestamp: DateTime!
alarm: Alarm!
}
Fields
AlarmEvent.action ● EventAction! non-null enum {#action}
AlarmEvent.timestamp ● DateTime! non-null scalar {#timestamp}
AlarmEvent.alarm ● Alarm! non-null object {#alarm}
The alarm that was created, updated, or deleted.
Interfaces
Event interface
Base interface implemented by all lifecycle events.
Every event carries an action describing what happened and a timestamp recording
when it occurred. Concrete event types add a field for the affected resource.
Because each subscription returns a union, use an ... on Event fragment to
access the shared fields and concrete fragments for the resource payload:
subscription {
projectEvents(organizationId: "my-org", projectId: "my-project") {
... on Event { action timestamp }
... on ComponentEvent {
component { id name }
}
... on LinkEvent {
link { id fromField toField }
}
}
}
Implemented By
EnvironmentEventsPayload union ● InstanceEventsPayload union