Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Metrics

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 for a single Key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1Metrics

Returns a new instance of GoogleCloudRecaptchaenterpriseV1Metrics.



1105
1106
1107
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1105

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

Instance Attribute Details

#challenge_metricsArray<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ChallengeMetrics>

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



1086
1087
1088
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1086

def challenge_metrics
  @challenge_metrics
end

#nameString

Output only. The name of the metrics, in the format projects/project/keys/ key/metrics. Corresponds to the JSON property name

Returns:

  • (String)


1092
1093
1094
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1092

def name
  @name
end

#score_metricsArray<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreMetrics>

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



1098
1099
1100
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1098

def score_metrics
  @score_metrics
end

#start_timeString

Inclusive start time aligned to a day (UTC). Corresponds to the JSON property startTime

Returns:

  • (String)


1103
1104
1105
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1103

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1110
1111
1112
1113
1114
1115
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1110

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