Package com.google.cloud.dataproc.v1
Enum DataprocMetricConfig.MetricSource
- java.lang.Object
-
- java.lang.Enum<DataprocMetricConfig.MetricSource>
-
- com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<DataprocMetricConfig.MetricSource>
- Enclosing class:
- DataprocMetricConfig
public static enum DataprocMetricConfig.MetricSource extends Enum<DataprocMetricConfig.MetricSource> implements com.google.protobuf.ProtocolMessageEnum
A source for the collection of Dataproc custom metrics (see [Custom metrics] (https://cloud.google.com//dataproc/docs/guides/dataproc-metrics#custom_metrics)).
Protobuf enumgoogle.cloud.dataproc.v1.DataprocMetricConfig.MetricSource
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HDFS
HDFS metric source.HIVEMETASTORE
hivemetastore metric sourceHIVESERVER2
Hiveserver2 metric source.METRIC_SOURCE_UNSPECIFIED
Required unspecified metric source.MONITORING_AGENT_DEFAULTS
Monitoring agent metrics.SPARK
Spark metric source.SPARK_HISTORY_SERVER
Spark History Server metric source.UNRECOGNIZED
YARN
YARN metric source.
-
Field Summary
Fields Modifier and Type Field Description static int
HDFS_VALUE
HDFS metric source.static int
HIVEMETASTORE_VALUE
hivemetastore metric sourcestatic int
HIVESERVER2_VALUE
Hiveserver2 metric source.static int
METRIC_SOURCE_UNSPECIFIED_VALUE
Required unspecified metric source.static int
MONITORING_AGENT_DEFAULTS_VALUE
Monitoring agent metrics.static int
SPARK_HISTORY_SERVER_VALUE
Spark History Server metric source.static int
SPARK_VALUE
Spark metric source.static int
YARN_VALUE
YARN metric source.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DataprocMetricConfig.MetricSource
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<DataprocMetricConfig.MetricSource>
internalGetValueMap()
static DataprocMetricConfig.MetricSource
valueOf(int value)
Deprecated.static DataprocMetricConfig.MetricSource
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static DataprocMetricConfig.MetricSource
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataprocMetricConfig.MetricSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METRIC_SOURCE_UNSPECIFIED
public static final DataprocMetricConfig.MetricSource METRIC_SOURCE_UNSPECIFIED
Required unspecified metric source.
METRIC_SOURCE_UNSPECIFIED = 0;
-
MONITORING_AGENT_DEFAULTS
public static final DataprocMetricConfig.MetricSource MONITORING_AGENT_DEFAULTS
Monitoring agent metrics. If this source is enabled, Dataproc enables the monitoring agent in Compute Engine, and collects monitoring agent metrics, which are published with an `agent.googleapis.com` prefix.
MONITORING_AGENT_DEFAULTS = 1;
-
HDFS
public static final DataprocMetricConfig.MetricSource HDFS
HDFS metric source.
HDFS = 2;
-
SPARK
public static final DataprocMetricConfig.MetricSource SPARK
Spark metric source.
SPARK = 3;
-
YARN
public static final DataprocMetricConfig.MetricSource YARN
YARN metric source.
YARN = 4;
-
SPARK_HISTORY_SERVER
public static final DataprocMetricConfig.MetricSource SPARK_HISTORY_SERVER
Spark History Server metric source.
SPARK_HISTORY_SERVER = 5;
-
HIVESERVER2
public static final DataprocMetricConfig.MetricSource HIVESERVER2
Hiveserver2 metric source.
HIVESERVER2 = 6;
-
HIVEMETASTORE
public static final DataprocMetricConfig.MetricSource HIVEMETASTORE
hivemetastore metric source
HIVEMETASTORE = 7;
-
UNRECOGNIZED
public static final DataprocMetricConfig.MetricSource UNRECOGNIZED
-
-
Field Detail
-
METRIC_SOURCE_UNSPECIFIED_VALUE
public static final int METRIC_SOURCE_UNSPECIFIED_VALUE
Required unspecified metric source.
METRIC_SOURCE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
MONITORING_AGENT_DEFAULTS_VALUE
public static final int MONITORING_AGENT_DEFAULTS_VALUE
Monitoring agent metrics. If this source is enabled, Dataproc enables the monitoring agent in Compute Engine, and collects monitoring agent metrics, which are published with an `agent.googleapis.com` prefix.
MONITORING_AGENT_DEFAULTS = 1;
- See Also:
- Constant Field Values
-
HDFS_VALUE
public static final int HDFS_VALUE
HDFS metric source.
HDFS = 2;
- See Also:
- Constant Field Values
-
SPARK_VALUE
public static final int SPARK_VALUE
Spark metric source.
SPARK = 3;
- See Also:
- Constant Field Values
-
YARN_VALUE
public static final int YARN_VALUE
YARN metric source.
YARN = 4;
- See Also:
- Constant Field Values
-
SPARK_HISTORY_SERVER_VALUE
public static final int SPARK_HISTORY_SERVER_VALUE
Spark History Server metric source.
SPARK_HISTORY_SERVER = 5;
- See Also:
- Constant Field Values
-
HIVESERVER2_VALUE
public static final int HIVESERVER2_VALUE
Hiveserver2 metric source.
HIVESERVER2 = 6;
- See Also:
- Constant Field Values
-
HIVEMETASTORE_VALUE
public static final int HIVEMETASTORE_VALUE
hivemetastore metric source
HIVEMETASTORE = 7;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DataprocMetricConfig.MetricSource[] 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 (DataprocMetricConfig.MetricSource c : DataprocMetricConfig.MetricSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataprocMetricConfig.MetricSource valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static DataprocMetricConfig.MetricSource valueOf(int value)
Deprecated.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:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static DataprocMetricConfig.MetricSource forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<DataprocMetricConfig.MetricSource> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static DataprocMetricConfig.MetricSource valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-