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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eMonitoredResourceBuilder\u003c/code\u003e class, which provides helper methods for creating \u003ccode\u003eGoogle.Api.MonitoredResource\u003c/code\u003e instances, referencing the Monitored Resource List for further information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMonitoredResourceBuilder\u003c/code\u003e class inherits from \u003ccode\u003eObject\u003c/code\u003e and includes inherited members like \u003ccode\u003eToString()\u003c/code\u003e, \u003ccode\u003eEquals()\u003c/code\u003e, \u003ccode\u003eGetHashCode()\u003c/code\u003e, and others.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGlobalResource\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFromPlatform()\u003c/code\u003e method and its variations, \u003ccode\u003eFromPlatform(Platform)\u003c/code\u003e and \u003ccode\u003eFromPlatformAsync()\u003c/code\u003e, allow you to build a \u003ccode\u003eGoogle.Api.MonitoredResource\u003c/code\u003e instance from auto-detected or provided platform information.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides documentation for the \u003ccode\u003e.NET\u003c/code\u003e library version 4.2.0 of \u003ccode\u003eMonitoredResourceBuilder\u003c/code\u003e, along with links to earlier versions and the latest release.\u003c/p\u003e\n"]]],[],null,[]]