metrics
Creates, updates, deletes, gets or lists a metrics resource.
Overview
| Name | metrics |
| Type | Resource |
| Id | cloudflare.r2.metrics |
Fields
The following fields are returned by SELECT queries:
- list
Get Account-Level Metrics response.
| Name | Datatype | Description |
|---|---|---|
infrequentAccess | object | Metrics based on what state they are in(uploaded or published). |
standard | object | Metrics based on what state they are in(uploaded or published). |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Get Storage/Object Count Metrics across all buckets in your account. Note that Account-Level Metrics may not immediately reflect the latest data. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
SELECT examples
- list
Get Storage/Object Count Metrics across all buckets in your account. Note that Account-Level Metrics may not immediately reflect the latest data.
SELECT
infrequentAccess,
standard
FROM cloudflare.r2.metrics
WHERE account_id = '{{ account_id }}' -- required
;