---
sidebar:
  hidden: true
title: roboto.domain.events.record
---
## Module Contents

### EventRecord

```python
class roboto.domain.events.record.EventRecord(/, **data: Any)
```

`from roboto import EventRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/events/record.py#L17-L116)

Bases: `pydantic.BaseModel`

Data record of an event, as the Roboto API returns it.

An event is an annotation that ties datasets, files, topics, or message paths to a span of time, such as a takeoff or a crash. [`Event`](/docs/reference/python-sdk/roboto/domain/events/event#roboto.domain.events.event.Event) wraps this record with methods that act on the event, and exposes it as [`record`](/docs/reference/python-sdk/roboto/domain/events/event#roboto.domain.events.event.Event.record).

**Parameters**

- **data** (`Any`)

**Attributes**

- **EventRecord.associations** (`list[roboto.association.Association]`) = `None`: Datasets, files, topics, and message paths the event annotates.

- **EventRecord.created** (`datetime.datetime`): Time the event was created.

- **EventRecord.created_by** (`str`): Principal that created the event, as `<type>:<id>`, such as `user:<user_id>`.

- **EventRecord.custom_fields** (`dict[str, Any]`) = `None`: Values of the custom fields the organization defines for events, keyed by field name.

  Every event custom field in the [`Ready`](/docs/reference/python-sdk/roboto/domain/custom_fields/record#roboto.domain.custom_fields.record.CustomFieldStatus.Ready) state appears as a key, mapped to `None` when the event has no value for it. Fields in any other state are absent, so the map is empty when no event custom field is in that state.

- **EventRecord.description** (`str | None`) = `None`: Human-readable description of the event, or `None` if it has none.

- **EventRecord.display_options** (`roboto.domain.events.operations.EventDisplayOptions | None`) = `None`: How the Roboto web app displays the event, such as its color, or `None` if no display options are set.

- **EventRecord.end_time** (`int`): End of the event's time span, in nanoseconds since the Unix epoch.

  Equal to `start_time` for an event at a single point in time, and never earlier than `start_time`.

- **EventRecord.event_id** (`str`): Unique ID of the event, beginning with `ev_`.

- **EventRecord.metadata** (`dict[str, Any]`) = `None`: Key-value metadata on the event.

- **EventRecord.modified** (`datetime.datetime`): Time the event was last modified.

- **EventRecord.modified_by** (`str`): Principal that last modified the event, in the same `<type>:<id>` form as `created_by`.

- **EventRecord.name** (`str`): Human-readable name of the event, such as `"Takeoff"` or `"CPU Spike"`.

  Roboto does not require names to be unique, so many events can share one.

- **EventRecord.org_id** (`str`): ID of the organization that owns the event.

- **EventRecord.start_time** (`int`): Start of the event's time span, in nanoseconds since the Unix epoch.

- **EventRecord.tags** (`list[str]`) = `None`: Tags on the event.
