Package com.google.cloud.logging
Interface ResourceTypeEnvironmentGetter
public interface ResourceTypeEnvironmentGetter
-
Method Summary
-
Method Details
-
getEnv
Gets the value of the specified environment variable.- Parameters:
name
- the name of the environment variable- Returns:
- the string value of the variable, or
null
if the variable is not defined in the system environment - See Also:
-
getAttribute
Gets the value of the specified metadata server attribute.- Parameters:
name
- the name of the metadata server attribute.- Returns:
- the string value of the attribute, or
null
if the attribute is not defined in the metadata or the server is not available. - See Also:
-
MetadataConfig.getAttribute(String)
-