Class ServiceMonitoringServiceClient (2.6.0)

public abstract class ServiceMonitoringServiceClient

ServiceMonitoringService client wrapper, for convenient use.

Inheritance

Object > ServiceMonitoringServiceClient

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 workspace's services. These include the Service's monitored resources, its Service-Level Objectives, and a taxonomy of categorized Health Metrics.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ServiceMonitoringService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual ServiceMonitoringService.ServiceMonitoringServiceClient GrpcClient { get; }

The underlying gRPC ServiceMonitoringService client

Property Value
TypeDescription
ServiceMonitoringService.ServiceMonitoringServiceClient

Methods

Create()

public static ServiceMonitoringServiceClient Create()

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

Returns
TypeDescription
ServiceMonitoringServiceClient

The created ServiceMonitoringServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<ServiceMonitoringServiceClient>

The task representing the created ServiceMonitoringServiceClient.

CreateService(IResourceName, Service, CallSettings)

public virtual Service CreateService(IResourceName parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
Service service = new Service();
// Make the request
Service response = serviceMonitoringServiceClient.CreateService(parent, service);

CreateService(FolderName, Service, CallSettings)

public virtual Service CreateService(FolderName parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentFolderName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
Service service = new Service();
// Make the request
Service response = serviceMonitoringServiceClient.CreateService(parent, service);

CreateService(OrganizationName, Service, CallSettings)

public virtual Service CreateService(OrganizationName parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Service service = new Service();
// Make the request
Service response = serviceMonitoringServiceClient.CreateService(parent, service);

CreateService(ProjectName, Service, CallSettings)

public virtual Service CreateService(ProjectName parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentProjectName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Service service = new Service();
// Make the request
Service response = serviceMonitoringServiceClient.CreateService(parent, service);

CreateService(CreateServiceRequest, CallSettings)

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

Create a Service.

Parameters
NameDescription
requestCreateServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Service = new Service(),
    ServiceId = "",
};
// Make the request
Service response = serviceMonitoringServiceClient.CreateService(request);

CreateService(String, Service, CallSettings)

public virtual Service CreateService(string parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentString

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Service service = new Service();
// Make the request
Service response = serviceMonitoringServiceClient.CreateService(parent, service);

CreateServiceAsync(IResourceName, Service, CallSettings)

public virtual Task<Service> CreateServiceAsync(IResourceName parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(IResourceName, Service, CancellationToken)

public virtual Task<Service> CreateServiceAsync(IResourceName parent, Service service, CancellationToken cancellationToken)

Create a Service.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(FolderName, Service, CallSettings)

public virtual Task<Service> CreateServiceAsync(FolderName parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentFolderName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(FolderName, Service, CancellationToken)

public virtual Task<Service> CreateServiceAsync(FolderName parent, Service service, CancellationToken cancellationToken)

Create a Service.

Parameters
NameDescription
parentFolderName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(OrganizationName, Service, CallSettings)

public virtual Task<Service> CreateServiceAsync(OrganizationName parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(OrganizationName, Service, CancellationToken)

public virtual Task<Service> CreateServiceAsync(OrganizationName parent, Service service, CancellationToken cancellationToken)

Create a Service.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(ProjectName, Service, CallSettings)

public virtual Task<Service> CreateServiceAsync(ProjectName parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentProjectName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(ProjectName, Service, CancellationToken)

public virtual Task<Service> CreateServiceAsync(ProjectName parent, Service service, CancellationToken cancellationToken)

Create a Service.

Parameters
NameDescription
parentProjectName

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(CreateServiceRequest, CallSettings)

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

Create a Service.

Parameters
NameDescription
requestCreateServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Service = new Service(),
    ServiceId = "",
};
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(request);

CreateServiceAsync(CreateServiceRequest, CancellationToken)

public virtual Task<Service> CreateServiceAsync(CreateServiceRequest request, CancellationToken cancellationToken)

Create a Service.

Parameters
NameDescription
requestCreateServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Service = new Service(),
    ServiceId = "",
};
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(request);

CreateServiceAsync(String, Service, CallSettings)

public virtual Task<Service> CreateServiceAsync(string parent, Service service, CallSettings callSettings = null)

Create a Service.

Parameters
NameDescription
parentString

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceAsync(String, Service, CancellationToken)

public virtual Task<Service> CreateServiceAsync(string parent, Service service, CancellationToken cancellationToken)

Create a Service.

Parameters
NameDescription
parentString

Required. Resource name of the parent workspace. The format is:

projects/[PROJECT_ID_OR_NUMBER]

serviceService

Required. The Service to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

CreateServiceLevelObjective(IResourceName, ServiceLevelObjective, CallSettings)

public virtual ServiceLevelObjective CreateServiceLevelObjective(IResourceName parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.CreateServiceLevelObjective(parent, serviceLevelObjective);

CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest, CallSettings)

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

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
requestCreateServiceLevelObjectiveRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
CreateServiceLevelObjectiveRequest request = new CreateServiceLevelObjectiveRequest
{
    ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    ServiceLevelObjective = new ServiceLevelObjective(),
    ServiceLevelObjectiveId = "",
};
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.CreateServiceLevelObjective(request);

CreateServiceLevelObjective(ServiceName, ServiceLevelObjective, CallSettings)

public virtual ServiceLevelObjective CreateServiceLevelObjective(ServiceName parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentServiceName

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.CreateServiceLevelObjective(parent, serviceLevelObjective);

CreateServiceLevelObjective(String, ServiceLevelObjective, CallSettings)

public virtual ServiceLevelObjective CreateServiceLevelObjective(string parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentString

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/services/[SERVICE]";
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.CreateServiceLevelObjective(parent, serviceLevelObjective);

CreateServiceLevelObjectiveAsync(IResourceName, ServiceLevelObjective, CallSettings)

public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(IResourceName parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

CreateServiceLevelObjectiveAsync(IResourceName, ServiceLevelObjective, CancellationToken)

public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(IResourceName parent, ServiceLevelObjective serviceLevelObjective, CancellationToken cancellationToken)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest, CallSettings)

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

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
requestCreateServiceLevelObjectiveRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceLevelObjectiveRequest request = new CreateServiceLevelObjectiveRequest
{
    ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    ServiceLevelObjective = new ServiceLevelObjective(),
    ServiceLevelObjectiveId = "",
};
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(request);

CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest, CancellationToken)

public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest request, CancellationToken cancellationToken)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
requestCreateServiceLevelObjectiveRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceLevelObjectiveRequest request = new CreateServiceLevelObjectiveRequest
{
    ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    ServiceLevelObjective = new ServiceLevelObjective(),
    ServiceLevelObjectiveId = "",
};
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(request);

CreateServiceLevelObjectiveAsync(ServiceName, ServiceLevelObjective, CallSettings)

public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(ServiceName parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentServiceName

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

CreateServiceLevelObjectiveAsync(ServiceName, ServiceLevelObjective, CancellationToken)

public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(ServiceName parent, ServiceLevelObjective serviceLevelObjective, CancellationToken cancellationToken)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentServiceName

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

CreateServiceLevelObjectiveAsync(String, ServiceLevelObjective, CallSettings)

public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(string parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentString

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/services/[SERVICE]";
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

CreateServiceLevelObjectiveAsync(String, ServiceLevelObjective, CancellationToken)

public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(string parent, ServiceLevelObjective serviceLevelObjective, CancellationToken cancellationToken)

Create a ServiceLevelObjective for the given Service.

Parameters
NameDescription
parentString

Required. Resource name of the parent Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to create. The provided name will be respected if no ServiceLevelObjective exists with this name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/services/[SERVICE]";
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

DeleteService(IResourceName, CallSettings)

public virtual void DeleteService(IResourceName name, CallSettings callSettings = null)

Soft delete this Service.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
serviceMonitoringServiceClient.DeleteService(name);

DeleteService(DeleteServiceRequest, CallSettings)

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

Soft delete this Service.

Parameters
NameDescription
requestDeleteServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
DeleteServiceRequest request = new DeleteServiceRequest
{
    ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
};
// Make the request
serviceMonitoringServiceClient.DeleteService(request);

DeleteService(ServiceName, CallSettings)

public virtual void DeleteService(ServiceName name, CallSettings callSettings = null)

Soft delete this Service.

Parameters
NameDescription
nameServiceName

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
// Make the request
serviceMonitoringServiceClient.DeleteService(name);

DeleteService(String, CallSettings)

public virtual void DeleteService(string name, CallSettings callSettings = null)

Soft delete this Service.

Parameters
NameDescription
nameString

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]";
// Make the request
serviceMonitoringServiceClient.DeleteService(name);

DeleteServiceAsync(IResourceName, CallSettings)

public virtual Task DeleteServiceAsync(IResourceName name, CallSettings callSettings = null)

Soft delete this Service.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
await serviceMonitoringServiceClient.DeleteServiceAsync(name);

DeleteServiceAsync(IResourceName, CancellationToken)

public virtual Task DeleteServiceAsync(IResourceName name, CancellationToken cancellationToken)

Soft delete this Service.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
await serviceMonitoringServiceClient.DeleteServiceAsync(name);

DeleteServiceAsync(DeleteServiceRequest, CallSettings)

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

Soft delete this Service.

Parameters
NameDescription
requestDeleteServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceRequest request = new DeleteServiceRequest
{
    ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
};
// Make the request
await serviceMonitoringServiceClient.DeleteServiceAsync(request);

DeleteServiceAsync(DeleteServiceRequest, CancellationToken)

public virtual Task DeleteServiceAsync(DeleteServiceRequest request, CancellationToken cancellationToken)

Soft delete this Service.

Parameters
NameDescription
requestDeleteServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceRequest request = new DeleteServiceRequest
{
    ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
};
// Make the request
await serviceMonitoringServiceClient.DeleteServiceAsync(request);

DeleteServiceAsync(ServiceName, CallSettings)

public virtual Task DeleteServiceAsync(ServiceName name, CallSettings callSettings = null)

Soft delete this Service.

Parameters
NameDescription
nameServiceName

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
// Make the request
await serviceMonitoringServiceClient.DeleteServiceAsync(name);

DeleteServiceAsync(ServiceName, CancellationToken)

public virtual Task DeleteServiceAsync(ServiceName name, CancellationToken cancellationToken)

Soft delete this Service.

Parameters
NameDescription
nameServiceName

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
// Make the request
await serviceMonitoringServiceClient.DeleteServiceAsync(name);

DeleteServiceAsync(String, CallSettings)

public virtual Task DeleteServiceAsync(string name, CallSettings callSettings = null)

Soft delete this Service.

Parameters
NameDescription
nameString

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]";
// Make the request
await serviceMonitoringServiceClient.DeleteServiceAsync(name);

DeleteServiceAsync(String, CancellationToken)

public virtual Task DeleteServiceAsync(string name, CancellationToken cancellationToken)

Soft delete this Service.

Parameters
NameDescription
nameString

Required. Resource name of the Service to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]";
// Make the request
await serviceMonitoringServiceClient.DeleteServiceAsync(name);

DeleteServiceLevelObjective(IResourceName, CallSettings)

public virtual void DeleteServiceLevelObjective(IResourceName name, CallSettings callSettings = null)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
serviceMonitoringServiceClient.DeleteServiceLevelObjective(name);

DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest, CallSettings)

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

Delete the given ServiceLevelObjective.

Parameters
NameDescription
requestDeleteServiceLevelObjectiveRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
DeleteServiceLevelObjectiveRequest request = new DeleteServiceLevelObjectiveRequest
{
    ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
};
// Make the request
serviceMonitoringServiceClient.DeleteServiceLevelObjective(request);

DeleteServiceLevelObjective(ServiceLevelObjectiveName, CallSettings)

public virtual void DeleteServiceLevelObjective(ServiceLevelObjectiveName name, CallSettings callSettings = null)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameServiceLevelObjectiveName

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
// Make the request
serviceMonitoringServiceClient.DeleteServiceLevelObjective(name);

DeleteServiceLevelObjective(String, CallSettings)

public virtual void DeleteServiceLevelObjective(string name, CallSettings callSettings = null)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameString

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
// Make the request
serviceMonitoringServiceClient.DeleteServiceLevelObjective(name);

DeleteServiceLevelObjectiveAsync(IResourceName, CallSettings)

public virtual Task DeleteServiceLevelObjectiveAsync(IResourceName name, CallSettings callSettings = null)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

DeleteServiceLevelObjectiveAsync(IResourceName, CancellationToken)

public virtual Task DeleteServiceLevelObjectiveAsync(IResourceName name, CancellationToken cancellationToken)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest, CallSettings)

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

Delete the given ServiceLevelObjective.

Parameters
NameDescription
requestDeleteServiceLevelObjectiveRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceLevelObjectiveRequest request = new DeleteServiceLevelObjectiveRequest
{
    ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
};
// Make the request
await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(request);

DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest, CancellationToken)

public virtual Task DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest request, CancellationToken cancellationToken)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
requestDeleteServiceLevelObjectiveRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceLevelObjectiveRequest request = new DeleteServiceLevelObjectiveRequest
{
    ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
};
// Make the request
await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(request);

DeleteServiceLevelObjectiveAsync(ServiceLevelObjectiveName, CallSettings)

public virtual Task DeleteServiceLevelObjectiveAsync(ServiceLevelObjectiveName name, CallSettings callSettings = null)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameServiceLevelObjectiveName

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
// Make the request
await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

DeleteServiceLevelObjectiveAsync(ServiceLevelObjectiveName, CancellationToken)

public virtual Task DeleteServiceLevelObjectiveAsync(ServiceLevelObjectiveName name, CancellationToken cancellationToken)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameServiceLevelObjectiveName

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
// Make the request
await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

DeleteServiceLevelObjectiveAsync(String, CallSettings)

public virtual Task DeleteServiceLevelObjectiveAsync(string name, CallSettings callSettings = null)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameString

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
// Make the request
await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

DeleteServiceLevelObjectiveAsync(String, CancellationToken)

public virtual Task DeleteServiceLevelObjectiveAsync(string name, CancellationToken cancellationToken)

Delete the given ServiceLevelObjective.

Parameters
NameDescription
nameString

Required. Resource name of the ServiceLevelObjective to delete. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
// Make the request
await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

GetService(IResourceName, CallSettings)

public virtual Service GetService(IResourceName name, CallSettings callSettings = null)

Get the named Service.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Service response = serviceMonitoringServiceClient.GetService(name);

GetService(GetServiceRequest, CallSettings)

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

Get the named Service.

Parameters
NameDescription
requestGetServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
};
// Make the request
Service response = serviceMonitoringServiceClient.GetService(request);

