endlessm / azafea

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

metrics: Add live, demo and dualboot as property of the machines #96

Closed bochecha closed 4 years ago

bochecha commented 4 years ago

That's really what they are, since they can't be changed, and they probably could have been sent by clients as request attributes rather than events.

But things are what they are, and we get them as events.

However we can still do better on the server side, by storing them as columns in the machine table, making queries much easier.

This change adds the columns, and populates them for incoming records. Commands to replay old events are also included.