#[non_exhaustive]pub struct StartWorkloadReplayContext {
pub replay_instance: String,
pub workload_id: String,
/* private fields */
}Expand description
The context for the StartWorkloadReplay operation, which contains details
about starting the execution of a captured workload (recorded read and
write SQL queries) on a replay instance (the Cloud SQL
instance where the recorded SQL queries are executed).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.replay_instance: StringRequired. The name of the Cloud SQL instance where the captured workload
(SQL queries) is being executed, excluding the project ID (for example,
my-replay-instance). The instance name must start with a lowercase letter
and contain only lowercase letters, numbers, and hyphens. The combined
length of project-ID:instance-name must be 98 characters or less.
workload_id: StringOutput only. The ID of the workload to start executing on the replay
instance. Each workload capture generates a unique ID in the format
workload-<epoch_timestamp> (for example, workload-1786046400). Use this
ID to start executing the recorded SQL queries.
Implementations§
Source§impl StartWorkloadReplayContext
impl StartWorkloadReplayContext
Sourcepub fn set_replay_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_replay_instance<T: Into<String>>(self, v: T) -> Self
Sets the value of replay_instance.
§Example
let x = StartWorkloadReplayContext::new().set_replay_instance("example");Sourcepub fn set_workload_id<T: Into<String>>(self, v: T) -> Self
pub fn set_workload_id<T: Into<String>>(self, v: T) -> Self
Sets the value of workload_id.
§Example
let x = StartWorkloadReplayContext::new().set_workload_id("example");