<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_message_t/event",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@SA@es_message_t@FI@event"
  },
  "title" : "event"
}
-->

# event

The event that triggered this message.

```
var event: es_events_t
```

## Discussion

Use the [`event_type`](/documentation/EndpointSecurity/es_message_t/event_type) property to determine which member of this [`es_events_t`](/documentation/EndpointSecurity/es_events_t) union is available. For example, if the type is [`ES_EVENT_TYPE_NOTIFY_FORK`](/documentation/EndpointSecurity/ES_EVENT_TYPE_NOTIFY_FORK), use the [`fork`](/documentation/EndpointSecurity/es_events_t/fork) member.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)