---
title: event
framework: endpointsecurity
role: symbol
role_heading: Instance Property
path: endpointsecurity/es_message_t/event
---

# event

The event that triggered this message.

## Declaration

```swift
var event: es_events_t
```

## Discussion

Discussion Use the event_type property to determine which member of this es_events_t union is available. For example, if the type is ES_EVENT_TYPE_NOTIFY_FORK, use the fork member.

## See Also

### Identifying the Matched Event

- [es_events_t](endpointsecurity/es_events_t.md)
- [event_type](endpointsecurity/es_message_t/event_type.md)
- [es_event_type_t](endpointsecurity/es_event_type_t.md)
