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.
Namespace
Google.Cloud.Monitoring.V3Assembly
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 |
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. |
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. |
DeleteGroup(DeleteGroupRequest, CallSettings)
public override void DeleteGroup(DeleteGroupRequest request, CallSettings callSettings = null)