Activity¶
An Activity tracks machine usage during a time window. Each record captures a single machine's activity within a specific time span, building a daily history that can be used for Pay-Go billing and usage reporting.
The Id field is a composite key combining the Span (time window
identifier) and the Identity (the machine's UUID). The Count field
records how many times the machine was active during that span. Metadata
fields classify the activity: Platform (physical, virtual, container,
or meta), Cloud (the cloud provider if applicable), Arch (CPU
architecture such as amd64), Context (execution context such as
drpcli-runner), and OS (operating system). The Deleted flag marks
entries for machines that have been removed.
Even when Pay-Go billing is not enabled, Activity entries provide a historical record of machine utilization over time, useful for capacity planning and audit purposes.
Field¶
| Field | Definition |
|---|---|
| Arch | Arch is the architecture of the machine e.g. amd64 |
| Cloud | Cloud is the cloud it is running in if set. |
| Context | Context is the context of the machine e.g. "" or drpcli-runner |
| Count | Number of times for this entry |
| Deleted | Deleted indicates if the entry was deleted. |
| Fingerprint | Fingerprint indicates a unique machine specific identifier |
| Id | Id of the activity entry. |
| Identity | Identity is the uuid/identity of the record |
| OS | OS is the operating system of the machine - could be off |
| ObjectType | Object Type |
| Platform | Platform is type of entry Usually: meta, physical, virtual, container |
| Span | Span is the time window |
| Type | Type of the activity (from RawModel days) Should be set to activities if present |