Patch downloads for an app over a window.
Returns patch downloads for the app over a time window — summed over hourly counts — as a current/previous envelope, identical in shape to patch-installs: current covers the effective window, previous the equal-length window immediately preceding it. With granularity set, each window carries a time_series; with group_by=release set, current carries a per-release breakdown. previous never carries a breakdown. The window defaults to the last 28 days and starts no earlier than 2025-04-01, when counting began; the effective range is echoed in each window's range.
Request
- Base URLhttps://api.shorebird.dev/api/v1
- Auth
- HTTP bearer
- or HTTP bearer
Query parameters
Window start (UTC, inclusive). Defaults to end minus 28 days.
Window end (UTC, exclusive). Defaults to now. A window "ending now" must omit this parameter rather than send a client-computed timestamp — clock skew would silently turn the request into a historical query.
The bucket resolution of a metrics time series.
Bucket resolution for the time series. Omitted ⇒ no time_series (one summed value per window); set ⇒ one point per bucket at this resolution. When set, the window length is rounded down to a whole multiple of the bucket size (echoed in range), which guarantees current and previous have equal bucket counts.
Dimension to break the total down by. Omitted ⇒ no breakdown. App scope breaks down by release.
Response
The patch-downloads metric for the app.
Changes
No recorded changes to this operation across all 1 revision of this API.