Google Cloud Monitoring v3 API - Class GroupServiceClientImpl (3.4.0)

public sealed class GroupServiceClientImpl : GroupServiceClient

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

GroupService client wrapper implementation, for convenient use.

Inheritance

object > GroupServiceClient > GroupServiceClientImpl

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Remarks

The Group API lets you inspect and manage your groups.

A group is a named filter that is used to identify a collection of monitored resources. Groups are typically used to mirror the physical and/or logical topology of the environment. Because group membership is computed dynamically, monitored resources that are started in the future are automatically placed in matching groups. By using a group to name monitored resources in, for example, an alert policy, the target of that alert policy is updated automatically as monitored resources are added and removed from the infrastructure.

Constructors

GroupServiceClientImpl(GroupServiceClient, GroupServiceSettings, ILogger)

public GroupServiceClientImpl(GroupService.GroupServiceClient grpcClient, GroupServiceSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientGroupServiceGroupServiceClient

The underlying gRPC client.

settingsGroupServiceSettings

The base GroupServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override GroupService.GroupServiceClient GrpcClient { get; }

The underlying gRPC GroupService client

Property Value
TypeDescription
GroupServiceGroupServiceClient
Overrides

Methods

CreateGroup(CreateGroupRequest, CallSettings)

public override Group CreateGroup(CreateGroupRequest request, CallSettings callSettings = null)

Creates a new group.

Parameters
NameDescription
requestCreateGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Group

The RPC response.

Overrides

CreateGroupAsync(CreateGroupRequest, CallSettings)

public override Task<Group> CreateGroupAsync(CreateGroupRequest request, CallSettings callSettings = null)

Creates a new group.

Parameters
NameDescription
requestCreateGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Overrides

DeleteGroup(DeleteGroupRequest, CallSettings)

public override void DeleteGroup(DeleteGroupRequest request, CallSettings callSettings = null)