Class GroupServiceGrpc.GroupServiceStub (3.54.0)

public static final class GroupServiceGrpc.GroupServiceStub extends AbstractAsyncStub<GroupServiceGrpc.GroupServiceStub>

A stub to allow clients to do asynchronous rpc calls to service GroupService.

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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > GroupServiceGrpc.GroupServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected GroupServiceGrpc.GroupServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
GroupServiceGrpc.GroupServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createGroup(CreateGroupRequest request, StreamObserver<Group> responseObserver)

public void createGroup(CreateGroupRequest request, StreamObserver<Group> responseObserver)

Creates a new group.

Parameters
Name Description
request CreateGroupRequest
responseObserver io.grpc.stub.StreamObserver<Group>

deleteGroup(DeleteGroupRequest request, StreamObserver<Empty> responseObserver)

public void deleteGroup(DeleteGroupRequest request, StreamObserver<Empty> responseObserver)

Deletes an existing group.

Parameters
Name Description
request DeleteGroupRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getGroup(GetGroupRequest request, StreamObserver<Group> responseObserver)

public void getGroup(GetGroupRequest request, StreamObserver<Group> responseObserver)

Gets a single group.

Parameters
Name Description
request GetGroupRequest
responseObserver io.grpc.stub.StreamObserver<Group>

listGroupMembers(ListGroupMembersRequest request, StreamObserver<ListGroupMembersResponse> responseObserver)

public void listGroupMembers(ListGroupMembersRequest request, StreamObserver<ListGroupMembersResponse> responseObserver)

Lists the monitored resources that are members of a group.

Parameters
Name Description
request ListGroupMembersRequest
responseObserver io.grpc.stub.StreamObserver<ListGroupMembersResponse>

listGroups(ListGroupsRequest request, StreamObserver<ListGroupsResponse> responseObserver)

public void listGroups(ListGroupsRequest request, StreamObserver<ListGroupsResponse> responseObserver)

Lists the existing groups.

Parameters
Name Description
request ListGroupsRequest
responseObserver io.grpc.stub.StreamObserver<ListGroupsResponse>

updateGroup(UpdateGroupRequest request, StreamObserver<Group> responseObserver)

public void updateGroup(UpdateGroupRequest request, StreamObserver<Group> responseObserver)

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

Parameters
Name Description
request UpdateGroupRequest
responseObserver io.grpc.stub.StreamObserver<Group>