Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreMetrics

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb

Overview

Metrics related to scoring.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1ScoreMetrics

Returns a new instance of GoogleCloudRecaptchaenterpriseV1ScoreMetrics.



1603
1604
1605
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1603

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#action_metricsHash<String,Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution>

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call. Corresponds to the JSON property actionMetrics



1596
1597
1598
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1596

def action_metrics
  @action_metrics
end

#overall_metricsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution

Score distribution. Corresponds to the JSON property overallMetrics



1601
1602
1603
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1601

def overall_metrics
  @overall_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1608
1609
1610
1611
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1608

def update!(**args)
  @action_metrics = args[:action_metrics] if args.key?(:action_metrics)
  @overall_metrics = args[:overall_metrics] if args.key?(:overall_metrics)
end