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.



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

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



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

def action_metrics
  @action_metrics
end

#overall_metricsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution

Score distribution. Corresponds to the JSON property overallMetrics



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

def overall_metrics
  @overall_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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