endlessm / azafea

Service to track device activations and usage metrics
Mozilla Public License 2.0
10 stars 2 forks source link

Ingest CPU flags from ComputerInformation event #187

Closed wjt closed 5 months ago

wjt commented 5 months ago

We would like to adjust the CPU information sent by eos-metrics-instrumentation to include CPU flags: statistics about how widely-supported certain extensions are will allow the freedesktop-sdk project to quantify the impact of (for example) assuming certain x86-64 extensions are present.

Previously, events with some given UUID are expected to have a payload of one specific GVariant type, and those types are typically not something extensible like a{sv}. This is quite annoying when we want to add a new field, particularly in this CPU data which just ends up being stuffed into a JSONB column in the database.

So, allow event models to specify a tuple of accepted GVariant types; then take advantage of this in the ComputerInformation model to understand a new type with an extra string of CPU flags.

https://phabricator.endlessm.com/T35351