class Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Metrics

Metrics for a single Key.

Attributes

challenge_metrics[RW]

Metrics will be continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have challenge- based data. Corresponds to the JSON property `challengeMetrics` @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ChallengeMetrics>]

name[RW]

Output only. The name of the metrics, in the format “projects/`project`/keys/` key`/metrics”. Corresponds to the JSON property `name` @return [String]

score_metrics[RW]

Metrics will be continuous and in order by dates, and in the granularity of day. All Key types should have score-based data. Corresponds to the JSON property `scoreMetrics` @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreMetrics>]

start_time[RW]

Inclusive start time aligned to a day (UTC). Corresponds to the JSON property `startTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/recaptchaenterprise_v1/classes.rb, line 363
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/recaptchaenterprise_v1/classes.rb, line 368
def update!(**args)
  @challenge_metrics = args[:challenge_metrics] if args.key?(:challenge_metrics)
  @name = args[:name] if args.key?(:name)
  @score_metrics = args[:score_metrics] if args.key?(:score_metrics)
  @start_time = args[:start_time] if args.key?(:start_time)
end