Class: Google::Apis::BigqueryV2::GenAiStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb

Overview

GenAi stats for the query job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenAiStats

Returns a new instance of GenAiStats.



3902
3903
3904
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3902

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

Instance Attribute Details

#error_statsGoogle::Apis::BigqueryV2::GenAiErrorStats

Provides error statistics for the query job across all AI function calls. Corresponds to the JSON property errorStats



3894
3895
3896
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3894

def error_stats
  @error_stats
end

#function_statsArray<Google::Apis::BigqueryV2::GenAiFunctionStats>

Function level stats for GenAi Functions. See https://docs.cloud.google.com/ bigquery/docs/generative-ai-overview Corresponds to the JSON property functionStats



3900
3901
3902
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3900

def function_stats
  @function_stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3907
3908
3909
3910
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3907

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