Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spanner functionality to store and retrieve daily UMA metrics #674

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

jcscottiii
Copy link
Collaborator

This change builds on the landed schema changes in #665.

Background:

This change adds functionality store daily metrics from UMA export server. To prevent redundant requests, we also store a capstone (similar to ChromeStatus). The capstone lets us know if we already processed data from the UMA server for a given day.

Table: DailyChromiumHistogramMetrics

  • Implements the writeableEntityMapper interface
  • Exposes one method:
    • UpsertDailyChromiumHistogramMetric - to upsert the metric for a given histogram enum value

Table: DailyChromiumHistogramEnumCapstones

  • Implements the writeableEntityMapper interface
  • Exposes two methods:
    • HasDailyChromiumHistogramCapstone - to check if the metrics for a given day have already been processed.
    • UpsertDailyChromiumHistogramCapstone - for inserting the capstone for a given day.

Part of splitting up #616

This change builds on the landed schema changes in #665.

Background:

This change adds functionality store daily metrics from UMA export server.
To prevent redundant requests, we also store a capstone (similar to ChromeStatus). The
capstone lets us know if we already processed data from the UMA server for a given day.

Table: DailyChromiumHistogramMetrics
- Implements the writeableEntityMapper interface
- Exposes one method:
  - UpsertDailyChromiumHistogramMetric - to upsert the metric for a given histogram enum value

Table: DailyChromiumHistogramEnumCapstones
- Implements the writeableEntityMapper interface
- Exposes two methods:
  - HasDailyChromiumHistogramCapstone - to check if the metrics for a given day have already been processed.
  - UpsertDailyChromiumHistogramCapstone - for inserting the capstone for a given day.

Part of splitting up #616
@jcscottiii jcscottiii added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit 1fe8ed2 Sep 18, 2024
3 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/daily-spanner-metrics branch September 18, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants