Google Cloud Monitoring v3 API - Class ServiceMonitoringService.ServiceMonitoringServiceClient (3.11.0)

public class ServiceMonitoringService.ServiceMonitoringServiceClient : ClientBase<ServiceMonitoringService.ServiceMonitoringServiceClient>

Reference documentation and code samples for the Google Cloud Monitoring v3 API class ServiceMonitoringService.ServiceMonitoringServiceClient.

Client for ServiceMonitoringService

Inheritance

object > ClientBase > ClientBaseServiceMonitoringServiceServiceMonitoringServiceClient > ServiceMonitoringService.ServiceMonitoringServiceClient

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Constructors

ServiceMonitoringServiceClient()

protected ServiceMonitoringServiceClient()

Protected parameterless constructor to allow creation of test doubles.

ServiceMonitoringServiceClient(CallInvoker)

public ServiceMonitoringServiceClient(CallInvoker callInvoker)

Creates a new client for ServiceMonitoringService that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ServiceMonitoringServiceClient(ChannelBase)

public ServiceMonitoringServiceClient(ChannelBase channel)

Creates a new client for ServiceMonitoringService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ServiceMonitoringServiceClient(ClientBaseConfiguration)

protected ServiceMonitoringServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateService(CreateServiceRequest, CallOptions)

public virtual Service CreateService(CreateServiceRequest request, CallOptions options)

Create a Service.

Parameters
Name Description
request CreateServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Service

The response received from the server.

CreateService(CreateServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual Service CreateService(CreateServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a Service.

Parameters
Name Description
request CreateServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Service

The response received from the server.

CreateServiceAsync(CreateServiceRequest, CallOptions)

public virtual AsyncUnaryCall<Service> CreateServiceAsync(CreateServiceRequest request, CallOptions options)

Create a Service.

Parameters
Name Description
request CreateServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

CreateServiceAsync(CreateServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Service> CreateServiceAsync(CreateServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a Service.

Parameters
Name Description
request CreateServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest, CallOptions)

public virtual ServiceLevelObjective CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest request, CallOptions options)

Create a ServiceLevelObjective for the given Service.

Parameters
Name Description
request CreateServiceLevelObjectiveRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ServiceLevelObjective

The response received from the server.

CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest, Metadata, DateTime?, CancellationToken)

public virtual ServiceLevelObjective CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a ServiceLevelObjective for the given Service.

Parameters
Name Description
request CreateServiceLevelObjectiveRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ServiceLevelObjective

The response received from the server.

CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest, CallOptions)

public virtual AsyncUnaryCall<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest request, CallOptions options)

Create a ServiceLevelObjective for the given Service.

Parameters
Name Description
request CreateServiceLevelObjectiveRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallServiceLevelObjective

The call object.

CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a ServiceLevelObjective for the given Service.

Parameters
Name Description
request CreateServiceLevelObjectiveRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallServiceLevelObjective

The call object.

DeleteService(DeleteServiceRequest, CallOptions)

public virtual Empty DeleteService(DeleteServiceRequest request, CallOptions options)

Soft delete this Service.

