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.



245
246
247
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 245

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)


226
227
228
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 226

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)


231
232
233
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 231

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)


237
238
239
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 237

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)


243
244
245
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 243

def passed_count
  @passed_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



250
251
252
253
254
255
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 250

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