get_vitals_freshness
Check vitals data freshness before querying to pick an end_date that returns crash, ANR, and error metrics, handling metric sets with no data gracefully.
Instructions
Check how fresh Android vitals data is before querying it. Returns each requested metric set with freshnessInfo.freshnesses[], giving the latest end time available per aggregation period (DAILY, HOURLY) — use it to pick an end_date the query_* tools will actually return rows for, since vitals data typically lags about a day. Defaults to the crash, ANR and error count metric sets. A metric set with no data for this app (slowRenderingRateMetricSet is games-only, for example) comes back with an error field instead of freshnessInfo rather than failing the whole call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_sets | No | Metric sets to check (default: crashRateMetricSet, anrRateMetricSet, errorCountMetricSet) | |
| package_name | No | App package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME) |