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

# event_type

The type of the message’s event.

## Declaration

```swift
var event_type: es_event_type_t
```

## Discussion

Discussion Use this value to determine how to access the event field, which is a union of all the possible event types.

## See Also

### Identifying the Matched Event

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