Cloud AI Platform v1beta1 API - Class ModelMonitoringServiceClient (1.0.0-beta09)

public abstract class ModelMonitoringServiceClient

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class ModelMonitoringServiceClient.

ModelMonitoringService client wrapper, for convenient use.

Inheritance

object > ModelMonitoringServiceClient

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Remarks

A service for creating and managing Vertex AI Model moitoring. This includes ModelMonitor resources, ModelMonitoringJob resources.

Properties

CreateModelMonitorOperationsClient

public virtual OperationsClient CreateModelMonitorOperationsClient { get; }

The long-running operations client for CreateModelMonitor.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the ModelMonitoringService service, which is a host of "aiplatform.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ModelMonitoringService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default ModelMonitoringService scopes are:

DeleteModelMonitorOperationsClient

public virtual OperationsClient DeleteModelMonitorOperationsClient { get; }

The long-running operations client for DeleteModelMonitor.

Property Value
Type Description
OperationsClient

DeleteModelMonitoringJobOperationsClient

public virtual OperationsClient DeleteModelMonitoringJobOperationsClient { get; }

The long-running operations client for DeleteModelMonitoringJob.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual ModelMonitoringService.ModelMonitoringServiceClient GrpcClient { get; }

The underlying gRPC ModelMonitoringService client

Property Value
Type Description
ModelMonitoringServiceModelMonitoringServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateModelMonitorOperationsClient

public virtual OperationsClient UpdateModelMonitorOperationsClient { get; }

The long-running operations client for UpdateModelMonitor.

Property Value
Type Description
OperationsClient

Methods

Create()

public static ModelMonitoringServiceClient Create()

Synchronously creates a ModelMonitoringServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ModelMonitoringServiceClientBuilder.

Returns
Type Description
ModelMonitoringServiceClient

The created ModelMonitoringServiceClient.

CreateAsync(CancellationToken)

public static Task<ModelMonitoringServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a ModelMonitoringServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ModelMonitoringServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskModelMonitoringServiceClient

The task representing the created ModelMonitoringServiceClient.

CreateModelMonitor(LocationName, ModelMonitor, CallSettings)

public virtual Operation<ModelMonitor, CreateModelMonitorOperationMetadata> CreateModelMonitor(LocationName parent, ModelMonitor modelMonitor, CallSettings callSettings = null)

Creates a ModelMonitor.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the ModelMonitor in. Format: projects/{project}/locations/{location}

modelMonitor ModelMonitor

Required. The ModelMonitor to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelMonitorCreateModelMonitorOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ModelMonitor modelMonitor = new ModelMonitor();
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = modelMonitoringServiceClient.CreateModelMonitor(parent, modelMonitor);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceCreateModelMonitor(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitor(CreateModelMonitorRequest, CallSettings)

public virtual Operation<ModelMonitor, CreateModelMonitorOperationMetadata> CreateModelMonitor(CreateModelMonitorRequest request, CallSettings callSettings = null)

Creates a ModelMonitor.

Parameters
Name Description
request CreateModelMonitorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelMonitorCreateModelMonitorOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
CreateModelMonitorRequest request = new CreateModelMonitorRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ModelMonitor = new ModelMonitor(),
    ModelMonitorId = "",
};
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = modelMonitoringServiceClient.CreateModelMonitor(request);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceCreateModelMonitor(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitor(string, ModelMonitor, CallSettings)

public virtual Operation<ModelMonitor, CreateModelMonitorOperationMetadata> CreateModelMonitor(string parent, ModelMonitor modelMonitor, CallSettings callSettings = null)

Creates a ModelMonitor.

Parameters
Name Description
parent string

Required. The resource name of the Location to create the ModelMonitor in. Format: projects/{project}/locations/{location}

modelMonitor ModelMonitor

Required. The ModelMonitor to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelMonitorCreateModelMonitorOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ModelMonitor modelMonitor = new ModelMonitor();
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = modelMonitoringServiceClient.CreateModelMonitor(parent, modelMonitor);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceCreateModelMonitor(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitorAsync(LocationName, ModelMonitor, CallSettings)

public virtual Task<Operation<ModelMonitor, CreateModelMonitorOperationMetadata>> CreateModelMonitorAsync(LocationName parent, ModelMonitor modelMonitor, CallSettings callSettings = null)

Creates a ModelMonitor.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the ModelMonitor in. Format: projects/{project}/locations/{location}

modelMonitor ModelMonitor

Required. The ModelMonitor to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelMonitorCreateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ModelMonitor modelMonitor = new ModelMonitor();
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.CreateModelMonitorAsync(parent, modelMonitor);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceCreateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitorAsync(LocationName, ModelMonitor, CancellationToken)

public virtual Task<Operation<ModelMonitor, CreateModelMonitorOperationMetadata>> CreateModelMonitorAsync(LocationName parent, ModelMonitor modelMonitor, CancellationToken cancellationToken)

Creates a ModelMonitor.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to create the ModelMonitor in. Format: projects/{project}/locations/{location}

modelMonitor ModelMonitor

Required. The ModelMonitor to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationModelMonitorCreateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ModelMonitor modelMonitor = new ModelMonitor();
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.CreateModelMonitorAsync(parent, modelMonitor);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceCreateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitorAsync(CreateModelMonitorRequest, CallSettings)

public virtual Task<Operation<ModelMonitor, CreateModelMonitorOperationMetadata>> CreateModelMonitorAsync(CreateModelMonitorRequest request, CallSettings callSettings = null)

Creates a ModelMonitor.

Parameters
Name Description
request CreateModelMonitorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelMonitorCreateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
CreateModelMonitorRequest request = new CreateModelMonitorRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ModelMonitor = new ModelMonitor(),
    ModelMonitorId = "",
};
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.CreateModelMonitorAsync(request);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceCreateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitorAsync(CreateModelMonitorRequest, CancellationToken)

public virtual Task<Operation<ModelMonitor, CreateModelMonitorOperationMetadata>> CreateModelMonitorAsync(CreateModelMonitorRequest request, CancellationToken cancellationToken)

Creates a ModelMonitor.

Parameters
Name Description
request CreateModelMonitorRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationModelMonitorCreateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
CreateModelMonitorRequest request = new CreateModelMonitorRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ModelMonitor = new ModelMonitor(),
    ModelMonitorId = "",
};
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.CreateModelMonitorAsync(request);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceCreateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitorAsync(string, ModelMonitor, CallSettings)

