Class: Google::Apis::MlV1::GoogleCloudMlV1RequestLoggingConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1RequestLoggingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb
Overview
Configuration for logging request-response pairs to a BigQuery table. Online prediction requests to a model version and the responses to these requests are converted to raw strings and saved to the specified BigQuery table. Logging is constrained by BigQuery quotas and limits. If your project exceeds BigQuery quotas or limits, AI Platform Prediction does not log request-response pairs, but it continues to serve predictions. If you are using continuous evaluation, you do not need to specify this configuration manually. Setting up continuous evaluation automatically enables logging of request-response pairs.
Instance Attribute Summary collapse
-
#bigquery_table_name ⇒ String
Required.
-
#sampling_percentage ⇒ Float
Percentage of requests to be logged, expressed as a fraction from 0 to 1.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1RequestLoggingConfig
constructor
A new instance of GoogleCloudMlV1RequestLoggingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1RequestLoggingConfig
Returns a new instance of GoogleCloudMlV1RequestLoggingConfig.
1377 1378 1379 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bigquery_table_name ⇒ String
Required. Fully qualified BigQuery table name in the following format: "project_id.dataset_name.table_name" The specified table must already exist, and the "Cloud ML Service Agent" for your project must have permission to write to it. The table must have the following schema:
Field name | Type | Mode |
---|---|---|
model | STRING | REQUIRED |
model_version | STRING | REQUIRED |
time | TIMESTAMP | REQUIRED |
raw_data | STRING | REQUIRED |
raw_prediction | STRING | NULLABLE |
groundtruth | STRING | NULLABLE |
Corresponds to the JSON property bigqueryTableName
1368 1369 1370 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1368 def bigquery_table_name @bigquery_table_name end |
#sampling_percentage ⇒ Float
Percentage of requests to be logged, expressed as a fraction from 0 to 1.
For example, if you want to log 10% of requests, enter 0.1
. The sampling
window is the lifetime of the model version. Defaults to 0.
Corresponds to the JSON property samplingPercentage
1375 1376 1377 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1375 def sampling_percentage @sampling_percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1382 1383 1384 1385 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1382 def update!(**args) @bigquery_table_name = args[:bigquery_table_name] if args.key?(:bigquery_table_name) @sampling_percentage = args[:sampling_percentage] if args.key?(:sampling_percentage) end |