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 enum
google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource| Enum Constant and Description |
|---|
HDFS
HDFS metric source.
|
HIVEMETASTORE
hivemetastore metric source
|
HIVESERVER2
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.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
HDFS_VALUE
HDFS metric source.
|
static int |
HIVEMETASTORE_VALUE
hivemetastore metric source
|
static 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DataprocMetricConfig.MetricSource |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final DataprocMetricConfig.MetricSource METRIC_SOURCE_UNSPECIFIED
Required unspecified metric source.
METRIC_SOURCE_UNSPECIFIED = 0;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;public static final DataprocMetricConfig.MetricSource HDFS
HDFS metric source.
HDFS = 2;public static final DataprocMetricConfig.MetricSource SPARK
Spark metric source.
SPARK = 3;public static final DataprocMetricConfig.MetricSource YARN
YARN metric source.
YARN = 4;public static final DataprocMetricConfig.MetricSource SPARK_HISTORY_SERVER
Spark History Server metric source.
SPARK_HISTORY_SERVER = 5;public static final DataprocMetricConfig.MetricSource HIVESERVER2
Hiveserver2 metric source.
HIVESERVER2 = 6;public static final DataprocMetricConfig.MetricSource HIVEMETASTORE
hivemetastore metric source
HIVEMETASTORE = 7;public static final DataprocMetricConfig.MetricSource UNRECOGNIZED
public static final int METRIC_SOURCE_UNSPECIFIED_VALUE
Required unspecified metric source.
METRIC_SOURCE_UNSPECIFIED = 0;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;public static final int HDFS_VALUE
HDFS metric source.
HDFS = 2;public static final int SPARK_VALUE
Spark metric source.
SPARK = 3;public static final int YARN_VALUE
YARN metric source.
YARN = 4;public static final int SPARK_HISTORY_SERVER_VALUE
Spark History Server metric source.
SPARK_HISTORY_SERVER = 5;public static final int HIVESERVER2_VALUE
Hiveserver2 metric source.
HIVESERVER2 = 6;public static final int HIVEMETASTORE_VALUE
hivemetastore metric source
HIVEMETASTORE = 7;public static DataprocMetricConfig.MetricSource[] values()
for (DataprocMetricConfig.MetricSource c : DataprocMetricConfig.MetricSource.values()) System.out.println(c);
public static DataprocMetricConfig.MetricSource valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static DataprocMetricConfig.MetricSource valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DataprocMetricConfig.MetricSource forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DataprocMetricConfig.MetricSource> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DataprocMetricConfig.MetricSource valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.