public final class MetricType extends TenantBasedEntity<MetricType.Blueprint,MetricType.Update>
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.
|
static class |
MetricType.Update |
AbstractElement.Updater<U extends AbstractElement.Update,E extends AbstractElement<?,U>>ID_PROPERTY, properties| Constructor and Description |
|---|
MetricType(CanonicalPath path) |
MetricType(CanonicalPath path,
MetricUnit unit,
MetricDataType type) |
MetricType(CanonicalPath path,
MetricUnit unit,
MetricDataType 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(). |
MetricDataType |
getType() |
MetricUnit |
getUnit() |
AbstractElement.Updater<MetricType.Update,MetricType> |
update() |
getTenantIdequals, getId, getPath, getProperties, hashCode, valueOrDefaultpublic MetricType(CanonicalPath path)
public MetricType(CanonicalPath path, MetricUnit unit, MetricDataType type)
public MetricType(CanonicalPath path, MetricUnit unit, MetricDataType type, Map<String,Object> properties)
public MetricUnit getUnit()
public MetricDataType getType()
public AbstractElement.Updater<MetricType.Update,MetricType> update()
update in class AbstractElement<MetricType.Blueprint,MetricType.Update>public <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
AbstractElementaccept in class AbstractElement<MetricType.Blueprint,MetricType.Update>R - 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 Entity<MetricType.Blueprint,MetricType.Update>toStringBuilder - the builder to append stuff to.Copyright © 2015 Red Hat, Inc.. All rights reserved.