public static class MonitoredResourceBuilder
Helper methods to build a Google.Api.MonitoredResource instance. See the Monitored Resource List for details.
Namespace
Google.Api.Gax.GrpcAssembly
Google.Api.Gax.Grpc.dll
Properties
GlobalResource
public static MonitoredResource GlobalResource { get; }
Type | Description |
---|---|
Google.Api.MonitoredResource |
A new instance is returned with each call, as the returned object is mutable.
Methods
FromPlatform()
public static MonitoredResource FromPlatform()
Builds a Google.Api.MonitoredResource from the auto-detected platform, using Instance(). This call can block for up to 1 second.
Type | Description |
---|---|
Google.Api.MonitoredResource | A Google.Api.MonitoredResource instance, populated most suitably for the given platform. |
FromPlatform(Platform)
public static MonitoredResource FromPlatform(Platform platform)
Builds a suitable Google.Api.MonitoredResource instance, given Platform information. Use FromPlatform() or FromPlatformAsync() to build a Google.Api.MonitoredResource from auto-detected platform information.
Type | Name | Description |
---|---|---|
Platform | platform | Platform information, usually auto-detected. |
Type | Description |
---|---|
Google.Api.MonitoredResource | A Google.Api.MonitoredResource instance, populated most suitably for the given platform. |
FromPlatformAsync()
public static Task<MonitoredResource> FromPlatformAsync()
Builds a Google.Api.MonitoredResource from the auto-detected platform, using Instance().
Type | Description |
---|---|
Task<Google.Api.MonitoredResource> | A task, the result of which will be a Google.Api.MonitoredResource instance, populated most suitably for the given platform. |