public static MonitoredResource GlobalResource { get; }
An instance of a "global" resource, with Type
set to "global", and an empty set of Labels.
Property Value
Type
Description
Google.Api.MonitoredResource
Remarks
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.
Returns
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage details the `MonitoredResourceBuilder` class, which provides helper methods for creating `Google.Api.MonitoredResource` instances, referencing the Monitored Resource List for further information."],["The `MonitoredResourceBuilder` class inherits from `Object` and includes inherited members like `ToString()`, `Equals()`, `GetHashCode()`, and others."],["The `GlobalResource` property returns a \"global\" resource with a type set to \"global\" and an empty set of labels, and each call returns a new mutable instance."],["The `FromPlatform()` method and its variations, `FromPlatform(Platform)` and `FromPlatformAsync()`, allow you to build a `Google.Api.MonitoredResource` instance from auto-detected or provided platform information."],["The page provides documentation for the `.NET` library version 4.2.0 of `MonitoredResourceBuilder`, along with links to earlier versions and the latest release."]]],[]]