Google Cloud Recaptcha Enterprise V1 Client - Class Metrics (2.1.3)

Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class Metrics.

Metrics for a single Key.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.Metrics

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

Output only. Identifier. The name of the metrics, in the format projects/{project}/keys/{key}/metrics .

↳ start_time
Google\Protobuf\Timestamp

Inclusive start time aligned to a day in the America/Los_Angeles (Pacific) timezone.

↳ score_metrics
array< ScoreMetrics >

Metrics are continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.

↳ challenge_metrics
array< 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.

getName

Output only. Identifier. The name of the metrics, in the format projects/{project}/keys/{key}/metrics .

Returns
Type
Description
string

setName

Output only. Identifier. The name of the metrics, in the format projects/{project}/keys/{key}/metrics .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getStartTime

Inclusive start time aligned to a day in the America/Los_Angeles (Pacific) timezone.

Returns
Type
Description

hasStartTime

clearStartTime

setStartTime

Inclusive start time aligned to a day in the America/Los_Angeles (Pacific) timezone.

Parameter
Name
Description
Returns
Type
Description
$this

getScoreMetrics

Metrics are continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.

Returns
Type
Description

setScoreMetrics

Metrics are continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.

Parameter
Name
Description
var
array< ScoreMetrics >
Returns
Type
Description
$this

getChallengeMetrics

Metrics are continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have challenge-based data.

Returns
Type
Description

setChallengeMetrics

Metrics are continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE) have challenge-based data.

Parameter
Name
Description
var
array< ChallengeMetrics >
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: