Interface GroupServiceGrpc.AsyncService (3.23.0)

public static interface GroupServiceGrpc.AsyncService

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.

Methods

createGroup(CreateGroupRequest request, StreamObserver<Group> responseObserver)

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

Creates a new group.

Parameters
NameDescription
requestCreateGroupRequest
responseObserverio.grpc.stub.StreamObserver<Group>

deleteGroup(DeleteGroupRequest request, StreamObserver<Empty> responseObserver)

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

Deletes an existing group.

Parameters
NameDescription
requestDeleteGroupRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getGroup(GetGroupRequest request, StreamObserver<Group> responseObserver)

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

Gets a single group.

Parameters
NameDescription
requestGetGroupRequest
responseObserverio.grpc.stub.StreamObserver<Group>

listGroupMembers(ListGroupMembersRequest request, StreamObserver<ListGroupMembersResponse> responseObserver)

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

Lists the monitored resources that are members of a group.

Parameters
NameDescription
requestListGroupMembersRequest
responseObserverio.grpc.stub.StreamObserver<ListGroupMembersResponse>

listGroups(ListGroupsRequest request, StreamObserver<ListGroupsResponse> responseObserver)

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

Lists the existing groups.

Parameters
NameDescription
requestListGroupsRequest
responseObserverio.grpc.stub.StreamObserver<ListGroupsResponse>

updateGroup(UpdateGroupRequest request, StreamObserver<Group> responseObserver)

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

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

Parameters
NameDescription
requestUpdateGroupRequest
responseObserverio.grpc.stub.StreamObserver<Group>