public final class Metric extends FeedBasedEntity<Metric.Blueprint,Metric.Update>
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.
|
static class |
Metric.Update |
AbstractElement.Updater<U extends AbstractElement.Update,E extends AbstractElement<?,U>>ID_PROPERTY, properties| Constructor and Description |
|---|
Metric(CanonicalPath path,
MetricType type) |
Metric(CanonicalPath path,
MetricType type,
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(). |
MetricType |
getType() |
AbstractElement.Updater<Metric.Update,Metric> |
update() |
getFeedIdgetEnvironmentIdgetTenantIdequals, getId, getPath, getProperties, hashCode, valueOrDefaultpublic Metric(CanonicalPath path, MetricType type)
public Metric(CanonicalPath path, MetricType type, Map<String,Object> properties)
public AbstractElement.Updater<Metric.Update,Metric> update()
update in class AbstractElement<Metric.Blueprint,Metric.Update>public MetricType getType()
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 Entity<Metric.Blueprint,Metric.Update>toStringBuilder - the builder to append stuff to.public <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
AbstractElementaccept in class AbstractElement<Metric.Blueprint,Metric.Update>R - the return typeP - the type of the parametervisitor - the visitor to visit this entityparameter - the parameter to pass on to the visitorCopyright © 2015 Red Hat, Inc.. All rights reserved.