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, ID_PROPERTY, properties| Constructor and Description |
|---|
MetricType(String tenantId,
String id) |
MetricType(String tenantId,
String id,
MetricUnit unit) |
MetricType(String tenantId,
String id,
MetricUnit unit,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(EntityVisitor<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(). |
MetricUnit |
getUnit() |
AbstractElement.Updater<MetricType.Update,MetricType> |
update() |
equals, getTenantId, hashCodegetId, getProperties, valueOrDefaultpublic MetricType(String tenantId, String id, MetricUnit unit)
public MetricUnit getUnit()
public AbstractElement.Updater<MetricType.Update,MetricType> update()
update in class AbstractElement<MetricType.Blueprint,MetricType.Update>public <R,P> R accept(EntityVisitor<R,P> visitor, P parameter)
Entityaccept in class Entity<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 TenantBasedEntity<MetricType.Blueprint,MetricType.Update>toStringBuilder - the builder to append stuff to.Copyright © 2015 Red Hat, Inc.. All rights reserved.