Show / Hide Table of Contents

Class WorkloadCapturesResource

The "workloadCaptures" collection of methods.

Inheritance
object
WorkloadCapturesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.SQLAdmin.v1beta4
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class WorkloadCapturesResource

Constructors

WorkloadCapturesResource(IClientService)

Constructs a new resource.

Declaration
public WorkloadCapturesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

List(string, string)

Lists all captured workloads associated with the instance.

Declaration
public virtual WorkloadCapturesResource.ListRequest List(string project, string instance)
Parameters
Type Name Description
string project

Required. Project ID of the project that contains the instance.

string instance

Required. Cloud SQL instance ID. This does not include the project ID.

Returns
Type Description
WorkloadCapturesResource.ListRequest

Start(SqlWorkloadCapturesStartRequest, string, string)

Starts capturing the SQL queries, transactions, and other operations executed on the primary instance. This traffic is securely stored and forms a "captured workload". This workload can be replayed later on a different instance to safely test performance impacts, database upgrades, configuration changes etc. before applying them to production.

Declaration
public virtual WorkloadCapturesResource.StartRequest Start(SqlWorkloadCapturesStartRequest body, string project, string instance)
Parameters
Type Name Description
SqlWorkloadCapturesStartRequest body

The body of the request.

string project

Required. Project ID of the project that contains the instance.

string instance

Required. Cloud SQL instance ID. This does not include the project ID.

Returns
Type Description
WorkloadCapturesResource.StartRequest

StartReplay(SqlWorkloadCapturesStartReplayRequest, string, string, string)

Starts executing a captured workload on a separate Cloud SQL instance provisioned for workload replay. This target instance simulates the production environment without affecting the primary instance.

Declaration
public virtual WorkloadCapturesResource.StartReplayRequest StartReplay(SqlWorkloadCapturesStartReplayRequest body, string project, string instance, string workloadId)
Parameters
Type Name Description
SqlWorkloadCapturesStartReplayRequest body

The body of the request.

string project

Required. Project ID of the project that contains the instance.

string instance

Required. Cloud SQL instance ID. This does not include the project ID.

string workloadId

Required. The ID of the workload to replay.

Returns
Type Description
WorkloadCapturesResource.StartReplayRequest

Stop(SqlWorkloadCapturesStopRequest, string, string)

Stops capturing the query traffic and related operations executed on the primary instance.

Declaration
public virtual WorkloadCapturesResource.StopRequest Stop(SqlWorkloadCapturesStopRequest body, string project, string instance)
Parameters
Type Name Description
SqlWorkloadCapturesStopRequest body

The body of the request.

string project

Required. Project ID of the project that contains the instance.

string instance

Required. Cloud SQL instance ID. This does not include the project ID.

Returns
Type Description
WorkloadCapturesResource.StopRequest

StopReplay(SqlWorkloadCapturesStopReplayRequest, string, string, string)

Stops executing a captured workload on the separate Cloud SQL instance.

Declaration
public virtual WorkloadCapturesResource.StopReplayRequest StopReplay(SqlWorkloadCapturesStopReplayRequest body, string project, string instance, string workloadId)
Parameters
Type Name Description
SqlWorkloadCapturesStopReplayRequest body

The body of the request.

string project

Required. Project ID of the project that contains the instance.

string instance

Required. Cloud SQL instance ID. This does not include the project ID.

string workloadId

Required. The ID of the workload to replay.

Returns
Type Description
WorkloadCapturesResource.StopReplayRequest
In this article
Back to top Generated by DocFX