AvrelDocs

Annotations

An annotation is a note on your data: what happened at a moment, or over a span, on one reading, a recording, a saved run or an incident. It can carry a follow-up for someone in your team, so the question raised by a test stays next to the readings that raised it.

What an annotation is on#

Each annotation marks one moment, or a span from a start time to an end time, on one of these:

OnWhat it names
A channelOne reading of one system (for example supply_rail_v on rig-2), wherever it is shown: live readings, imported history or a full-rate recording of that system.
A recordingA full-rate recording, and optionally one reading in it.
A saved runA saved run, and optionally one reading in it.
An incidentA recorded incident, and optionally one reading in it.

Times are seconds since the epoch, the same times that the readings use. A note can be up to 4,000 characters.

Add an annotation#

Owners, engineers and site operators add annotations. Viewers and auditors read them. See Roles.

In Explore, press Add note above the panes, then click a chart for one moment or drag across it for a span. Choose the reading, write the note and, if someone should act on it, choose who and when it is due. Press Esc to stop without adding one. A note on a saved run open in a tab is kept on that run; any other note is on the reading, so it shows wherever that reading is charted.

In an incident's replay, Add note marks the replay position, or the range you zoomed into. The note is on the incident, on one reading or on all of them.

Notes are drawn on the charts: a line at a moment, or a shaded band over a span, with a small flag at the top. Click the flag or the line to open the note in the side panel. In an incident, the notes are also listed under the charts.

From an AI assistant, ask in your own words, for example "note that the supply rail dip on rig-2 at 14:02 was the bench supply being swapped". The assistant calls add_annotation, and the note shows the assistant's key or connection name next to yours, for example "Sam Patel (via Claude)".

Over the API, send POST /api/customers/<org>/annotations with:

FieldRequiredMeaning
onYeschannel, recording, run or incident
unit_idFor a channelThe system
channelFor a channelThe reading's name, as it appears in the charts and in get_telemetry
target_idFor a recording, run or incidentIts id (rec_..., run_... or the incident's id)
t0YesThe moment, or the start of the span
t1NoThe end of the span
noteYesThe note
assignee, dueNoA follow-up

Avrel checks that the system, recording, run or incident belongs to your organization before it saves the note.

Follow-ups#

Give an annotation an assignee to make it a follow-up: something a person in your team should act on. A follow-up is open until it is marked done, and can have a due date. The person it is given to gets an email, unless they gave it to themselves.

  • Anyone who can add annotations can give one a follow-up, change who it is for or when it is due, mark it done, reopen it, or take the follow-up off. The note stays when the follow-up is taken off.
  • A follow-up goes to a member who can add annotations: an owner, engineer or site operator.
  • An assistant names the assignee as me (the person who made the key or connection), by their user id, or by their full name.

Over the API, send POST /api/customers/<org>/annotations/<id>/follow-up with any of assignee, due (YYYY-MM-DD, or empty to clear it) and status (open, done or none). Giving a done follow-up a new assignee opens it again. Assistants use set_annotation_follow_up.

To link an annotation to a deviation, add a follow-up to the deviation of kind annotation with the annotation's id.

Find annotations#

The Annotations page in the sidebar lists every note, latest first. Search by the words in a note, the reading's name or a person's name, or show only Follow-ups for me, open or done follow-ups. The number next to Annotations in the sidebar is how many follow-ups are open for you. Click a row to open the note; Show in Explore opens its reading around that moment in a new tab.

GET /api/customers/<org>/annotations, or list_annotations for an assistant, lists annotations earliest first in time. Narrow it with any of:

  • on and target_id: one recording, run or incident;
  • unit_id and channel: one system or one reading (notes on the whole system or item are included);
  • from and to: notes that overlap a time window;
  • state: note (no follow-up), open, done, or follow_up for both;
  • assignee: me, or a member;
  • q: words in the note, the reading's name, or the name of the person who wrote it or has the follow-up;
  • order: recent for the latest first.

The list also counts open follow-ups, yours, and those past their due date.

Change or remove an annotation#

Open a note in the side panel to change it. Edit note, Add follow-up, Change follow-up, Mark done, Reopen, Remove follow-up and Remove note are shown to the people who can use them.

Only the person who wrote a note changes its text or its times, themselves or through their own assistant (update_annotation, or POST /api/customers/<org>/annotations/<id>). Others can add a note of their own beside it.

The person who wrote a note, or an owner, removes it with POST /api/customers/<org>/annotations/<id>/remove, optionally with a reason. A removed note is no longer listed or shown, and stays in the database with who removed it, when and why. Assistants cannot remove notes.

In the audit log#

Adding, changing, following up and removing an annotation are each recorded in the audit log, with the annotation's id, what it is on, its times and its follow-up, and the state it moved from and to (see Lifecycles). The text of the note is not copied into the log.