public virtual Task<Operation<ModelMonitor, CreateModelMonitorOperationMetadata>> CreateModelMonitorAsync(string parent, ModelMonitor modelMonitor, CallSettings callSettings = null)

Creates a ModelMonitor.

Parameters
Name Description
parent string

Required. The resource name of the Location to create the ModelMonitor in. Format: projects/{project}/locations/{location}

modelMonitor ModelMonitor

Required. The ModelMonitor to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelMonitorCreateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ModelMonitor modelMonitor = new ModelMonitor();
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.CreateModelMonitorAsync(parent, modelMonitor);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceCreateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitorAsync(string, ModelMonitor, CancellationToken)

public virtual Task<Operation<ModelMonitor, CreateModelMonitorOperationMetadata>> CreateModelMonitorAsync(string parent, ModelMonitor modelMonitor, CancellationToken cancellationToken)

Creates a ModelMonitor.

Parameters
Name Description
parent string

Required. The resource name of the Location to create the ModelMonitor in. Format: projects/{project}/locations/{location}

modelMonitor ModelMonitor

Required. The ModelMonitor to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationModelMonitorCreateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ModelMonitor modelMonitor = new ModelMonitor();
// Make the request
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.CreateModelMonitorAsync(parent, modelMonitor);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, CreateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceCreateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

CreateModelMonitoringJob(CreateModelMonitoringJobRequest, CallSettings)

public virtual ModelMonitoringJob CreateModelMonitoringJob(CreateModelMonitoringJobRequest request, CallSettings callSettings = null)

Creates a ModelMonitoringJob.

Parameters
Name Description
request CreateModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitoringJob

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
CreateModelMonitoringJobRequest request = new CreateModelMonitoringJobRequest
{
    ParentAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    ModelMonitoringJob = new ModelMonitoringJob(),
    ModelMonitoringJobId = "",
};
// Make the request
ModelMonitoringJob response = modelMonitoringServiceClient.CreateModelMonitoringJob(request);

CreateModelMonitoringJob(ModelMonitorName, ModelMonitoringJob, CallSettings)

public virtual ModelMonitoringJob CreateModelMonitoringJob(ModelMonitorName parent, ModelMonitoringJob modelMonitoringJob, CallSettings callSettings = null)

Creates a ModelMonitoringJob.

Parameters
Name Description
parent ModelMonitorName

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMoniitors/{model_monitor}

modelMonitoringJob ModelMonitoringJob

Required. The ModelMonitoringJob to create

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitoringJob

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitorName parent = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
ModelMonitoringJob modelMonitoringJob = new ModelMonitoringJob();
// Make the request
ModelMonitoringJob response = modelMonitoringServiceClient.CreateModelMonitoringJob(parent, modelMonitoringJob);

CreateModelMonitoringJob(string, ModelMonitoringJob, CallSettings)

public virtual ModelMonitoringJob CreateModelMonitoringJob(string parent, ModelMonitoringJob modelMonitoringJob, CallSettings callSettings = null)

Creates a ModelMonitoringJob.

Parameters
Name Description
parent string

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMoniitors/{model_monitor}

modelMonitoringJob ModelMonitoringJob

Required. The ModelMonitoringJob to create

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitoringJob

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
ModelMonitoringJob modelMonitoringJob = new ModelMonitoringJob();
// Make the request
ModelMonitoringJob response = modelMonitoringServiceClient.CreateModelMonitoringJob(parent, modelMonitoringJob);

CreateModelMonitoringJobAsync(CreateModelMonitoringJobRequest, CallSettings)

public virtual Task<ModelMonitoringJob> CreateModelMonitoringJobAsync(CreateModelMonitoringJobRequest request, CallSettings callSettings = null)

Creates a ModelMonitoringJob.

Parameters
Name Description
request CreateModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
CreateModelMonitoringJobRequest request = new CreateModelMonitoringJobRequest
{
    ParentAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    ModelMonitoringJob = new ModelMonitoringJob(),
    ModelMonitoringJobId = "",
};
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.CreateModelMonitoringJobAsync(request);

CreateModelMonitoringJobAsync(CreateModelMonitoringJobRequest, CancellationToken)

public virtual Task<ModelMonitoringJob> CreateModelMonitoringJobAsync(CreateModelMonitoringJobRequest request, CancellationToken cancellationToken)

Creates a ModelMonitoringJob.

Parameters
Name Description
request CreateModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
CreateModelMonitoringJobRequest request = new CreateModelMonitoringJobRequest
{
    ParentAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    ModelMonitoringJob = new ModelMonitoringJob(),
    ModelMonitoringJobId = "",
};
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.CreateModelMonitoringJobAsync(request);

CreateModelMonitoringJobAsync(ModelMonitorName, ModelMonitoringJob, CallSettings)

public virtual Task<ModelMonitoringJob> CreateModelMonitoringJobAsync(ModelMonitorName parent, ModelMonitoringJob modelMonitoringJob, CallSettings callSettings = null)

Creates a ModelMonitoringJob.

Parameters
Name Description
parent ModelMonitorName

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMoniitors/{model_monitor}

modelMonitoringJob ModelMonitoringJob

Required. The ModelMonitoringJob to create

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName parent = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
ModelMonitoringJob modelMonitoringJob = new ModelMonitoringJob();
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.CreateModelMonitoringJobAsync(parent, modelMonitoringJob);

CreateModelMonitoringJobAsync(ModelMonitorName, ModelMonitoringJob, CancellationToken)

public virtual Task<ModelMonitoringJob> CreateModelMonitoringJobAsync(ModelMonitorName parent, ModelMonitoringJob modelMonitoringJob, CancellationToken cancellationToken)

Creates a ModelMonitoringJob.

Parameters
Name Description
parent ModelMonitorName

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMoniitors/{model_monitor}

