|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Fact
A 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 model
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final java.lang.String ASSET_NAME
static final java.lang.String ASSET_STATUS
Method Detail |
---|
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
UndefinedSchemaElementException
DataTypeMismatchException
java.lang.Object getAttribute(java.lang.String attrName)
attrName
- the name to be used as key to get its value
java.util.Collection<java.lang.String> getAttributeNames()
void clear()
RtaSchema getOwnerSchema()
RtaSchema
associated with this fact.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |