public interface Fact
extends java.io.Serializable
Fact
is an instance of the schema attributes. A fact could trigger one or more metric computations
Facts will be submitted by the client API to the metric server.
The server will perform metric calculation on the facts, as defined in the model.
The dimensions will be aggregated as per the dimension hierarchy defined in the modelModifier and Type | Field and Description |
---|---|
static java.lang.String |
ASSET_NAME
For an attribute by this name in the fact, its value represents the name of the asset.
|
static java.lang.String |
ASSET_STATUS
For an attribute by this name, in the fact, its value represents the status/state of the asset.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear attributes of this fact.
|
java.lang.Object |
getAttribute(java.lang.String attrName)
Gets the attribute value.
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Get a list of attribute names defined for this fact.
|
Key |
getKey()
Get its key
|
RtaSchema |
getOwnerSchema()
Return the owner
RtaSchema associated with this fact. |
void |
setAttribute(java.lang.String attrName,
java.lang.Object value)
Sets the attribute value.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Sets attributes in bulk.
|
static final java.lang.String ASSET_NAME
static final java.lang.String ASSET_STATUS
Key getKey()
void setAttribute(java.lang.String attrName, java.lang.Object value) throws UndefinedSchemaElementException, DataTypeMismatchException
attrName
- the attribute namevalue
- the value depending on the attribute's allowable DataType
UndefinedSchemaElementException
DataTypeMismatchException
void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) throws UndefinedSchemaElementException, DataTypeMismatchException
java.lang.Object getAttribute(java.lang.String attrName)
attrName
- the name to be used as key to get its valuejava.util.Collection<java.lang.String> getAttributeNames()
void clear()
Copyright © 2000-2014 TIBCO Inc. All Rights Reserved.