Skip to main content

Module usage

Module usage 

Source
Expand description

Wire format of the daily usage snapshot a client sends to the cloud.

Structs§

UsageRow
UsageSnapshot

Constants§

MAX_DAY_AGE
Oldest day, counted back from today, that a snapshot may still change.
MAX_SKILL_LEN
Longest skill name, in bytes.
MAX_SNAPSHOT_ROWS
Most rows one snapshot may carry.

Functions§

is_skill_char
Characters a skill name may use: a program’s basename, never its arguments.
skill_name
The name usage is stored under: the program’s basename, never its arguments. Some records hold whole shell lines (paths, tokens, URLs) that must not be kept.