public static enum DataprocMetricConfig.MetricSource extends Enum<DataprocMetricConfig.MetricSource> implements ProtocolMessageEnum
A source for the collection of Dataproc OSS metrics (see [available OSS metrics] (https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)).Protobuf enum
google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource
Enum Constant and Description |
---|
HDFS
HDFS metric source.
|
HIVESERVER2
Hiveserver2 metric source.
|
METRIC_SOURCE_UNSPECIFIED
Required unspecified metric source.
|
MONITORING_AGENT_DEFAULTS
Default 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 |
HIVESERVER2_VALUE
Hiveserver2 metric source.
|
static int |
METRIC_SOURCE_UNSPECIFIED_VALUE
Required unspecified metric source.
|
static int |
MONITORING_AGENT_DEFAULTS_VALUE
Default 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 Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<DataprocMetricConfig.MetricSource> |
internalGetValueMap() |
static DataprocMetricConfig.MetricSource |
valueOf(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
Default monitoring agent metrics. If this source is enabled, Dataproc enables the monitoring agent in Compute Engine, and collects default 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 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
Default monitoring agent metrics. If this source is enabled, Dataproc enables the monitoring agent in Compute Engine, and collects default 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 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 Internal.EnumLite
getNumber
in interface 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 Internal.EnumLiteMap<DataprocMetricConfig.MetricSource> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DataprocMetricConfig.MetricSource valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.