Skip to content

Remove arbitrary numeric keys from OxQL timeseries data#2890

Merged
david-crespo merged 2 commits into
mainfrom
update-oxql-metrics-shape
Aug 20, 2025
Merged

Remove arbitrary numeric keys from OxQL timeseries data#2890
david-crespo merged 2 commits into
mainfrom
update-oxql-metrics-shape

Conversation

@charliepark

Copy link
Copy Markdown
Contributor

Per oxidecomputer/omicron#8842, this updates the expected data shape for OxQL data in the web console.

Closes #2889

@vercel

vercel Bot commented Aug 19, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
console Ready Ready Preview Aug 19, 2025 9:11pm

@david-crespo

Copy link
Copy Markdown
Collaborator

I expected there to be type errors in the application code. Could you see why there aren't any?

@david-crespo

Copy link
Copy Markdown
Collaborator

Ah, I think it's because we're using Object.values in those places, which is just the identity function on an array. I'd take out the Object.values for clarity.

image

const timeseriesData = Object.values(data.tables[0].timeseries)

for (const ts of Object.values(table.timeseries)) {

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.

Update OxQL calls for API change

2 participants