Skip to main content

keys_metrics

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

Overview

Namekeys_metrics
TypeResource
Idgoogle.recaptchaenterprise.keys_metrics

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The name of the metrics, in the format projects/{project}/keys/{key}/metrics.
challengeMetricsarrayMetrics are continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have challenge-based data.
scoreMetricsarrayMetrics are continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.
startTimestring (google-datetime)Inclusive start time aligned to a day in the America/Los_Angeles (Pacific) timezone.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_metricsselectprojectsId, keysIdGet some aggregated metrics for a Key. This data can be used to build dashboards.

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
keysIdstring
projectsIdstring

SELECT examples

Get some aggregated metrics for a Key. This data can be used to build dashboards.

SELECT
name,
challengeMetrics,
scoreMetrics,
startTime
FROM google.recaptchaenterprise.keys_metrics
WHERE projectsId = '{{ projectsId }}' -- required
AND keysId = '{{ keysId }}' -- required;