Skip to content

Commit 055650d

Browse files
committed
Modernised the collector_config schema description
1 parent e8b9121 commit 055650d

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

database/schema.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,18 @@ Columns:
298298

299299
### collector_config
300300

301-
Information about the collector; it's target architecture, when it was added, whether it is active and when it last had activity denoted by `last_heartbeat_at`.
301+
Information about the collector; it's target architecture, when it was added,
302+
whether it is active and when it last had activity denoted by `last_heartbeat_at`.
302303

303-
```
304-
sqlite> SELECT * FROM collector_config;
304+
Columns:
305305

306-
id target name date_added last_heartbeat_at benchmark_set is_active
307-
--------- ------------------------- ---- ------------- ---------------- --------- -------
308-
1 aarch64-unknown-linux-gnu foo 2025-06-11... 2025-06-12 17... 2 0
309-
```
306+
* **id** (`id`): A unique identifier for the collector.
307+
* **target** (`text NOT NULL`): The ISA of the collector for example; `AArch64`.
308+
* **name** (`text NOT NULL`): Unique name for the collector.
309+
* **date_added** (`timestamptz NOT NULL`): When the collector was added
310+
* **last_heartbeat_at** (`timestamptz`): When the collector last updated this
311+
column, a way to test if the collector is still alive.
312+
* **benchmark_set** (`int NOT NULL`): ID of the predefined benchmark suite to
313+
execute.
314+
* **is_active** (`boolean NOT NULL`): For controlling whether the collector is
315+
active for use. Useful for adding/removing collectors.

0 commit comments

Comments
 (0)