# Event

## class nominal.Event

A time-based annotation on one or more assets.

Events flag a moment or interval: a fault, a phase boundary, an
anomaly. Created from a client:

```matlab
e = c.createEvent("<asset rid>", "overspeed", ...
                  Type="error", Duration=seconds(10));
```

Events attach to **assets**, not to runs or datasets. A run shows the
events whose time falls within it.

> **See also**
>
> [`nominal.Client`](https://dev.nominal.io/matlab/ref/Client.md#nominal.Client "nominal.Client"), [`nominal.Asset`](https://dev.nominal.io/matlab/ref/Asset.md#nominal.Asset "nominal.Asset")

Constructor Summary

Property Summary
:   ### Rid

    Resource identifier.

    ### Name

    Display name.

    ### Type

    “info”, “flag”, “error”, or “success”.

    ### Timestamp

    When it occurred, UTC.

    ### Duration

    How long it spans; zero for an instant.

    ### AssetRids

    Assets it is attached to.

    ### Properties

    All properties, as a containers.Map.

Method Summary
:   ### property(key)

    Value of one property. Errors if the key is absent.

    Returns:
    :   *string* – The property’s value.
