# Google Cloud Recaptcha Enterprise V1 Client - Class ChallengeMetrics (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.3 2.0.1 1.17.2 1.16.1 1.15.0 1.14.0 1.13.0 1.12.2 1.8.0 1.7.0 1.6.0 1.5.2 1.4.2 1.3.2 1.2.6 Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class ChallengeMetrics.

Metrics related to challenges.

Generated from protobuf message `google.cloud.recaptchaenterprise.v1.ChallengeMetrics`

## Namespace

Google \\ Cloud \\ RecaptchaEnterprise \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ pageload_count` | `int|string` Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent to a count of pageloads for pages that include reCAPTCHA. |
| `↳ nocaptcha_count` | `int|string` Count of nocaptchas (successful verification without a challenge) issued. |
| `↳ failed_count` | `int|string` Count of submitted challenge solutions that were incorrect or otherwise deemed suspicious such that a subsequent challenge was triggered. |
| `↳ passed_count` | `int|string` Count of nocaptchas (successful verification without a challenge) plus submitted challenge solutions that were correct and resulted in verification. |

### getPageloadCount

Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
to a count of pageloads for pages that include reCAPTCHA.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setPageloadCount

Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
to a count of pageloads for pages that include reCAPTCHA.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNocaptchaCount

Count of nocaptchas (successful verification without a challenge) issued.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setNocaptchaCount

Count of nocaptchas (successful verification without a challenge) issued.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFailedCount

Count of submitted challenge solutions that were incorrect or otherwise
deemed suspicious such that a subsequent challenge was triggered.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setFailedCount

Count of submitted challenge solutions that were incorrect or otherwise
deemed suspicious such that a subsequent challenge was triggered.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPassedCount

Count of nocaptchas (successful verification without a challenge) plus
submitted challenge solutions that were correct and resulted in
verification.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setPassedCount

Count of nocaptchas (successful verification without a challenge) plus
submitted challenge solutions that were correct and resulted in
verification.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |