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

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.
startTimestringInclusive start time aligned to a day (UTC).

Methods

NameAccessible byRequired ParamsDescription
get_metricsSELECTkeysId, projectsIdGet some aggregated metrics for a Key. This data can be used to build dashboards.

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 keysId = '{{ keysId }}'
AND projectsId = '{{ projectsId }}';