Parameters
Name Description
request DeleteServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteService(DeleteServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteService(DeleteServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Soft delete this Service.

Parameters
Name Description
request DeleteServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteServiceAsync(DeleteServiceRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteServiceAsync(DeleteServiceRequest request, CallOptions options)

Soft delete this Service.

Parameters
Name Description
request DeleteServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteServiceAsync(DeleteServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteServiceAsync(DeleteServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Soft delete this Service.

Parameters
Name Description
request DeleteServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest, CallOptions)

public virtual Empty DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest request, CallOptions options)

Delete the given ServiceLevelObjective.

Parameters
Name Description
request DeleteServiceLevelObjectiveRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Delete the given ServiceLevelObjective.

Parameters
Name Description
request DeleteServiceLevelObjectiveRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest request, CallOptions options)

Delete the given ServiceLevelObjective.

Parameters
Name Description
request DeleteServiceLevelObjectiveRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Delete the given ServiceLevelObjective.

Parameters
Name Description
request DeleteServiceLevelObjectiveRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetService(GetServiceRequest, CallOptions)

public virtual Service GetService(GetServiceRequest request, CallOptions options)

Get the named Service.

Parameters
Name Description
request GetServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Service

The response received from the server.

GetService(GetServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual Service GetService(GetServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get the named Service.

Parameters
Name Description
request GetServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Service

The response received from the server.

GetServiceAsync(GetServiceRequest, CallOptions)

public virtual AsyncUnaryCall<Service> GetServiceAsync(GetServiceRequest request, CallOptions options)

Get the named Service.

Parameters
Name Description
request GetServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

GetServiceAsync(GetServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Service> GetServiceAsync(GetServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get the named Service.

Parameters
Name Description
request GetServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

GetServiceLevelObjective(GetServiceLevelObjectiveRequest, CallOptions)

public virtual ServiceLevelObjective GetServiceLevelObjective(GetServiceLevelObjectiveRequest request, CallOptions options)

Get a ServiceLevelObjective by name.

Parameters
Name Description
request GetServiceLevelObjectiveRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ServiceLevelObjective

The response received from the server.

GetServiceLevelObjective(GetServiceLevelObjectiveRequest, Metadata, DateTime?, CancellationToken)

public virtual ServiceLevelObjective GetServiceLevelObjective(GetServiceLevelObjectiveRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get a ServiceLevelObjective by name.

Parameters
Name Description
request GetServiceLevelObjectiveRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ServiceLevelObjective

The response received from the server.

GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest, CallOptions)

public virtual AsyncUnaryCall<ServiceLevelObjective> GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest request, CallOptions options)

Get a ServiceLevelObjective by name.

Parameters
Name Description
request GetServiceLevelObjectiveRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallServiceLevelObjective

The call object.

GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ServiceLevelObjective> GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get a ServiceLevelObjective by name.

Parameters
Name Description
request GetServiceLevelObjectiveRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallServiceLevelObjective

The call object.

ListServiceLevelObjectives(ListServiceLevelObjectivesRequest, CallOptions)

public virtual ListServiceLevelObjectivesResponse ListServiceLevelObjectives(ListServiceLevelObjectivesRequest request, CallOptions options)

List the ServiceLevelObjectives for the given Service.

Parameters
Name Description
request ListServiceLevelObjectivesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListServiceLevelObjectivesResponse

The response received from the server.

ListServiceLevelObjectives(ListServiceLevelObjectivesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListServiceLevelObjectivesResponse ListServiceLevelObjectives(ListServiceLevelObjectivesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List the ServiceLevelObjectives for the given Service.

Parameters
Name Description
request ListServiceLevelObjectivesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListServiceLevelObjectivesResponse

The response received from the server.

ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest, CallOptions)

public virtual AsyncUnaryCall<ListServiceLevelObjectivesResponse> ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest request, CallOptions options)

List the ServiceLevelObjectives for the given Service.

Parameters
Name Description
request ListServiceLevelObjectivesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListServiceLevelObjectivesResponse

The call object.

ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListServiceLevelObjectivesResponse> ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List the ServiceLevelObjectives for the given Service.

Parameters
Name Description
request ListServiceLevelObjectivesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListServiceLevelObjectivesResponse

The call object.

ListServices(ListServicesRequest, CallOptions)

public virtual ListServicesResponse ListServices(ListServicesRequest request, CallOptions options)

List Services for this Metrics Scope.

Parameters
Name Description
request ListServicesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListServicesResponse

The response received from the server.

ListServices(ListServicesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListServicesResponse ListServices(ListServicesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List Services for this Metrics Scope.

Parameters
Name Description
request ListServicesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListServicesResponse

The response received from the server.

ListServicesAsync(ListServicesRequest, CallOptions)

public virtual AsyncUnaryCall<ListServicesResponse> ListServicesAsync(ListServicesRequest request, CallOptions options)

List Services for this Metrics Scope.

Parameters
Name Description
request ListServicesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListServicesResponse

The call object.

ListServicesAsync(ListServicesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListServicesResponse> ListServicesAsync(ListServicesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List Services for this Metrics Scope.

Parameters
Name Description
request ListServicesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListServicesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override ServiceMonitoringService.ServiceMonitoringServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ServiceMonitoringServiceServiceMonitoringServiceClient
Overrides

UpdateService(UpdateServiceRequest, CallOptions)

public virtual Service UpdateService(UpdateServiceRequest request, CallOptions options)

Update this Service.

Parameters
Name Description
request UpdateServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Service

The response received from the server.

UpdateService(UpdateServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual Service UpdateService(UpdateServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update this Service.

Parameters
Name Description
request UpdateServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Service

The response received from the server.

UpdateServiceAsync(UpdateServiceRequest, CallOptions)

public virtual AsyncUnaryCall<Service> UpdateServiceAsync(UpdateServiceRequest request, CallOptions options)

Update this Service.

Parameters
Name Description
request UpdateServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

UpdateServiceAsync(UpdateServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Service> UpdateServiceAsync(UpdateServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update this Service.

Parameters
Name Description
request UpdateServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest, CallOptions)

public virtual ServiceLevelObjective UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest request, CallOptions options)

Update the given ServiceLevelObjective.

Parameters
Name Description
request UpdateServiceLevelObjectiveRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ServiceLevelObjective

The response received from the server.

UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest, Metadata, DateTime?, CancellationToken)

public virtual ServiceLevelObjective UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update the given ServiceLevelObjective.

Parameters
Name Description
request UpdateServiceLevelObjectiveRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ServiceLevelObjective

The response received from the server.

UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest, CallOptions)

public virtual AsyncUnaryCall<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest request, CallOptions options)

Update the given ServiceLevelObjective.

Parameters
Name Description
request UpdateServiceLevelObjectiveRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallServiceLevelObjective

The call object.

UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update the given ServiceLevelObjective.

Parameters
Name Description
request UpdateServiceLevelObjectiveRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallServiceLevelObjective

The call object.