public MonitoredResource.Builder setLabels(Map<String,String> labels)
Sets the values for all the labels required by the corresponding monitored resource
descriptor (see MonitoredResourceDescriptor#getLabels(). For example, Google Compute
Engine VM instances use the labels instance_id and zone.
public MonitoredResource.Builder setType(String type)
Sets the monitored resource type. This value must match the one of MonitoredResourceDescriptor#getType() of a MonitoredResourceDescriptor object. For
example, the type cloudsql_database represent databases in Google Cloud SQL.
[[["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 2024-11-02 UTC."],[],[]]