@Internal public class GenericKeyMetricGroup extends GenericMetricGroup
GenericMetricGroup
for representing the key part of a key-value metric group pair.AbstractMetricGroup.ChildType
LOG, parent, queryServiceScopeInfo, registry, variables
Modifier and Type | Method and Description |
---|---|
MetricGroup |
addGroup(String key,
String value)
Creates a new key-value MetricGroup pair.
|
protected GenericMetricGroup |
createChildGroup(String name,
AbstractMetricGroup.ChildType childType) |
createQueryServiceMetricInfo, getGroupName
addGroup, addMetric, close, counter, counter, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meter, putVariables
public MetricGroup addGroup(String key, String value)
MetricGroup
The only difference between calling this method and group.addGroup(key).addGroup(value)
is that MetricGroup.getAllVariables()
of the value group
return an additional "<key>"="value"
pair.
addGroup
in interface MetricGroup
addGroup
in class AbstractMetricGroup<AbstractMetricGroup<?>>
key
- name of the first groupvalue
- name of the second groupprotected GenericMetricGroup createChildGroup(String name, AbstractMetricGroup.ChildType childType)
createChildGroup
in class AbstractMetricGroup<AbstractMetricGroup<?>>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.