- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization scopes
 - IAM Permissions
 - ScoreMetrics
 - ScoreDistribution
 - ChallengeMetrics
 
Get some aggregated metrics for a Key. This data can be used to build dashboards.
HTTP request
GET https://recaptchaenterprise.googleapis.com/v1/{name=projects/*/keys/*/metrics}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name | 
                
                   
 Required. The name of the requested metrics, in the format   | 
              
Request body
The request body must be empty.
Response body
Metrics for a single Key.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{ "name": string, "startTime": string, "scoreMetrics": [ { object (  | 
                  
| Fields | |
|---|---|
name | 
                    
                       
 Output only. Identifier. The name of the metrics, in the format   | 
                  
startTime | 
                    
                       
 Inclusive start time aligned to a day in the America/Los_Angeles (Pacific) timezone. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
                  
scoreMetrics[] | 
                    
                       
 Metrics are continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.  | 
                  
challengeMetrics[] | 
                    
                       
 Metrics are continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have challenge-based data.  | 
                  
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name resource:
recaptchaenterprise.metrics.get
For more information, see the IAM documentation.
ScoreMetrics
Metrics related to scoring.
| JSON representation | 
|---|
{ "overallMetrics": { object (  | 
              
| Fields | |
|---|---|
overallMetrics | 
                
                   
 Aggregated score metrics for all traffic.  | 
              
actionMetrics | 
                
                   
 Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call. An object containing a list of   | 
              
ScoreDistribution
Score distribution.
| JSON representation | 
|---|
{ "scoreBuckets": { integer: string, ... } }  | 
              
| Fields | |
|---|---|
scoreBuckets | 
                
                   
 Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10). An object containing a list of   | 
              
ChallengeMetrics
Metrics related to challenges.
| JSON representation | 
|---|
{ "pageloadCount": string, "nocaptchaCount": string, "failedCount": string, "passedCount": string }  | 
              
| Fields | |
|---|---|
pageloadCount | 
                
                   
 Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent to a count of pageloads for pages that include reCAPTCHA.  | 
              
nocaptchaCount | 
                
                   
 Count of nocaptchas (successful verification without a challenge) issued.  | 
              
failedCount | 
                
                   
 Count of submitted challenge solutions that were incorrect or otherwise deemed suspicious such that a subsequent challenge was triggered.  | 
              
passedCount | 
                
                   
 Count of nocaptchas (successful verification without a challenge) plus submitted challenge solutions that were correct and resulted in verification.  |