Package com.google.cloud.logging
Class MetadataLoader
- java.lang.Object
-
- com.google.cloud.logging.MetadataLoader
-
public final class MetadataLoader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENV_FLEXIBLE
static String
ENV_STANDARD
-
Constructor Summary
Constructors Constructor Description MetadataLoader(ResourceTypeEnvironmentGetter getter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue(MonitoredResourceUtil.Label label)
Loads metadata value for thelabel
argument.
-
-
-
Field Detail
-
ENV_FLEXIBLE
public static final String ENV_FLEXIBLE
- See Also:
- Constant Field Values
-
ENV_STANDARD
public static final String ENV_STANDARD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetadataLoader
public MetadataLoader(ResourceTypeEnvironmentGetter getter)
-
-
Method Detail
-
getValue
public String getValue(MonitoredResourceUtil.Label label)
Loads metadata value for thelabel
argument.- Parameters:
label
- A resource metadata label of type {@see MonitoredResourceUtil.Label}- Returns:
- A string with metadata value or
null
if the label is not supported.
-
-