pub struct GoogleCloudMlV1__RequestLoggingConfig {
pub bigquery_table_name: Option<String>,
pub sampling_percentage: Option<f64>,
}Expand description
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bigquery_table_name: Option<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 nameType Mode model STRING REQUIRED model_version STRING REQUIRED time TIMESTAMP REQUIRED raw_data STRING REQUIRED raw_prediction STRING NULLABLE groundtruth STRING NULLABLE
sampling_percentage: Option<f64>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.
Trait Implementations§
Source§impl Clone for GoogleCloudMlV1__RequestLoggingConfig
impl Clone for GoogleCloudMlV1__RequestLoggingConfig
Source§fn clone(&self) -> GoogleCloudMlV1__RequestLoggingConfig
fn clone(&self) -> GoogleCloudMlV1__RequestLoggingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudMlV1__RequestLoggingConfig
impl Default for GoogleCloudMlV1__RequestLoggingConfig
Source§fn default() -> GoogleCloudMlV1__RequestLoggingConfig
fn default() -> GoogleCloudMlV1__RequestLoggingConfig
Source§impl<'de> Deserialize<'de> for GoogleCloudMlV1__RequestLoggingConfig
impl<'de> Deserialize<'de> for GoogleCloudMlV1__RequestLoggingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudMlV1__RequestLoggingConfig
Auto Trait Implementations§
impl Freeze for GoogleCloudMlV1__RequestLoggingConfig
impl RefUnwindSafe for GoogleCloudMlV1__RequestLoggingConfig
impl Send for GoogleCloudMlV1__RequestLoggingConfig
impl Sync for GoogleCloudMlV1__RequestLoggingConfig
impl Unpin for GoogleCloudMlV1__RequestLoggingConfig
impl UnwindSafe for GoogleCloudMlV1__RequestLoggingConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more