modelMonitoringJob ModelMonitoringJob

Required. The ModelMonitoringJob to create

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName parent = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
ModelMonitoringJob modelMonitoringJob = new ModelMonitoringJob();
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.CreateModelMonitoringJobAsync(parent, modelMonitoringJob);

CreateModelMonitoringJobAsync(string, ModelMonitoringJob, CallSettings)

public virtual Task<ModelMonitoringJob> CreateModelMonitoringJobAsync(string parent, ModelMonitoringJob modelMonitoringJob, CallSettings callSettings = null)

Creates a ModelMonitoringJob.

Parameters
Name Description
parent string

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMoniitors/{model_monitor}

modelMonitoringJob ModelMonitoringJob

Required. The ModelMonitoringJob to create

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
ModelMonitoringJob modelMonitoringJob = new ModelMonitoringJob();
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.CreateModelMonitoringJobAsync(parent, modelMonitoringJob);

CreateModelMonitoringJobAsync(string, ModelMonitoringJob, CancellationToken)

public virtual Task<ModelMonitoringJob> CreateModelMonitoringJobAsync(string parent, ModelMonitoringJob modelMonitoringJob, CancellationToken cancellationToken)

Creates a ModelMonitoringJob.

Parameters
Name Description
parent string

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMoniitors/{model_monitor}

modelMonitoringJob ModelMonitoringJob

Required. The ModelMonitoringJob to create

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
ModelMonitoringJob modelMonitoringJob = new ModelMonitoringJob();
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.CreateModelMonitoringJobAsync(parent, modelMonitoringJob);

