Google Cloud Monitoring v3 API - Class ServiceMonitoringServiceClientImpl (3.12.0)

public sealed class ServiceMonitoringServiceClientImpl : ServiceMonitoringServiceClient

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

ServiceMonitoringService client wrapper implementation, for convenient use.

Inheritance

object > ServiceMonitoringServiceClient > ServiceMonitoringServiceClientImpl

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Remarks

The Cloud Monitoring Service-Oriented Monitoring API has endpoints for managing and querying aspects of a Metrics Scope's services. These include the Service's monitored resources, its Service-Level Objectives, and a taxonomy of categorized Health Metrics.

Constructors

ServiceMonitoringServiceClientImpl(ServiceMonitoringServiceClient, ServiceMonitoringServiceSettings, ILogger)

public ServiceMonitoringServiceClientImpl(ServiceMonitoringService.ServiceMonitoringServiceClient grpcClient, ServiceMonitoringServiceSettings settings, ILogger logger)

Constructs a client wrapper for the ServiceMonitoringService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient ServiceMonitoringServiceServiceMonitoringServiceClient

The underlying gRPC client.

settings ServiceMonitoringServiceSettings

The base ServiceMonitoringServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override ServiceMonitoringService.ServiceMonitoringServiceClient GrpcClient { get; }

The underlying gRPC ServiceMonitoringService client

Property Value
Type Description
ServiceMonitoringServiceServiceMonitoringServiceClient
Overrides

Methods

CreateService(CreateServiceRequest, CallSettings)

public override Service CreateService(CreateServiceRequest request, CallSettings callSettings = null)

Create a Service.

Parameters
Name Description
request CreateServiceRequest

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
Service

The RPC response.

Overrides

CreateServiceAsync(CreateServiceRequest, CallSettings)

public override Task<Service> CreateServiceAsync(CreateServiceRequest request, CallSettings callSettings = null)

Create a Service.

Parameters
Name Description
request CreateServiceRequest

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
TaskService

A Task containing the RPC response.

Overrides

CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest, CallSettings)

public override ServiceLevelObjective CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Create a ServiceLevelObjective for the given Service.

Parameters
Name Description
request CreateServiceLevelObjectiveRequest

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
ServiceLevelObjective

The RPC response.

Overrides

CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest, CallSettings)

public override Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Create a ServiceLevelObjective for the given Service.

Parameters
Name Description
request CreateServiceLevelObjectiveRequest

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
TaskServiceLevelObjective

A Task containing the RPC response.

Overrides

DeleteService(DeleteServiceRequest, CallSettings)

public override void DeleteService(DeleteServiceRequest request, CallSettings callSettings = null)

Soft delete this Service.

Parameters
Name Description
request DeleteServiceRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteServiceAsync(DeleteServiceRequest, CallSettings)

public override Task DeleteServiceAsync(DeleteServiceRequest request, CallSettings callSettings = null)

Soft delete this Service.

Parameters
Name Description
request DeleteServiceRequest

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
Task

A Task containing the RPC response.

Overrides

DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest, CallSettings)

public override void DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Delete the given ServiceLevelObjective.

Parameters
Name Description
request DeleteServiceLevelObjectiveRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest, CallSettings)

public override Task DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Delete the given ServiceLevelObjective.

Parameters
Name Description
request DeleteServiceLevelObjectiveRequest

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
Task

A Task containing the RPC response.

Overrides

GetService(GetServiceRequest, CallSettings)

public override Service GetService(GetServiceRequest request, CallSettings callSettings = null)

Get the named Service.

Parameters
Name Description
request GetServiceRequest

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
Service

The RPC response.

Overrides

GetServiceAsync(GetServiceRequest, CallSettings)

public override Task<Service> GetServiceAsync(GetServiceRequest request, CallSettings callSettings = null)

Get the named Service.

Parameters
Name Description
request GetServiceRequest

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
TaskService

A Task containing the RPC response.

Overrides

GetServiceLevelObjective(GetServiceLevelObjectiveRequest, CallSettings)

public override ServiceLevelObjective GetServiceLevelObjective(GetServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Get a ServiceLevelObjective by name.

Parameters
Name Description
request GetServiceLevelObjectiveRequest

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
ServiceLevelObjective

The RPC response.

Overrides

GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest, CallSettings)

public override Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Get a ServiceLevelObjective by name.

Parameters
Name Description
request GetServiceLevelObjectiveRequest

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
TaskServiceLevelObjective

A Task containing the RPC response.

Overrides

ListServiceLevelObjectives(ListServiceLevelObjectivesRequest, CallSettings)

public override PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectives(ListServiceLevelObjectivesRequest request, CallSettings callSettings = null)

List the ServiceLevelObjectives for the given Service.

Parameters
Name Description
request ListServiceLevelObjectivesRequest

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
PagedEnumerableListServiceLevelObjectivesResponseServiceLevelObjective

A pageable sequence of ServiceLevelObjective resources.

Overrides

ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest, CallSettings)

public override PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest request, CallSettings callSettings = null)

List the ServiceLevelObjectives for the given Service.

Parameters
Name Description
request ListServiceLevelObjectivesRequest

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
PagedAsyncEnumerableListServiceLevelObjectivesResponseServiceLevelObjective

A pageable asynchronous sequence of ServiceLevelObjective resources.

Overrides

ListServices(ListServicesRequest, CallSettings)

public override PagedEnumerable<ListServicesResponse, Service> ListServices(ListServicesRequest request, CallSettings callSettings = null)

List Services for this Metrics Scope.

Parameters
Name Description
request ListServicesRequest

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
PagedEnumerableListServicesResponseService

A pageable sequence of Service resources.

Overrides

ListServicesAsync(ListServicesRequest, CallSettings)

public override PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)

List Services for this Metrics Scope.

Parameters
Name Description
request ListServicesRequest

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
PagedAsyncEnumerableListServicesResponseService

A pageable asynchronous sequence of Service resources.

Overrides

UpdateService(UpdateServiceRequest, CallSettings)

public override Service UpdateService(UpdateServiceRequest request, CallSettings callSettings = null)

Update this Service.

Parameters
Name Description
request UpdateServiceRequest

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
Service

The RPC response.

Overrides

UpdateServiceAsync(UpdateServiceRequest, CallSettings)

public override Task<Service> UpdateServiceAsync(UpdateServiceRequest request, CallSettings callSettings = null)

Update this Service.

Parameters
Name Description
request UpdateServiceRequest

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
TaskService

A Task containing the RPC response.

Overrides

UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest, CallSettings)

public override ServiceLevelObjective UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Update the given ServiceLevelObjective.

Parameters
Name Description
request UpdateServiceLevelObjectiveRequest

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
ServiceLevelObjective

The RPC response.

Overrides

UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest, CallSettings)

public override Task<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Update the given ServiceLevelObjective.

Parameters
Name Description
request UpdateServiceLevelObjectiveRequest

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
TaskServiceLevelObjective

A Task containing the RPC response.

Overrides