GoogleCloudMlV1__RequestLoggingConfigArgs

data class GoogleCloudMlV1__RequestLoggingConfigArgs(val bigqueryTableName: Output<String>, val samplingPercentage: Output<Double>? = null) : ConvertibleToJava<GoogleCloudMlV1__RequestLoggingConfigArgs>

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. 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 /ml-engine/docs/continuous-evaluation/, you do not need to specify this configuration manually. Setting up continuous evaluation automatically enables logging of request-response pairs.

Constructors

fun GoogleCloudMlV1__RequestLoggingConfigArgs(bigqueryTableName: Output<String>, samplingPercentage: Output<Double>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GoogleCloudMlV1__RequestLoggingConfigArgs

Properties

Link copied to clipboard

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 /bigquery/docs/schemas: Field nameType Mode model STRING REQUIRED model_version STRING REQUIRED time TIMESTAMP REQUIRED raw_data STRING REQUIRED raw_prediction STRING NULLABLE groundtruth STRING NULLABLE

Link copied to clipboard
val samplingPercentage: Output<Double>? = null

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.