mozilla / metric-hub

Central hub for metric definitions that are considered the source of truth
https://mozilla.github.io/metric-hub
Mozilla Public License 2.0
10 stars 12 forks source link

add a sample script to validate Metric Hub definitions #527

Open bochocki opened 1 month ago

bochocki commented 1 month ago

I used a script similar to this to validate definition changes in https://github.com/mozilla/metric-hub/pull/483 and https://github.com/mozilla/metric-hub/pull/523 after merging. @jmsilverman suggested it could be helpful to check the script into the repo.

Open to a discussion about whether or not this is useful and, if not, if there's something we can do instead.

bochocki commented 1 month ago

Changed to WIP so it's clear this isn't meant to be merged right now. I also addressed some of the comments.

I think that having a way to build queries from Metric Hub objects would be a useful addition to mozanalysis and would probably be more valuable than documenting a script like this somewhere.