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
Configurations for logging request-response pairs. Currently only BigQuery logging is supported. The request and response will be converted to raw string and stored within the specified BigQuery table. The schema is: model: STRING version: STRING time: Timestamp raw_data: STRING raw_prediction: STRING ground_truth: STRING
Instance Attribute Summary collapse
-
#bigquery_table_name ⇒ String
Fully qualified BigQuery table name in the format of "[project_id].[dataset_name].[table_name]".
-
#sampling_percentage ⇒ Float
Percentage of the request being logged.
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
1243 1244 1245 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1243 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bigquery_table_name ⇒ String
Fully qualified BigQuery table name in the format of
"[project_id].[dataset_name].[table_name]".
Corresponds to the JSON property bigqueryTableName
1235 1236 1237 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1235 def bigquery_table_name @bigquery_table_name end |
#sampling_percentage ⇒ Float
Percentage of the request being logged. The sampling window is the lifetime
of the Version. Defaults to 0.
Corresponds to the JSON property samplingPercentage
1241 1242 1243 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1241 def sampling_percentage @sampling_percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1248 1249 1250 1251 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1248 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 |