public static final class DataprocMetricConfig.Metric extends GeneratedMessageV3 implements DataprocMetricConfig.MetricOrBuilder
A Dataproc custom metric.
Protobuf type google.cloud.dataproc.v1.DataprocMetricConfig.Metric
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
METRIC_OVERRIDES_FIELD_NUMBER
public static final int METRIC_OVERRIDES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
METRIC_SOURCE_FIELD_NUMBER
public static final int METRIC_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DataprocMetricConfig.Metric getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DataprocMetricConfig.Metric.Builder newBuilder()
newBuilder(DataprocMetricConfig.Metric prototype)
public static DataprocMetricConfig.Metric.Builder newBuilder(DataprocMetricConfig.Metric prototype)
public static DataprocMetricConfig.Metric parseDelimitedFrom(InputStream input)
public static DataprocMetricConfig.Metric parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DataprocMetricConfig.Metric parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DataprocMetricConfig.Metric parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DataprocMetricConfig.Metric parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataprocMetricConfig.Metric parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataprocMetricConfig.Metric parseFrom(CodedInputStream input)
public static DataprocMetricConfig.Metric parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DataprocMetricConfig.Metric parseFrom(InputStream input)
public static DataprocMetricConfig.Metric parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DataprocMetricConfig.Metric parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DataprocMetricConfig.Metric parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DataprocMetricConfig.Metric> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public DataprocMetricConfig.Metric getDefaultInstanceForType()
getMetricOverrides(int index)
public String getMetricOverrides(int index)
Optional. Specify one or more Custom metrics
to collect for the metric course (for the SPARK
metric source (any
Spark metric can be
specified).
Provide metrics in the following format:
<code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
Use camelcase as appropriate.
Examples:
`
yarn:ResourceManager:QueueMetrics:AppsCompleted
spark:driver:DAGScheduler:job.allJobs
sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
Notes:
- Only the specified overridden metrics are collected for the
metric source. For example, if one or more
spark:executive
metrics
are listed as metric overrides, other
SPARK
metrics are not
collected. The collection of the metrics for other enabled custom
metric sources is unaffected. For example, if both
SPARK
andd
YARN`
metric sources are enabled, and overrides are provided for Spark
metrics only, all YARN metrics are collected.
repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The metricOverrides at the given index.
|
getMetricOverridesBytes(int index)
public ByteString getMetricOverridesBytes(int index)
Optional. Specify one or more Custom metrics
to collect for the metric course (for the SPARK
metric source (any
Spark metric can be
specified).
Provide metrics in the following format:
<code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
Use camelcase as appropriate.
Examples:
`
yarn:ResourceManager:QueueMetrics:AppsCompleted
spark:driver:DAGScheduler:job.allJobs
sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
Notes:
- Only the specified overridden metrics are collected for the
metric source. For example, if one or more
spark:executive
metrics
are listed as metric overrides, other
SPARK
metrics are not
collected. The collection of the metrics for other enabled custom
metric sources is unaffected. For example, if both
SPARK
andd
YARN`
metric sources are enabled, and overrides are provided for Spark
metrics only, all YARN metrics are collected.
repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the metricOverrides at the given index.
|
getMetricOverridesCount()
public int getMetricOverridesCount()
Optional. Specify one or more Custom metrics
to collect for the metric course (for the SPARK
metric source (any
Spark metric can be
specified).
Provide metrics in the following format:
<code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
Use camelcase as appropriate.
Examples:
`
yarn:ResourceManager:QueueMetrics:AppsCompleted
spark:driver:DAGScheduler:job.allJobs
sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
Notes:
- Only the specified overridden metrics are collected for the
metric source. For example, if one or more
spark:executive
metrics
are listed as metric overrides, other
SPARK
metrics are not
collected. The collection of the metrics for other enabled custom
metric sources is unaffected. For example, if both
SPARK
andd
YARN`
metric sources are enabled, and overrides are provided for Spark
metrics only, all YARN metrics are collected.
repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The count of metricOverrides.
|
getMetricOverridesList()
public ProtocolStringList getMetricOverridesList()
Optional. Specify one or more Custom metrics
to collect for the metric course (for the SPARK
metric source (any
Spark metric can be
specified).
Provide metrics in the following format:
<code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
Use camelcase as appropriate.
Examples:
`
yarn:ResourceManager:QueueMetrics:AppsCompleted
spark:driver:DAGScheduler:job.allJobs
sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
Notes:
- Only the specified overridden metrics are collected for the
metric source. For example, if one or more
spark:executive
metrics
are listed as metric overrides, other
SPARK
metrics are not
collected. The collection of the metrics for other enabled custom
metric sources is unaffected. For example, if both
SPARK
andd
YARN`
metric sources are enabled, and overrides are provided for Spark
metrics only, all YARN metrics are collected.
repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];
getMetricSource()
public DataprocMetricConfig.MetricSource getMetricSource()
Required. A standard set of metrics is collected unless metricOverrides
are specified for the metric source (see Custom metrics
for more information).
.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED];
getMetricSourceValue()
public int getMetricSourceValue()
Required. A standard set of metrics is collected unless metricOverrides
are specified for the metric source (see Custom metrics
for more information).
.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for metricSource.
|
getParserForType()
public Parser<DataprocMetricConfig.Metric> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DataprocMetricConfig.Metric.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DataprocMetricConfig.Metric.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public DataprocMetricConfig.Metric.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides