Google Cloud Monitoring v3 API - Class GroupServiceClientImpl (3.13.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
Name Description
grpcClient GroupServiceGroupServiceClient

The underlying gRPC client.

settings GroupServiceSettings

The base GroupServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override GroupService.GroupServiceClient GrpcClient { get; }

The underlying gRPC GroupService client

Property Value
Type Description
GroupServiceGroupServiceClient
Overrides

Methods

CreateGroup(CreateGroupRequest, CallSettings)

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

Creates a new group.

Parameters
Name Description
request CreateGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Group

The RPC response.

Overrides

CreateGroupAsync(CreateGroupRequest, CallSettings)

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

Creates a new group.

Parameters
Name Description
request CreateGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGroup

A Task containing the RPC response.

Overrides

DeleteGroup(DeleteGroupRequest, CallSettings)

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

Deletes an existing group.

Parameters
Name Description
request DeleteGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteGroupAsync(DeleteGroupRequest, CallSettings)

public override Task DeleteGroupAsync(DeleteGroupRequest request, CallSettings callSettings = null)

Deletes an existing group.

Parameters
Name Description
request DeleteGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

GetGroup(GetGroupRequest, CallSettings)

public override Group GetGroup(GetGroupRequest request, CallSettings callSettings = null)

Gets a single group.

Parameters
Name Description
request GetGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Group

The RPC response.

Overrides

GetGroupAsync(GetGroupRequest, CallSettings)

public override Task<Group> GetGroupAsync(GetGroupRequest request, CallSettings callSettings = null)

Gets a single group.

Parameters
Name Description
request GetGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGroup

A Task containing the RPC response.

Overrides

ListGroupMembers(ListGroupMembersRequest, CallSettings)

public override PagedEnumerable<ListGroupMembersResponse, MonitoredResource> ListGroupMembers(ListGroupMembersRequest request, CallSettings callSettings = null)

Lists the monitored resources that are members of a group.

Parameters
Name Description
request ListGroupMembersRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGroupMembersResponseMonitoredResource

A pageable sequence of MonitoredResource resources.

Overrides

ListGroupMembersAsync(ListGroupMembersRequest, CallSettings)

public override PagedAsyncEnumerable<ListGroupMembersResponse, MonitoredResource> ListGroupMembersAsync(ListGroupMembersRequest request, CallSettings callSettings = null)

Lists the monitored resources that are members of a group.

Parameters
Name Description
request ListGroupMembersRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGroupMembersResponseMonitoredResource

A pageable asynchronous sequence of MonitoredResource resources.

Overrides

ListGroups(ListGroupsRequest, CallSettings)

public override PagedEnumerable<ListGroupsResponse, Group> ListGroups(ListGroupsRequest request, CallSettings callSettings = null)

Lists the existing groups.

Parameters
Name Description
request ListGroupsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGroupsResponseGroup

A pageable sequence of Group resources.

Overrides

ListGroupsAsync(ListGroupsRequest, CallSettings)

public override PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(ListGroupsRequest request, CallSettings callSettings = null)

Lists the existing groups.

Parameters
Name Description
request ListGroupsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGroupsResponseGroup

A pageable asynchronous sequence of Group resources.

Overrides

UpdateGroup(UpdateGroupRequest, CallSettings)

public override Group UpdateGroup(UpdateGroupRequest request, CallSettings callSettings = null)

Updates an existing group. You can change any group attributes except name.

Parameters
Name Description
request UpdateGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Group

The RPC response.

Overrides

UpdateGroupAsync(UpdateGroupRequest, CallSettings)

public override Task<Group> UpdateGroupAsync(UpdateGroupRequest request, CallSettings callSettings = null)

Updates an existing group. You can change any group attributes except name.

Parameters
Name Description
request UpdateGroupRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGroup

A Task containing the RPC response.

Overrides