Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig

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

Overview

Configuration for logging request-response to a BigQuery table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig

Returns a new instance of GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig.



19369
19370
19371
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19369

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

Instance Attribute Details

#bigquery_destinationGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1BigQueryDestination

The BigQuery location for the output content. Corresponds to the JSON property bigqueryDestination



19356
19357
19358
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19356

def bigquery_destination
  @bigquery_destination
end

#enabledBoolean Also known as: enabled?

If logging is enabled or not. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


19361
19362
19363
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19361

def enabled
  @enabled
end

#sampling_rateFloat

Percentage of requests to be logged, expressed as a fraction in range(0,1]. Corresponds to the JSON property samplingRate

Returns:

  • (Float)


19367
19368
19369
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19367

def sampling_rate
  @sampling_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19374
19375
19376
19377
19378
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19374

def update!(**args)
  @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
  @enabled = args[:enabled] if args.key?(:enabled)
  @sampling_rate = args[:sampling_rate] if args.key?(:sampling_rate)
end