GetService(ServiceName, CallSettings)

public virtual Service GetService(ServiceName name, CallSettings callSettings = null)

Get the named Service.

Parameters
NameDescription
nameServiceName

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
// Make the request
Service response = serviceMonitoringServiceClient.GetService(name);

GetService(String, CallSettings)

public virtual Service GetService(string name, CallSettings callSettings = null)

Get the named Service.

Parameters
NameDescription
nameString

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]";
// Make the request
Service response = serviceMonitoringServiceClient.GetService(name);

GetServiceAsync(IResourceName, CallSettings)

public virtual Task<Service> GetServiceAsync(IResourceName name, CallSettings callSettings = null)

Get the named Service.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

GetServiceAsync(IResourceName, CancellationToken)

public virtual Task<Service> GetServiceAsync(IResourceName name, CancellationToken cancellationToken)

Get the named Service.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

GetServiceAsync(GetServiceRequest, CallSettings)

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

Get the named Service.

Parameters
NameDescription
requestGetServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
};
// Make the request
Service response = await serviceMonitoringServiceClient.GetServiceAsync(request);

GetServiceAsync(GetServiceRequest, CancellationToken)

public virtual Task<Service> GetServiceAsync(GetServiceRequest request, CancellationToken cancellationToken)

Get the named Service.

