1""" 2An Event is the encapsulating type sent across the Sensu websocket transport. 3""" 4type Event implements Node, Namespaced, Silenceable, Resource { 5 "The globally unique identifier of the record." 6 id: ID! 7 8 "namespace in which this record resides" 9 namespace: String! 10 11 "metadata contains name, namespace, labels and annotations of the record" 12 metadata: ObjectMeta! 13 14 "Timestamp is the time in seconds since the Epoch." 15 timestamp: DateTime! 16 17 "Entity describes the entity in which the event occurred." 18 entity: Entity 19 20 """ 21 Check describes the result of a check; if event is associated to check 22 execution. 23 """ 24 check: Check 25 26 """ 27 Hooks describes the results of multiple hooks; if event is associated to hook 28 execution. 29 """ 30 hooks: [Hook!] 31 32 "isIncident determines if an event indicates an incident." 33 isIncident: Boolean! 34 35 """ 36 isNewIncident returns true if the event is an incident but it's previous 37 iteration was OK. 38 """ 39 isNewIncident: Boolean! 40 41 "isResolution returns true if an event has just transitions from an incident." 42 isResolution: Boolean! 43 44 """ 45 wasSilenced reflects whether the event was silenced when passing through the pipeline. 46 """ 47 wasSilenced: Boolean! 48 49 "isSilenced determines if an event has any silenced entries." 50 isSilenced: Boolean! 51 52 "all current silences matching the check and entity's subscriptions." 53 silences: [Silenced!]! 54 55 "Silenced is a list of silenced entry ids (subscription and check name)" 56 silenced: [String] 57 58 """ 59 toJSON returns a REST API compatible representation of the resource. Handy for 60 sharing snippets that can then be imported with `sensuctl create`. 61 """ 62 toJSON: JSON! 63} 64 65"A connection to a sequence of records." 66type EventConnection { 67 nodes: [Event!]! 68 pageInfo: OffsetPageInfo! 69} 70 71"Describes ways in which a list of events can be ordered." 72enum EventsListOrder { 73 LASTOK 74 NEWEST 75 OLDEST 76 SEVERITY 77} 78