public enum RawMetricType extends Enum<RawMetricType>
Modifier and Type | Class and Description |
---|---|
static class |
RawMetricType.DesiredMetricUnit
The desired unit that this metric should be converted to
|
static class |
RawMetricType.MetricScope |
Modifier and Type | Method and Description |
---|---|
static Set<RawMetricType> |
brokerMetricTypes() |
double |
convertUnit(double value)
Converts the given value for the given
RawMetricType in the desired unit. |
RawMetricType.DesiredMetricUnit |
desiredMetricUnit() |
static RawMetricType |
forId(byte id) |
byte |
id() |
RawMetricType.MetricScope |
metricScope() |
static List<RawMetricType> |
topicMetricTypes() |
static RawMetricType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RawMetricType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RawMetricType ALL_TOPIC_BYTES_IN
public static final RawMetricType ALL_TOPIC_BYTES_OUT
public static final RawMetricType TOPIC_BYTES_IN
public static final RawMetricType TOPIC_BYTES_OUT
public static final RawMetricType PARTITION_SIZE
public static final RawMetricType BROKER_CPU_UTIL
public static final RawMetricType ALL_TOPIC_REPLICATION_BYTES_IN
public static final RawMetricType ALL_TOPIC_REPLICATION_BYTES_OUT
public static final RawMetricType ALL_TOPIC_PRODUCE_REQUEST_RATE
public static final RawMetricType ALL_TOPIC_FETCH_REQUEST_RATE
public static final RawMetricType ALL_TOPIC_MESSAGES_IN_PER_SEC
public static final RawMetricType TOPIC_REPLICATION_BYTES_IN
public static final RawMetricType TOPIC_REPLICATION_BYTES_OUT
public static final RawMetricType TOPIC_PRODUCE_REQUEST_RATE
public static final RawMetricType TOPIC_FETCH_REQUEST_RATE
public static final RawMetricType TOPIC_MESSAGES_IN_PER_SEC
public static final RawMetricType BROKER_PRODUCE_REQUEST_RATE
public static final RawMetricType BROKER_CONSUMER_FETCH_REQUEST_RATE
public static final RawMetricType BROKER_FOLLOWER_FETCH_REQUEST_RATE
public static final RawMetricType BROKER_DISK_CAPACITY
public static final RawMetricType TOPIC_FOLLOWER_FETCH_REQUEST_RATE
public static final RawMetricType ALL_TOPIC_FOLLOWER_FETCH_REQUEST_RATE
public static final RawMetricType TOPIC_FETCH_FROM_FOLLOWER_BYTES_OUT
public static final RawMetricType ALL_TOPIC_FETCH_FROM_FOLLOWER_BYTES_OUT
public static final RawMetricType TOPIC_FETCH_FROM_FOLLOWER_REQUEST_RATE
public static final RawMetricType ALL_TOPIC_FETCH_FROM_FOLLOWER_REQUEST_RATE
public static final RawMetricType MIRROR_TOPIC_BYTES_IN
public static final RawMetricType ALL_MIRROR_TOPIC_BYTES_IN
public static RawMetricType[] values()
for (RawMetricType c : RawMetricType.values()) System.out.println(c);
public static RawMetricType 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 byte id()
public RawMetricType.MetricScope metricScope()
public RawMetricType.DesiredMetricUnit desiredMetricUnit()
public static List<RawMetricType> topicMetricTypes()
public static Set<RawMetricType> brokerMetricTypes()
public double convertUnit(double value)
RawMetricType
in the desired unit.value
- the original value, as read from the metrics, for the given metric type.desiredUnit
.public static RawMetricType forId(byte id)