Parameters
NameDescription
requestGetServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
};
// Make the request
Service response = await serviceMonitoringServiceClient.GetServiceAsync(request);

GetServiceAsync(ServiceName, CallSettings)

public virtual Task<Service> GetServiceAsync(ServiceName name, CallSettings callSettings = null)

Get the named Service.

Parameters
NameDescription
nameServiceName

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
// Make the request
Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

GetServiceAsync(ServiceName, CancellationToken)

public virtual Task<Service> GetServiceAsync(ServiceName name, CancellationToken cancellationToken)

Get the named Service.

Parameters
NameDescription
nameServiceName

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
// Make the request
Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

GetServiceAsync(String, CallSettings)

public virtual Task<Service> GetServiceAsync(string name, CallSettings callSettings = null)

Get the named Service.

Parameters
NameDescription
nameString

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]";
// Make the request
Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

GetServiceAsync(String, CancellationToken)

public virtual Task<Service> GetServiceAsync(string name, CancellationToken cancellationToken)

Get the named Service.

Parameters
NameDescription
nameString

Required. Resource name of the Service. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]";
// Make the request
Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

GetServiceLevelObjective(IResourceName, CallSettings)

public virtual ServiceLevelObjective GetServiceLevelObjective(IResourceName name, CallSettings callSettings = null)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.GetServiceLevelObjective(name);

