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.



1621
1622
1623
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1621

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



1614
1615
1616
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1614

def action_metrics
  @action_metrics
end

#overall_metricsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution

Score distribution. Corresponds to the JSON property overallMetrics



1619
1620
1621
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1619

def overall_metrics
  @overall_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1626
1627
1628
1629
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1626

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