DeleteModelMonitor(DeleteModelMonitorRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelMonitor(DeleteModelMonitorRequest request, CallSettings callSettings = null)

Deletes a ModelMonitor.

Parameters
Name Description
request DeleteModelMonitorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
DeleteModelMonitorRequest request = new DeleteModelMonitorRequest
{
    ModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    Force = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = modelMonitoringServiceClient.DeleteModelMonitor(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceDeleteModelMonitor(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitor(ModelMonitorName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelMonitor(ModelMonitorName name, CallSettings callSettings = null)

Deletes a ModelMonitor.

Parameters
Name Description
name ModelMonitorName

Required. The name of the ModelMonitor resource to be deleted. Format: projects/{project}/locations/{location}/modelMonitords/{model_monitor}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitorName name = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = modelMonitoringServiceClient.DeleteModelMonitor(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceDeleteModelMonitor(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitor(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelMonitor(string name, CallSettings callSettings = null)

Deletes a ModelMonitor.

Parameters
Name Description
name string

Required. The name of the ModelMonitor resource to be deleted. Format: projects/{project}/locations/{location}/modelMonitords/{model_monitor}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = modelMonitoringServiceClient.DeleteModelMonitor(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceDeleteModelMonitor(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitorAsync(DeleteModelMonitorRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitorAsync(DeleteModelMonitorRequest request, CallSettings callSettings = null)

Deletes a ModelMonitor.

Parameters
Name Description
request DeleteModelMonitorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteModelMonitorRequest request = new DeleteModelMonitorRequest
{
    ModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    Force = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitorAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitorAsync(DeleteModelMonitorRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitorAsync(DeleteModelMonitorRequest request, CancellationToken cancellationToken)

Deletes a ModelMonitor.

Parameters
Name Description
request DeleteModelMonitorRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteModelMonitorRequest request = new DeleteModelMonitorRequest
{
    ModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    Force = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitorAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitorAsync(ModelMonitorName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitorAsync(ModelMonitorName name, CallSettings callSettings = null)

Deletes a ModelMonitor.

Parameters
Name Description
name ModelMonitorName

Required. The name of the ModelMonitor resource to be deleted. Format: projects/{project}/locations/{location}/modelMonitords/{model_monitor}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName name = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitorAsync(ModelMonitorName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitorAsync(ModelMonitorName name, CancellationToken cancellationToken)

Deletes a ModelMonitor.

Parameters
Name Description
name ModelMonitorName

Required. The name of the ModelMonitor resource to be deleted. Format: projects/{project}/locations/{location}/modelMonitords/{model_monitor}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName name = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitorAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitorAsync(string name, CallSettings callSettings = null)

Deletes a ModelMonitor.

Parameters
Name Description
name string

Required. The name of the ModelMonitor resource to be deleted. Format: projects/{project}/locations/{location}/modelMonitords/{model_monitor}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitorAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitorAsync(string name, CancellationToken cancellationToken)

Deletes a ModelMonitor.

Parameters
Name Description
name string

Required. The name of the ModelMonitor resource to be deleted. Format: projects/{project}/locations/{location}/modelMonitords/{model_monitor}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJob(DeleteModelMonitoringJobRequest, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelMonitoringJob(DeleteModelMonitoringJobRequest request, CallSettings callSettings = null)

Deletes a ModelMonitoringJob.

Parameters
Name Description
request DeleteModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
DeleteModelMonitoringJobRequest request = new DeleteModelMonitoringJobRequest
{
    ModelMonitoringJobName = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = modelMonitoringServiceClient.DeleteModelMonitoringJob(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJob(ModelMonitoringJobName, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelMonitoringJob(ModelMonitoringJobName name, CallSettings callSettings = null)

Deletes a ModelMonitoringJob.

Parameters
Name Description
name ModelMonitoringJobName

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitoringJobName name = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = modelMonitoringServiceClient.DeleteModelMonitoringJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> DeleteModelMonitoringJob(string name, CallSettings callSettings = null)

Deletes a ModelMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]/modelMonitoringJobs/[MODEL_MONITORING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = modelMonitoringServiceClient.DeleteModelMonitoringJob(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJobAsync(DeleteModelMonitoringJobRequest, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitoringJobAsync(DeleteModelMonitoringJobRequest request, CallSettings callSettings = null)

Deletes a ModelMonitoringJob.

Parameters
Name Description
request DeleteModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteModelMonitoringJobRequest request = new DeleteModelMonitoringJobRequest
{
    ModelMonitoringJobName = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitoringJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJobAsync(DeleteModelMonitoringJobRequest, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitoringJobAsync(DeleteModelMonitoringJobRequest request, CancellationToken cancellationToken)

Deletes a ModelMonitoringJob.

Parameters
Name Description
request DeleteModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteModelMonitoringJobRequest request = new DeleteModelMonitoringJobRequest
{
    ModelMonitoringJobName = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitoringJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJobAsync(ModelMonitoringJobName, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitoringJobAsync(ModelMonitoringJobName name, CallSettings callSettings = null)

Deletes a ModelMonitoringJob.

Parameters
Name Description
name ModelMonitoringJobName

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitoringJobName name = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitoringJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJobAsync(ModelMonitoringJobName, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitoringJobAsync(ModelMonitoringJobName name, CancellationToken cancellationToken)

Deletes a ModelMonitoringJob.

Parameters
Name Description
name ModelMonitoringJobName

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitoringJobName name = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitoringJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitoringJobAsync(string name, CallSettings callSettings = null)

Deletes a ModelMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]/modelMonitoringJobs/[MODEL_MONITORING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitoringJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteModelMonitoringJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteModelMonitoringJobAsync(string name, CancellationToken cancellationToken)

Deletes a ModelMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the model monitoring job to delete. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]/modelMonitoringJobs/[MODEL_MONITORING_JOB]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await modelMonitoringServiceClient.DeleteModelMonitoringJobAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceDeleteModelMonitoringJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

GetModelMonitor(GetModelMonitorRequest, CallSettings)

public virtual ModelMonitor GetModelMonitor(GetModelMonitorRequest request, CallSettings callSettings = null)

Gets a ModelMonitor.

Parameters
Name Description
request GetModelMonitorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitor

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
GetModelMonitorRequest request = new GetModelMonitorRequest
{
    ModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
};
// Make the request
ModelMonitor response = modelMonitoringServiceClient.GetModelMonitor(request);

GetModelMonitor(ModelMonitorName, CallSettings)

public virtual ModelMonitor GetModelMonitor(ModelMonitorName name, CallSettings callSettings = null)

Gets a ModelMonitor.

Parameters
Name Description
name ModelMonitorName

Required. The name of the ModelMonitor resource. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitor

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitorName name = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
ModelMonitor response = modelMonitoringServiceClient.GetModelMonitor(name);

GetModelMonitor(string, CallSettings)

public virtual ModelMonitor GetModelMonitor(string name, CallSettings callSettings = null)

Gets a ModelMonitor.

Parameters
Name Description
name string

Required. The name of the ModelMonitor resource. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitor

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
ModelMonitor response = modelMonitoringServiceClient.GetModelMonitor(name);

GetModelMonitorAsync(GetModelMonitorRequest, CallSettings)

public virtual Task<ModelMonitor> GetModelMonitorAsync(GetModelMonitorRequest request, CallSettings callSettings = null)

Gets a ModelMonitor.

Parameters
Name Description
request GetModelMonitorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitor

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
GetModelMonitorRequest request = new GetModelMonitorRequest
{
    ModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
};
// Make the request
ModelMonitor response = await modelMonitoringServiceClient.GetModelMonitorAsync(request);

GetModelMonitorAsync(GetModelMonitorRequest, CancellationToken)

public virtual Task<ModelMonitor> GetModelMonitorAsync(GetModelMonitorRequest request, CancellationToken cancellationToken)

Gets a ModelMonitor.

Parameters
Name Description
request GetModelMonitorRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitor

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
GetModelMonitorRequest request = new GetModelMonitorRequest
{
    ModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
};
// Make the request
ModelMonitor response = await modelMonitoringServiceClient.GetModelMonitorAsync(request);

GetModelMonitorAsync(ModelMonitorName, CallSettings)

public virtual Task<ModelMonitor> GetModelMonitorAsync(ModelMonitorName name, CallSettings callSettings = null)

Gets a ModelMonitor.

Parameters
Name Description
name ModelMonitorName

Required. The name of the ModelMonitor resource. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitor

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName name = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
ModelMonitor response = await modelMonitoringServiceClient.GetModelMonitorAsync(name);

GetModelMonitorAsync(ModelMonitorName, CancellationToken)

public virtual Task<ModelMonitor> GetModelMonitorAsync(ModelMonitorName name, CancellationToken cancellationToken)

Gets a ModelMonitor.

Parameters
Name Description
name ModelMonitorName

Required. The name of the ModelMonitor resource. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitor

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName name = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
ModelMonitor response = await modelMonitoringServiceClient.GetModelMonitorAsync(name);

GetModelMonitorAsync(string, CallSettings)

public virtual Task<ModelMonitor> GetModelMonitorAsync(string name, CallSettings callSettings = null)

Gets a ModelMonitor.

Parameters
Name Description
name string

Required. The name of the ModelMonitor resource. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitor

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
ModelMonitor response = await modelMonitoringServiceClient.GetModelMonitorAsync(name);

GetModelMonitorAsync(string, CancellationToken)

public virtual Task<ModelMonitor> GetModelMonitorAsync(string name, CancellationToken cancellationToken)

Gets a ModelMonitor.

Parameters
Name Description
name string

Required. The name of the ModelMonitor resource. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitor

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
ModelMonitor response = await modelMonitoringServiceClient.GetModelMonitorAsync(name);

GetModelMonitoringJob(GetModelMonitoringJobRequest, CallSettings)

public virtual ModelMonitoringJob GetModelMonitoringJob(GetModelMonitoringJobRequest request, CallSettings callSettings = null)

Gets a ModelMonitoringJob.

Parameters
Name Description
request GetModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitoringJob

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
GetModelMonitoringJobRequest request = new GetModelMonitoringJobRequest
{
    ModelMonitoringJobName = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]"),
};
// Make the request
ModelMonitoringJob response = modelMonitoringServiceClient.GetModelMonitoringJob(request);

GetModelMonitoringJob(ModelMonitoringJobName, CallSettings)

public virtual ModelMonitoringJob GetModelMonitoringJob(ModelMonitoringJobName name, CallSettings callSettings = null)

Gets a ModelMonitoringJob.

Parameters
Name Description
name ModelMonitoringJobName

Required. The resource name of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitoringJob

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitoringJobName name = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]");
// Make the request
ModelMonitoringJob response = modelMonitoringServiceClient.GetModelMonitoringJob(name);

GetModelMonitoringJob(string, CallSettings)

public virtual ModelMonitoringJob GetModelMonitoringJob(string name, CallSettings callSettings = null)

Gets a ModelMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ModelMonitoringJob

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]/modelMonitoringJobs/[MODEL_MONITORING_JOB]";
// Make the request
ModelMonitoringJob response = modelMonitoringServiceClient.GetModelMonitoringJob(name);

GetModelMonitoringJobAsync(GetModelMonitoringJobRequest, CallSettings)

public virtual Task<ModelMonitoringJob> GetModelMonitoringJobAsync(GetModelMonitoringJobRequest request, CallSettings callSettings = null)

Gets a ModelMonitoringJob.

Parameters
Name Description
request GetModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
GetModelMonitoringJobRequest request = new GetModelMonitoringJobRequest
{
    ModelMonitoringJobName = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]"),
};
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.GetModelMonitoringJobAsync(request);

GetModelMonitoringJobAsync(GetModelMonitoringJobRequest, CancellationToken)

public virtual Task<ModelMonitoringJob> GetModelMonitoringJobAsync(GetModelMonitoringJobRequest request, CancellationToken cancellationToken)

Gets a ModelMonitoringJob.

Parameters
Name Description
request GetModelMonitoringJobRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
GetModelMonitoringJobRequest request = new GetModelMonitoringJobRequest
{
    ModelMonitoringJobName = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]"),
};
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.GetModelMonitoringJobAsync(request);

GetModelMonitoringJobAsync(ModelMonitoringJobName, CallSettings)

public virtual Task<ModelMonitoringJob> GetModelMonitoringJobAsync(ModelMonitoringJobName name, CallSettings callSettings = null)

Gets a ModelMonitoringJob.

Parameters
Name Description
name ModelMonitoringJobName

Required. The resource name of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitoringJobName name = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]");
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.GetModelMonitoringJobAsync(name);

GetModelMonitoringJobAsync(ModelMonitoringJobName, CancellationToken)

public virtual Task<ModelMonitoringJob> GetModelMonitoringJobAsync(ModelMonitoringJobName name, CancellationToken cancellationToken)

Gets a ModelMonitoringJob.

Parameters
Name Description
name ModelMonitoringJobName

Required. The resource name of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitoringJobName name = ModelMonitoringJobName.FromProjectLocationModelMonitorModelMonitoringJob("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]", "[MODEL_MONITORING_JOB]");
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.GetModelMonitoringJobAsync(name);

GetModelMonitoringJobAsync(string, CallSettings)

public virtual Task<ModelMonitoringJob> GetModelMonitoringJobAsync(string name, CallSettings callSettings = null)

Gets a ModelMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]/modelMonitoringJobs/[MODEL_MONITORING_JOB]";
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.GetModelMonitoringJobAsync(name);

GetModelMonitoringJobAsync(string, CancellationToken)

public virtual Task<ModelMonitoringJob> GetModelMonitoringJobAsync(string name, CancellationToken cancellationToken)

Gets a ModelMonitoringJob.

Parameters
Name Description
name string

Required. The resource name of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskModelMonitoringJob

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]/modelMonitoringJobs/[MODEL_MONITORING_JOB]";
// Make the request
ModelMonitoringJob response = await modelMonitoringServiceClient.GetModelMonitoringJobAsync(name);

ListModelMonitoringJobs(ListModelMonitoringJobsRequest, CallSettings)

public virtual PagedEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> ListModelMonitoringJobs(ListModelMonitoringJobsRequest request, CallSettings callSettings = null)

Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of modelMonitor id in the parent. Format projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs

Parameters
Name Description
request ListModelMonitoringJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelMonitoringJobsResponseModelMonitoringJob

A pageable sequence of ModelMonitoringJob resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ListModelMonitoringJobsRequest request = new ListModelMonitoringJobsRequest
{
    ParentAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> response = modelMonitoringServiceClient.ListModelMonitoringJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelMonitoringJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitoringJobs(ModelMonitorName, string, int?, CallSettings)

public virtual PagedEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> ListModelMonitoringJobs(ModelMonitorName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of modelMonitor id in the parent. Format projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs

Parameters
Name Description
parent ModelMonitorName

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelMonitoringJobsResponseModelMonitoringJob

A pageable sequence of ModelMonitoringJob resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitorName parent = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
PagedEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> response = modelMonitoringServiceClient.ListModelMonitoringJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelMonitoringJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitoringJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> ListModelMonitoringJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of modelMonitor id in the parent. Format projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs

Parameters
Name Description
parent string

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelMonitoringJobsResponseModelMonitoringJob

A pageable sequence of ModelMonitoringJob resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
PagedEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> response = modelMonitoringServiceClient.ListModelMonitoringJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringJob item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelMonitoringJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringJob> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitoringJobsAsync(ListModelMonitoringJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> ListModelMonitoringJobsAsync(ListModelMonitoringJobsRequest request, CallSettings callSettings = null)

Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of modelMonitor id in the parent. Format projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs

Parameters
Name Description
request ListModelMonitoringJobsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelMonitoringJobsResponseModelMonitoringJob

A pageable asynchronous sequence of ModelMonitoringJob resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ListModelMonitoringJobsRequest request = new ListModelMonitoringJobsRequest
{
    ParentAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedAsyncEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> response = modelMonitoringServiceClient.ListModelMonitoringJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelMonitoringJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitoringJobsAsync(ModelMonitorName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> ListModelMonitoringJobsAsync(ModelMonitorName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of modelMonitor id in the parent. Format projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs

Parameters
Name Description
parent ModelMonitorName

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelMonitoringJobsResponseModelMonitoringJob

A pageable asynchronous sequence of ModelMonitoringJob resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName parent = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
PagedAsyncEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> response = modelMonitoringServiceClient.ListModelMonitoringJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelMonitoringJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitoringJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> ListModelMonitoringJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of modelMonitor id in the parent. Format projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs

Parameters
Name Description
parent string

Required. The parent of the ModelMonitoringJob. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelMonitoringJobsResponseModelMonitoringJob

A pageable asynchronous sequence of ModelMonitoringJob resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
PagedAsyncEnumerable<ListModelMonitoringJobsResponse, ModelMonitoringJob> response = modelMonitoringServiceClient.ListModelMonitoringJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelMonitoringJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringJob item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringJob> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringJob item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitors(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListModelMonitorsResponse, ModelMonitor> ListModelMonitors(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelMonitors in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the ModelMonitors from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelMonitorsResponseModelMonitor

A pageable sequence of ModelMonitor resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListModelMonitorsResponse, ModelMonitor> response = modelMonitoringServiceClient.ListModelMonitors(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitor item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelMonitorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitor item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitor> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitor item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitors(ListModelMonitorsRequest, CallSettings)

public virtual PagedEnumerable<ListModelMonitorsResponse, ModelMonitor> ListModelMonitors(ListModelMonitorsRequest request, CallSettings callSettings = null)

Lists ModelMonitors in a Location.

Parameters
Name Description
request ListModelMonitorsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelMonitorsResponseModelMonitor

A pageable sequence of ModelMonitor resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ListModelMonitorsRequest request = new ListModelMonitorsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedEnumerable<ListModelMonitorsResponse, ModelMonitor> response = modelMonitoringServiceClient.ListModelMonitors(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitor item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelMonitorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitor item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitor> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitor item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitors(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListModelMonitorsResponse, ModelMonitor> ListModelMonitors(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelMonitors in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the ModelMonitors from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelMonitorsResponseModelMonitor

A pageable sequence of ModelMonitor resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListModelMonitorsResponse, ModelMonitor> response = modelMonitoringServiceClient.ListModelMonitors(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitor item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListModelMonitorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitor item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitor> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitor item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitorsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListModelMonitorsResponse, ModelMonitor> ListModelMonitorsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelMonitors in a Location.

Parameters
Name Description
parent LocationName

Required. The resource name of the Location to list the ModelMonitors from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelMonitorsResponseModelMonitor

A pageable asynchronous sequence of ModelMonitor resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListModelMonitorsResponse, ModelMonitor> response = modelMonitoringServiceClient.ListModelMonitorsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitor item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelMonitorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitor item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitor> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitor item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitorsAsync(ListModelMonitorsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListModelMonitorsResponse, ModelMonitor> ListModelMonitorsAsync(ListModelMonitorsRequest request, CallSettings callSettings = null)

Lists ModelMonitors in a Location.

Parameters
Name Description
request ListModelMonitorsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelMonitorsResponseModelMonitor

A pageable asynchronous sequence of ModelMonitor resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ListModelMonitorsRequest request = new ListModelMonitorsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    ReadMask = new FieldMask(),
};
// Make the request
PagedAsyncEnumerable<ListModelMonitorsResponse, ModelMonitor> response = modelMonitoringServiceClient.ListModelMonitorsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitor item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelMonitorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitor item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitor> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitor item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListModelMonitorsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListModelMonitorsResponse, ModelMonitor> ListModelMonitorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ModelMonitors in a Location.

Parameters
Name Description
parent string

Required. The resource name of the Location to list the ModelMonitors from. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelMonitorsResponseModelMonitor

A pageable asynchronous sequence of ModelMonitor resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListModelMonitorsResponse, ModelMonitor> response = modelMonitoringServiceClient.ListModelMonitorsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitor item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListModelMonitorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitor item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitor> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitor item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateModelMonitor(string, CallSettings)

public virtual Operation<ModelMonitor, CreateModelMonitorOperationMetadata> PollOnceCreateModelMonitor(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateModelMonitor .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelMonitorCreateModelMonitorOperationMetadata

The result of polling the operation.

PollOnceCreateModelMonitorAsync(string, CallSettings)

public virtual Task<Operation<ModelMonitor, CreateModelMonitorOperationMetadata>> PollOnceCreateModelMonitorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateModelMonitor.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelMonitorCreateModelMonitorOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteModelMonitor(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteModelMonitor(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteModelMonitor .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteModelMonitorAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteModelMonitorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteModelMonitor.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteModelMonitoringJob(string, CallSettings)

public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteModelMonitoringJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteModelMonitoringJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteOperationMetadata

The result of polling the operation.

PollOnceDeleteModelMonitoringJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteModelMonitoringJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteModelMonitoringJob.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateModelMonitor(string, CallSettings)

public virtual Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> PollOnceUpdateModelMonitor(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateModelMonitor .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelMonitorUpdateModelMonitorOperationMetadata

The result of polling the operation.

PollOnceUpdateModelMonitorAsync(string, CallSettings)

public virtual Task<Operation<ModelMonitor, UpdateModelMonitorOperationMetadata>> PollOnceUpdateModelMonitorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateModelMonitor.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelMonitorUpdateModelMonitorOperationMetadata

A task representing the result of polling the operation.

SearchModelMonitoringAlerts(ModelMonitorName, string, int?, CallSettings)

public virtual PagedEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> SearchModelMonitoringAlerts(ModelMonitorName modelMonitor, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the Model Monitoring alerts.

Parameters
Name Description
modelMonitor ModelMonitorName

Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelMonitoringAlertsResponseModelMonitoringAlert

A pageable sequence of ModelMonitoringAlert resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitorName modelMonitor = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
PagedEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> response = modelMonitoringServiceClient.SearchModelMonitoringAlerts(modelMonitor);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringAlert item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelMonitoringAlertsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringAlert item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringAlert> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringAlert item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringAlerts(SearchModelMonitoringAlertsRequest, CallSettings)

public virtual PagedEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> SearchModelMonitoringAlerts(SearchModelMonitoringAlertsRequest request, CallSettings callSettings = null)

Returns the Model Monitoring alerts.

Parameters
Name Description
request SearchModelMonitoringAlertsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelMonitoringAlertsResponseModelMonitoringAlert

A pageable sequence of ModelMonitoringAlert resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
SearchModelMonitoringAlertsRequest request = new SearchModelMonitoringAlertsRequest
{
    ModelMonitorAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    ModelMonitoringJob = "",
    AlertTimeInterval = new Interval(),
    StatsName = "",
    ObjectiveType = "",
};
// Make the request
PagedEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> response = modelMonitoringServiceClient.SearchModelMonitoringAlerts(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringAlert item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelMonitoringAlertsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringAlert item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringAlert> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringAlert item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringAlerts(string, string, int?, CallSettings)

public virtual PagedEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> SearchModelMonitoringAlerts(string modelMonitor, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the Model Monitoring alerts.

Parameters
Name Description
modelMonitor string

Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelMonitoringAlertsResponseModelMonitoringAlert

A pageable sequence of ModelMonitoringAlert resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string modelMonitor = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
PagedEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> response = modelMonitoringServiceClient.SearchModelMonitoringAlerts(modelMonitor);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringAlert item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelMonitoringAlertsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringAlert item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringAlert> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringAlert item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringAlertsAsync(ModelMonitorName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> SearchModelMonitoringAlertsAsync(ModelMonitorName modelMonitor, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the Model Monitoring alerts.

Parameters
Name Description
modelMonitor ModelMonitorName

Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelMonitoringAlertsResponseModelMonitoringAlert

A pageable asynchronous sequence of ModelMonitoringAlert resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName modelMonitor = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
PagedAsyncEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> response = modelMonitoringServiceClient.SearchModelMonitoringAlertsAsync(modelMonitor);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringAlert item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelMonitoringAlertsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringAlert item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringAlert> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringAlert item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringAlertsAsync(SearchModelMonitoringAlertsRequest, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> SearchModelMonitoringAlertsAsync(SearchModelMonitoringAlertsRequest request, CallSettings callSettings = null)

Returns the Model Monitoring alerts.

Parameters
Name Description
request SearchModelMonitoringAlertsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelMonitoringAlertsResponseModelMonitoringAlert

A pageable asynchronous sequence of ModelMonitoringAlert resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
SearchModelMonitoringAlertsRequest request = new SearchModelMonitoringAlertsRequest
{
    ModelMonitorAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    ModelMonitoringJob = "",
    AlertTimeInterval = new Interval(),
    StatsName = "",
    ObjectiveType = "",
};
// Make the request
PagedAsyncEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> response = modelMonitoringServiceClient.SearchModelMonitoringAlertsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringAlert item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelMonitoringAlertsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringAlert item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringAlert> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringAlert item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringAlertsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> SearchModelMonitoringAlertsAsync(string modelMonitor, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the Model Monitoring alerts.

Parameters
Name Description
modelMonitor string

Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelMonitoringAlertsResponseModelMonitoringAlert

A pageable asynchronous sequence of ModelMonitoringAlert resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string modelMonitor = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
PagedAsyncEnumerable<SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> response = modelMonitoringServiceClient.SearchModelMonitoringAlertsAsync(modelMonitor);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringAlert item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelMonitoringAlertsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringAlert item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringAlert> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringAlert item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringStats(ModelMonitorName, string, int?, CallSettings)

public virtual PagedEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> SearchModelMonitoringStats(ModelMonitorName modelMonitor, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Searches Model Monitoring Stats generated within a given time window.

Parameters
Name Description
modelMonitor ModelMonitorName

Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelMonitoringStatsResponseModelMonitoringStats

A pageable sequence of ModelMonitoringStats resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitorName modelMonitor = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
PagedEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> response = modelMonitoringServiceClient.SearchModelMonitoringStats(modelMonitor);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringStats item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelMonitoringStatsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStats item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStats> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStats item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringStats(SearchModelMonitoringStatsRequest, CallSettings)

public virtual PagedEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> SearchModelMonitoringStats(SearchModelMonitoringStatsRequest request, CallSettings callSettings = null)

Searches Model Monitoring Stats generated within a given time window.

Parameters
Name Description
request SearchModelMonitoringStatsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelMonitoringStatsResponseModelMonitoringStats

A pageable sequence of ModelMonitoringStats resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
SearchModelMonitoringStatsRequest request = new SearchModelMonitoringStatsRequest
{
    ModelMonitorAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    StatsFilter = new SearchModelMonitoringStatsFilter(),
    TimeInterval = new Interval(),
};
// Make the request
PagedEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> response = modelMonitoringServiceClient.SearchModelMonitoringStats(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringStats item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelMonitoringStatsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStats item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStats> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStats item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringStats(string, string, int?, CallSettings)

public virtual PagedEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> SearchModelMonitoringStats(string modelMonitor, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Searches Model Monitoring Stats generated within a given time window.

Parameters
Name Description
modelMonitor string

Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSearchModelMonitoringStatsResponseModelMonitoringStats

A pageable sequence of ModelMonitoringStats resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
string modelMonitor = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
PagedEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> response = modelMonitoringServiceClient.SearchModelMonitoringStats(modelMonitor);

// Iterate over all response items, lazily performing RPCs as required
foreach (ModelMonitoringStats item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchModelMonitoringStatsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStats item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStats> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStats item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringStatsAsync(ModelMonitorName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> SearchModelMonitoringStatsAsync(ModelMonitorName modelMonitor, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Searches Model Monitoring Stats generated within a given time window.

Parameters
Name Description
modelMonitor ModelMonitorName

Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelMonitoringStatsResponseModelMonitoringStats

A pageable asynchronous sequence of ModelMonitoringStats resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitorName modelMonitor = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]");
// Make the request
PagedAsyncEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> response = modelMonitoringServiceClient.SearchModelMonitoringStatsAsync(modelMonitor);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringStats item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelMonitoringStatsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStats item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStats> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStats item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringStatsAsync(SearchModelMonitoringStatsRequest, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> SearchModelMonitoringStatsAsync(SearchModelMonitoringStatsRequest request, CallSettings callSettings = null)

Searches Model Monitoring Stats generated within a given time window.

Parameters
Name Description
request SearchModelMonitoringStatsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelMonitoringStatsResponseModelMonitoringStats

A pageable asynchronous sequence of ModelMonitoringStats resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
SearchModelMonitoringStatsRequest request = new SearchModelMonitoringStatsRequest
{
    ModelMonitorAsModelMonitorName = ModelMonitorName.FromProjectLocationModelMonitor("[PROJECT]", "[LOCATION]", "[MODEL_MONITOR]"),
    StatsFilter = new SearchModelMonitoringStatsFilter(),
    TimeInterval = new Interval(),
};
// Make the request
PagedAsyncEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> response = modelMonitoringServiceClient.SearchModelMonitoringStatsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringStats item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelMonitoringStatsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStats item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStats> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStats item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchModelMonitoringStatsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> SearchModelMonitoringStatsAsync(string modelMonitor, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Searches Model Monitoring Stats generated within a given time window.

Parameters
Name Description
modelMonitor string

Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{model_monitor}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSearchModelMonitoringStatsResponseModelMonitoringStats

A pageable asynchronous sequence of ModelMonitoringStats resources.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string modelMonitor = "projects/[PROJECT]/locations/[LOCATION]/modelMonitors/[MODEL_MONITOR]";
// Make the request
PagedAsyncEnumerable<SearchModelMonitoringStatsResponse, ModelMonitoringStats> response = modelMonitoringServiceClient.SearchModelMonitoringStatsAsync(modelMonitor);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ModelMonitoringStats item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchModelMonitoringStatsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ModelMonitoringStats item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ModelMonitoringStats> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ModelMonitoringStats item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateModelMonitor(ModelMonitor, FieldMask, CallSettings)

public virtual Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> UpdateModelMonitor(ModelMonitor modelMonitor, FieldMask updateMask, CallSettings callSettings = null)

Updates a ModelMonitor.

Parameters
Name Description
modelMonitor ModelMonitor

Required. The model monitoring configuration which replaces the resource on the server.

updateMask FieldMask

Required. Mask specifying which fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelMonitorUpdateModelMonitorOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
ModelMonitor modelMonitor = new ModelMonitor();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> response = modelMonitoringServiceClient.UpdateModelMonitor(modelMonitor, updateMask);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceUpdateModelMonitor(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

UpdateModelMonitor(UpdateModelMonitorRequest, CallSettings)

public virtual Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> UpdateModelMonitor(UpdateModelMonitorRequest request, CallSettings callSettings = null)

Updates a ModelMonitor.

Parameters
Name Description
request UpdateModelMonitorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelMonitorUpdateModelMonitorOperationMetadata

The RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = ModelMonitoringServiceClient.Create();
// Initialize request argument(s)
UpdateModelMonitorRequest request = new UpdateModelMonitorRequest
{
    ModelMonitor = new ModelMonitor(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> response = modelMonitoringServiceClient.UpdateModelMonitor(request);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> retrievedResponse = modelMonitoringServiceClient.PollOnceUpdateModelMonitor(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

UpdateModelMonitorAsync(ModelMonitor, FieldMask, CallSettings)

public virtual Task<Operation<ModelMonitor, UpdateModelMonitorOperationMetadata>> UpdateModelMonitorAsync(ModelMonitor modelMonitor, FieldMask updateMask, CallSettings callSettings = null)

Updates a ModelMonitor.

Parameters
Name Description
modelMonitor ModelMonitor

Required. The model monitoring configuration which replaces the resource on the server.

updateMask FieldMask

Required. Mask specifying which fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelMonitorUpdateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitor modelMonitor = new ModelMonitor();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.UpdateModelMonitorAsync(modelMonitor, updateMask);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceUpdateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

UpdateModelMonitorAsync(ModelMonitor, FieldMask, CancellationToken)

public virtual Task<Operation<ModelMonitor, UpdateModelMonitorOperationMetadata>> UpdateModelMonitorAsync(ModelMonitor modelMonitor, FieldMask updateMask, CancellationToken cancellationToken)

Updates a ModelMonitor.

Parameters
Name Description
modelMonitor ModelMonitor

Required. The model monitoring configuration which replaces the resource on the server.

updateMask FieldMask

Required. Mask specifying which fields to update.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationModelMonitorUpdateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ModelMonitor modelMonitor = new ModelMonitor();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.UpdateModelMonitorAsync(modelMonitor, updateMask);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceUpdateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

UpdateModelMonitorAsync(UpdateModelMonitorRequest, CallSettings)

public virtual Task<Operation<ModelMonitor, UpdateModelMonitorOperationMetadata>> UpdateModelMonitorAsync(UpdateModelMonitorRequest request, CallSettings callSettings = null)

Updates a ModelMonitor.

Parameters
Name Description
request UpdateModelMonitorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelMonitorUpdateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateModelMonitorRequest request = new UpdateModelMonitorRequest
{
    ModelMonitor = new ModelMonitor(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.UpdateModelMonitorAsync(request);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceUpdateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}

UpdateModelMonitorAsync(UpdateModelMonitorRequest, CancellationToken)

public virtual Task<Operation<ModelMonitor, UpdateModelMonitorOperationMetadata>> UpdateModelMonitorAsync(UpdateModelMonitorRequest request, CancellationToken cancellationToken)

Updates a ModelMonitor.

Parameters
Name Description
request UpdateModelMonitorRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationModelMonitorUpdateModelMonitorOperationMetadata

A Task containing the RPC response.

Example
// Create client
ModelMonitoringServiceClient modelMonitoringServiceClient = await ModelMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateModelMonitorRequest request = new UpdateModelMonitorRequest
{
    ModelMonitor = new ModelMonitor(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> response = await modelMonitoringServiceClient.UpdateModelMonitorAsync(request);

// Poll until the returned long-running operation is complete
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ModelMonitor result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ModelMonitor, UpdateModelMonitorOperationMetadata> retrievedResponse = await modelMonitoringServiceClient.PollOnceUpdateModelMonitorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ModelMonitor retrievedResult = retrievedResponse.Result;
}