public final class Metric extends Entity
resources (surprisingly, many resources can
incorporate a single metric).| Modifier and Type | Class and Description |
|---|---|
static class |
Metric.Blueprint
Data required to create a new metric.
|
| Modifier and Type | Field and Description |
|---|---|
static SegmentType |
SEGMENT_TYPE |
properties| Constructor and Description |
|---|
Metric(CanonicalPath path,
MetricType type) |
Metric(CanonicalPath path,
MetricType type,
Long collectionInterval) |
Metric(CanonicalPath path,
MetricType type,
Map<String,Object> properties) |
Metric(String name,
CanonicalPath path,
MetricType type) |
Metric(String name,
CanonicalPath path,
MetricType type,
Long collectionInterval,
Map<String,Object> properties) |
| 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() |
MetricType |
getType() |
entityTypeFromSegmentType, getName, toString, typeFromSegmentTypeequals, getId, getPath, getProperties, hashCode, segmentTypeFromType, toElementClasspublic static final SegmentType SEGMENT_TYPE
public Metric(CanonicalPath path, MetricType type)
public Metric(String name, CanonicalPath path, MetricType type)
public Metric(CanonicalPath path, MetricType type, Long collectionInterval)
public Metric(CanonicalPath path, MetricType type, Map<String,Object> properties)
public Metric(String name, CanonicalPath path, MetricType type, Long collectionInterval, Map<String,Object> properties)
public MetricType getType()
public Long getCollectionInterval()
protected 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.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 visitorCopyright © 2014–2017 Red Hat, Inc.. All rights reserved.