Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ChallengeMetrics

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 challenges.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1ChallengeMetrics

Returns a new instance of GoogleCloudRecaptchaenterpriseV1ChallengeMetrics.



393
394
395
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 393

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

Instance Attribute Details

#failed_countFixnum

Count of submitted challenge solutions that were incorrect or otherwise deemed suspicious such that a subsequent challenge was triggered. Corresponds to the JSON property failedCount

Returns:

  • (Fixnum)


374
375
376
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 374

def failed_count
  @failed_count
end

#nocaptcha_countFixnum

Count of nocaptchas (successful verification without a challenge) issued. Corresponds to the JSON property nocaptchaCount

Returns:

  • (Fixnum)


379
380
381
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 379

def nocaptcha_count
  @nocaptcha_count
end

#pageload_countFixnum

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

Returns:

  • (Fixnum)


385
386
387
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 385

def pageload_count
  @pageload_count
end

#passed_countFixnum

Count of nocaptchas (successful verification without a challenge) plus submitted challenge solutions that were correct and resulted in verification. Corresponds to the JSON property passedCount

Returns:

  • (Fixnum)


391
392
393
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 391

def passed_count
  @passed_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



398
399
400
401
402
403
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 398

def update!(**args)
  @failed_count = args[:failed_count] if args.key?(:failed_count)
  @nocaptcha_count = args[:nocaptcha_count] if args.key?(:nocaptcha_count)
  @pageload_count = args[:pageload_count] if args.key?(:pageload_count)
  @passed_count = args[:passed_count] if args.key?(:passed_count)
end