Work / AskCal / Wiki / Entities
source-firebase
Entitycanonicalverified 2026-10-25
SOURCE.FIREBASESummary
Request logs of the one backend function, api, on Firebase (Cloud Run, asia-south1).
Canonical values
| Key | Value | Last changed |
|---|---|---|
| SOURCE.FIREBASE.PROJECT | askcal-app |
2026-10-25 |
| SOURCE.FIREBASE.SERVICE | Cloud Run service api (Functions v2) |
2026-10-25 |
| SOURCE.FIREBASE.ACCESS | cli: gcloud | 2026-10-25 |
How to query
Read only, counts only. Never pull user ids, IPs or request bodies.
"How many scans a day?" — count requests to
/api/scan,/api/estimate/textand/api/bill. The query is in 2026-10-25-cloud-logging-api-requests."Does the backend fail?" — the same query, grouped by
httpRequest.status."What is live?" —
firebase functions:list --project askcal-app."How many scans of each kind, and what do they cost?" — every fresh, billed estimate writes one
event: "estimate"line (route, plan, model, token counts; never the user). Count them, and price the tokens with scan-cost. Live from the first functions deploy after 2026-10-25:gcloud logging read 'resource.labels.service_name="api" AND jsonPayload.event="estimate"' \ --project askcal-app --freshness=30d --limit=20000 \ --format='value(timestamp,jsonPayload.route,jsonPayload.plan,jsonPayload.model,jsonPayload.inputTokens,jsonPayload.outputTokens)'
Cannot answer: which requests are the owner's own tests.
Sources
- 2026-10-25-cloud-logging-api-requests