GetServiceLevelObjective(GetServiceLevelObjectiveRequest, CallSettings)

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

Get a ServiceLevelObjective by name.

Parameters
NameDescription
requestGetServiceLevelObjectiveRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
GetServiceLevelObjectiveRequest request = new GetServiceLevelObjectiveRequest
{
    ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
    View = ServiceLevelObjective.Types.View.Unspecified,
};
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.GetServiceLevelObjective(request);

GetServiceLevelObjective(ServiceLevelObjectiveName, CallSettings)

public virtual ServiceLevelObjective GetServiceLevelObjective(ServiceLevelObjectiveName name, CallSettings callSettings = null)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameServiceLevelObjectiveName

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.GetServiceLevelObjective(name);

GetServiceLevelObjective(String, CallSettings)

public virtual ServiceLevelObjective GetServiceLevelObjective(string name, CallSettings callSettings = null)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameString

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.GetServiceLevelObjective(name);

GetServiceLevelObjectiveAsync(IResourceName, CallSettings)

public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(IResourceName name, CallSettings callSettings = null)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

GetServiceLevelObjectiveAsync(IResourceName, CancellationToken)

public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(IResourceName name, CancellationToken cancellationToken)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameIResourceName

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName name = new UnparsedResourceName("a/wildcard/resource");
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest, CallSettings)

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

