Enum GCPPlatformDetector.SupportedPlatform
- java.lang.Object
-
- java.lang.Enum<GCPPlatformDetector.SupportedPlatform>
-
- com.google.cloud.opentelemetry.detection.GCPPlatformDetector.SupportedPlatform
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GCPPlatformDetector.SupportedPlatform>
- Enclosing class:
- GCPPlatformDetector
public static enum GCPPlatformDetector.SupportedPlatform extends java.lang.Enum<GCPPlatformDetector.SupportedPlatform>
SupportedPlatform represents the GCP platforms that can currently be detected by the resource-detector.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GOOGLE_APP_ENGINERepresents the Google App Engine platform.GOOGLE_CLOUD_FUNCTIONSRepresents the Google Cloud Functions platform.GOOGLE_CLOUD_RUNRepresents the Google Cloud Run platform (Service).GOOGLE_CLOUD_RUN_JOBRepresents the Google Cloud Run platform (Jobs).GOOGLE_COMPUTE_ENGINERepresents the Google Compute Engine platform.GOOGLE_KUBERNETES_ENGINERepresents the Google Kubernetes Engine platform.UNKNOWN_PLATFORMRepresents the case when the application is not running on GCP.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GCPPlatformDetector.SupportedPlatformvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GCPPlatformDetector.SupportedPlatform[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GOOGLE_COMPUTE_ENGINE
public static final GCPPlatformDetector.SupportedPlatform GOOGLE_COMPUTE_ENGINE
Represents the Google Compute Engine platform.
-
GOOGLE_KUBERNETES_ENGINE
public static final GCPPlatformDetector.SupportedPlatform GOOGLE_KUBERNETES_ENGINE
Represents the Google Kubernetes Engine platform.
-
GOOGLE_APP_ENGINE
public static final GCPPlatformDetector.SupportedPlatform GOOGLE_APP_ENGINE
Represents the Google App Engine platform. Could either be flex or standard.
-
GOOGLE_CLOUD_RUN
public static final GCPPlatformDetector.SupportedPlatform GOOGLE_CLOUD_RUN
Represents the Google Cloud Run platform (Service).
-
GOOGLE_CLOUD_RUN_JOB
public static final GCPPlatformDetector.SupportedPlatform GOOGLE_CLOUD_RUN_JOB
Represents the Google Cloud Run platform (Jobs).
-
GOOGLE_CLOUD_FUNCTIONS
public static final GCPPlatformDetector.SupportedPlatform GOOGLE_CLOUD_FUNCTIONS
Represents the Google Cloud Functions platform.
-
UNKNOWN_PLATFORM
public static final GCPPlatformDetector.SupportedPlatform UNKNOWN_PLATFORM
Represents the case when the application is not running on GCP.
-
-
Method Detail
-
values
public static GCPPlatformDetector.SupportedPlatform[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GCPPlatformDetector.SupportedPlatform c : GCPPlatformDetector.SupportedPlatform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GCPPlatformDetector.SupportedPlatform valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-