Skip to main content

stats

Creates, updates, deletes, gets or lists a stats resource.

Overview

Namestats
TypeResource
Idcloudflare.cloudforce_one.stats

Fields

The following fields are returned by SELECT queries:

Dashboard statistics.

NameDatatypeDescription
pending_approvalsnumber
rules_by_namespaceobject
total_rulesnumber

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idGet statistics about rules for the dashboard.

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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

SELECT examples

Get statistics about rules for the dashboard.

SELECT
pending_approvals,
rules_by_namespace,
total_rules
FROM cloudflare.cloudforce_one.stats
WHERE account_id = '{{ account_id }}' -- required
;