Get a ServiceLevelObjective by name.

Parameters
NameDescription
requestGetServiceLevelObjectiveRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceLevelObjectiveRequest request = new GetServiceLevelObjectiveRequest
{
    ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
    View = ServiceLevelObjective.Types.View.Unspecified,
};
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(request);

GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest, CancellationToken)

public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest request, CancellationToken cancellationToken)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
requestGetServiceLevelObjectiveRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceLevelObjectiveRequest request = new GetServiceLevelObjectiveRequest
{
    ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
    View = ServiceLevelObjective.Types.View.Unspecified,
};
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(request);

GetServiceLevelObjectiveAsync(ServiceLevelObjectiveName, CallSettings)

public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(ServiceLevelObjectiveName name, CallSettings callSettings = null)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameServiceLevelObjectiveName

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

GetServiceLevelObjectiveAsync(ServiceLevelObjectiveName, CancellationToken)

public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(ServiceLevelObjectiveName name, CancellationToken cancellationToken)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameServiceLevelObjectiveName

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

GetServiceLevelObjectiveAsync(String, CallSettings)

public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(string name, CallSettings callSettings = null)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameString

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

GetServiceLevelObjectiveAsync(String, CancellationToken)

public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(string name, CancellationToken cancellationToken)

Get a ServiceLevelObjective by name.

Parameters
NameDescription
nameString

Required. Resource name of the ServiceLevelObjective to get. The format is:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

