Menu

My Dashboard Counted 12 Usage Records but Showed No Last Data Timestamp
📰

My Dashboard Counted 12 Usage Records but Showed No Last Data Timestamp

DEV Community: typescript·Yusuke Shiki·6 days ago
#kQuvojN2
#devtotypescript#devto#dev#cost#records
Long article (433 words) — no AI summary yet.
Reading 0:00
15s threshold

In August, the cost panel on my AI usage dashboard showed 12 records and an estimated $13.5935. On the same page, the “last valid data event” field said the timestamp was missing. The dashboard had counted the records. How could it have no date for the newest one? The original bug report and fix (PR #4)

Follow the records each panel reads

The dashboard is part of agent-metrics-harvester , an open-source tool that collects usage records from GitHub pull request comments. It stores them in snapshots. The 12 in the cost panel counted the individual records inside snapshots from three collection runs.

The cost calculation walked those snapshots and counted their records. The freshness calculation took a different route. It looked for a generation timestamp in two kinds of aggregate data: summaries of how usage had been assigned to tasks, and records comparing predictions with actual results. If both lists were empty, the timestamp came back null .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.