Adventure Labs Logo
Scout Docs

Battery Cycle Counts

Point-in-time cumulative cycle-count observations for battery parts

Column NameData TypeConstraints
idbigintNOT NULL
battery_idbigintNOT NULL, FK -> parts
cycle_countintegerNOT NULL, >= 0
timestamp_observationtimestamp with time zoneNOT NULL
inserted_attimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL

Rows are unique by battery and observation timestamp.

Security Policies (RLS)

RLS enabled. Access resolves through battery_id using part_content_access.

Operationhas_herd_ability ability keyOther paths
SELECTtelemetry.readOwning device API key or approved gateway
INSERTtelemetry.writeOwning device API key or approved gateway
UPDATEtelemetry.writeOwning device API key or approved gateway
DELETEtelemetry.writeOwning device API key or approved gateway

Platform superadmin: FOR ALL.

On this page