ListServiceLevelObjectives(IResourceName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectives(IResourceName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List the ServiceLevelObjectives for the given Service.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective>

A pageable sequence of ServiceLevelObjective resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectives(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceLevelObjective 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 (ListServiceLevelObjectivesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServiceLevelObjective 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<ServiceLevelObjective> 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 (ServiceLevelObjective 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;

ListServiceLevelObjectives(ListServiceLevelObjectivesRequest, CallSettings)

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

List the ServiceLevelObjectives for the given Service.

Parameters
NameDescription
requestListServiceLevelObjectivesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective>

A pageable sequence of ServiceLevelObjective resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ListServiceLevelObjectivesRequest request = new ListServiceLevelObjectivesRequest
{
    ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    Filter = "",
    View = ServiceLevelObjective.Types.View.Unspecified,
};
// Make the request
PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectives(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceLevelObjective 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 (ListServiceLevelObjectivesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServiceLevelObjective 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<ServiceLevelObjective> 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 (ServiceLevelObjective 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;

ListServiceLevelObjectives(ServiceName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectives(ServiceName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List the ServiceLevelObjectives for the given Service.

Parameters
NameDescription
parentServiceName

Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective>

A pageable sequence of ServiceLevelObjective resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
// Make the request
PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectives(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceLevelObjective 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 (ListServiceLevelObjectivesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServiceLevelObjective 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<ServiceLevelObjective> 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 (ServiceLevelObjective 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;

ListServiceLevelObjectives(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectives(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List the ServiceLevelObjectives for the given Service.

Parameters
NameDescription
parentString

Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective>

A pageable sequence of ServiceLevelObjective resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/services/[SERVICE]";
// Make the request
PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectives(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServiceLevelObjective 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 (ListServiceLevelObjectivesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServiceLevelObjective 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<ServiceLevelObjective> 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 (ServiceLevelObjective 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;

ListServiceLevelObjectivesAsync(IResourceName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectivesAsync(IResourceName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List the ServiceLevelObjectives for the given Service.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective>

A pageable asynchronous sequence of ServiceLevelObjective resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectivesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceLevelObjective 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((ListServiceLevelObjectivesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServiceLevelObjective 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<ServiceLevelObjective> 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 (ServiceLevelObjective 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;

ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest, CallSettings)

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

List the ServiceLevelObjectives for the given Service.

Parameters
NameDescription
requestListServiceLevelObjectivesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective>

A pageable asynchronous sequence of ServiceLevelObjective resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ListServiceLevelObjectivesRequest request = new ListServiceLevelObjectivesRequest
{
    ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    Filter = "",
    View = ServiceLevelObjective.Types.View.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectivesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceLevelObjective 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((ListServiceLevelObjectivesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServiceLevelObjective 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<ServiceLevelObjective> 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 (ServiceLevelObjective 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;

ListServiceLevelObjectivesAsync(ServiceName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectivesAsync(ServiceName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List the ServiceLevelObjectives for the given Service.

Parameters
NameDescription
parentServiceName

Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective>

A pageable asynchronous sequence of ServiceLevelObjective resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
// Make the request
PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectivesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceLevelObjective 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((ListServiceLevelObjectivesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServiceLevelObjective 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<ServiceLevelObjective> 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 (ServiceLevelObjective 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;

ListServiceLevelObjectivesAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectivesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List the ServiceLevelObjectives for the given Service.

Parameters
NameDescription
parentString

Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective>

A pageable asynchronous sequence of ServiceLevelObjective resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/services/[SERVICE]";
// Make the request
PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectivesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServiceLevelObjective 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((ListServiceLevelObjectivesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServiceLevelObjective 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<ServiceLevelObjective> 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 (ServiceLevelObjective 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;

ListServices(IResourceName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(IResourceName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicesResponse, Service>

A pageable sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServices(FolderName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(FolderName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentFolderName

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicesResponse, Service>

A pageable sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServices(OrganizationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(OrganizationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicesResponse, Service>

A pageable sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServices(ProjectName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(ProjectName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentProjectName

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicesResponse, Service>

A pageable sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServices(ListServicesRequest, CallSettings)

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

List Services for this workspace.

Parameters
NameDescription
requestListServicesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicesResponse, Service>

A pageable sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ListServicesRequest request = new ListServicesRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServices(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentString

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicesResponse, Service>

A pageable sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(IResourceName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(IResourceName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentIResourceName

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicesResponse, Service>

A pageable asynchronous sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service 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((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(FolderName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(FolderName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentFolderName

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicesResponse, Service>

A pageable asynchronous sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service 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((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(OrganizationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(OrganizationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentOrganizationName

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicesResponse, Service>

A pageable asynchronous sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service 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((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(ProjectName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ProjectName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentProjectName

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicesResponse, Service>

A pageable asynchronous sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service 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((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(ListServicesRequest, CallSettings)

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

List Services for this workspace.

Parameters
NameDescription
requestListServicesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicesResponse, Service>

A pageable asynchronous sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ListServicesRequest request = new ListServicesRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service 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((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

List Services for this workspace.

Parameters
NameDescription
parentString

Required. Resource name of the parent containing the listed services, either a project or a Monitoring Workspace. The formats are:

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicesResponse, Service>

A pageable asynchronous sequence of Service resources.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service 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((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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
TypeDescription
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.

UpdateService(Service, CallSettings)

public virtual Service UpdateService(Service service, CallSettings callSettings = null)

Update this Service.

Parameters
NameDescription
serviceService

Required. The Service to draw updates from. The given name specifies the resource to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
Service service = new Service();
// Make the request
Service response = serviceMonitoringServiceClient.UpdateService(service);

UpdateService(UpdateServiceRequest, CallSettings)

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

Update this Service.

Parameters
NameDescription
requestUpdateServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
UpdateServiceRequest request = new UpdateServiceRequest
{
    Service = new Service(),
    UpdateMask = new FieldMask(),
};
// Make the request
Service response = serviceMonitoringServiceClient.UpdateService(request);

UpdateServiceAsync(Service, CallSettings)

public virtual Task<Service> UpdateServiceAsync(Service service, CallSettings callSettings = null)

Update this Service.

Parameters
NameDescription
serviceService

Required. The Service to draw updates from. The given name specifies the resource to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.UpdateServiceAsync(service);

UpdateServiceAsync(Service, CancellationToken)

public virtual Task<Service> UpdateServiceAsync(Service service, CancellationToken cancellationToken)

Update this Service.

Parameters
NameDescription
serviceService

Required. The Service to draw updates from. The given name specifies the resource to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
Service service = new Service();
// Make the request
Service response = await serviceMonitoringServiceClient.UpdateServiceAsync(service);

UpdateServiceAsync(UpdateServiceRequest, CallSettings)

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

Update this Service.

Parameters
NameDescription
requestUpdateServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceRequest request = new UpdateServiceRequest
{
    Service = new Service(),
    UpdateMask = new FieldMask(),
};
// Make the request
Service response = await serviceMonitoringServiceClient.UpdateServiceAsync(request);

UpdateServiceAsync(UpdateServiceRequest, CancellationToken)

public virtual Task<Service> UpdateServiceAsync(UpdateServiceRequest request, CancellationToken cancellationToken)

Update this Service.

Parameters
NameDescription
requestUpdateServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Service>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceRequest request = new UpdateServiceRequest
{
    Service = new Service(),
    UpdateMask = new FieldMask(),
};
// Make the request
Service response = await serviceMonitoringServiceClient.UpdateServiceAsync(request);

UpdateServiceLevelObjective(ServiceLevelObjective, CallSettings)

public virtual ServiceLevelObjective UpdateServiceLevelObjective(ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Update the given ServiceLevelObjective.

Parameters
NameDescription
serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to draw updates from. The given name specifies the resource to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.UpdateServiceLevelObjective(serviceLevelObjective);

UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest, CallSettings)

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

Update the given ServiceLevelObjective.

Parameters
NameDescription
requestUpdateServiceLevelObjectiveRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ServiceLevelObjective

The RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
// Initialize request argument(s)
UpdateServiceLevelObjectiveRequest request = new UpdateServiceLevelObjectiveRequest
{
    ServiceLevelObjective = new ServiceLevelObjective(),
    UpdateMask = new FieldMask(),
};
// Make the request
ServiceLevelObjective response = serviceMonitoringServiceClient.UpdateServiceLevelObjective(request);

UpdateServiceLevelObjectiveAsync(ServiceLevelObjective, CallSettings)

public virtual Task<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Update the given ServiceLevelObjective.

Parameters
NameDescription
serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to draw updates from. The given name specifies the resource to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.UpdateServiceLevelObjectiveAsync(serviceLevelObjective);

UpdateServiceLevelObjectiveAsync(ServiceLevelObjective, CancellationToken)

public virtual Task<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(ServiceLevelObjective serviceLevelObjective, CancellationToken cancellationToken)

Update the given ServiceLevelObjective.

Parameters
NameDescription
serviceLevelObjectiveServiceLevelObjective

Required. The ServiceLevelObjective to draw updates from. The given name specifies the resource to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.UpdateServiceLevelObjectiveAsync(serviceLevelObjective);

UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest, CallSettings)

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

Update the given ServiceLevelObjective.

Parameters
NameDescription
requestUpdateServiceLevelObjectiveRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceLevelObjectiveRequest request = new UpdateServiceLevelObjectiveRequest
{
    ServiceLevelObjective = new ServiceLevelObjective(),
    UpdateMask = new FieldMask(),
};
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.UpdateServiceLevelObjectiveAsync(request);

UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest, CancellationToken)

public virtual Task<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest request, CancellationToken cancellationToken)

Update the given ServiceLevelObjective.

Parameters
NameDescription
requestUpdateServiceLevelObjectiveRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServiceLevelObjective>

A Task containing the RPC response.

Example
// Create client
ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceLevelObjectiveRequest request = new UpdateServiceLevelObjectiveRequest
{
    ServiceLevelObjective = new ServiceLevelObjective(),
    UpdateMask = new FieldMask(),
};
// Make the request
ServiceLevelObjective response = await serviceMonitoringServiceClient.UpdateServiceLevelObjectiveAsync(request);