public final class MetricType extends Entity
resource types in the same way as metrics are owned by resources
(i.e. multiple resource types can "own" a single metric type).| Modifier and Type | Class and Description |
|---|---|
static class |
MetricType.Blueprint
Data required to create a new metric type.
|
| Modifier and Type | Field and Description |
|---|---|
static SegmentType |
SEGMENT_TYPE |
properties| Constructor and Description |
|---|
MetricType(CanonicalPath path) |
MetricType(CanonicalPath path,
MetricUnit unit,
MetricDataType metricDataType) |
MetricType(CanonicalPath path,
MetricUnit unit,
MetricDataType metricDataType,
Long collectionInterval) |
MetricType(CanonicalPath path,
MetricUnit unit,
MetricDataType metricDataType,
Map<String,Object> properties,
Long collectionInterval) |
MetricType(String name,
CanonicalPath path,
MetricUnit unit,
MetricDataType metricDataType) |
MetricType(String name,
CanonicalPath path,
MetricUnit unit,
MetricDataType metricDataType,
Map<String,Object> properties,
Long collectionInterval) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> visitor,
P parameter)
Accepts the provided visitor.
|
protected void |
appendToString(StringBuilder toStringBuilder)
Use this to append additional information to the string representation of this instance
returned from the (final)
Entity.toString(). |
Long |
getCollectionInterval() |
MetricDataType |
getMetricDataType() |
MetricDataType |
getType()
Deprecated.
use
getMetricDataType() insteads |
MetricUnit |
getUnit() |
entityTypeFromSegmentType, getName, toString, typeFromSegmentTypeequals, getId, getPath, getProperties, hashCode, segmentTypeFromType, toElementClasspublic static final SegmentType SEGMENT_TYPE
public MetricType(CanonicalPath path)
public MetricType(CanonicalPath path, MetricUnit unit, MetricDataType metricDataType)
public MetricType(CanonicalPath path, MetricUnit unit, MetricDataType metricDataType, Long collectionInterval)
public MetricType(String name, CanonicalPath path, MetricUnit unit, MetricDataType metricDataType)
public MetricType(CanonicalPath path, MetricUnit unit, MetricDataType metricDataType, Map<String,Object> properties, Long collectionInterval)
public MetricType(String name, CanonicalPath path, MetricUnit unit, MetricDataType metricDataType, Map<String,Object> properties, Long collectionInterval)
public MetricUnit getUnit()
public MetricDataType getMetricDataType()
@Deprecated public MetricDataType getType()
getMetricDataType() insteadspublic Long getCollectionInterval()
public <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
AbstractElementaccept in class AbstractElementR - the return typeP - the type of the parametervisitor - the visitor to visit this entityparameter - the parameter to pass on to the visitorprotected void appendToString(StringBuilder toStringBuilder)
EntityEntity.toString().
Generally, one should call the super method first and then only add additional information to the builder.
appendToString in class EntitytoStringBuilder - the builder to append stuff to.Copyright © 2014–2017 Red Hat, Inc.. All rights reserved.