Hi All,

[1] explains the Timestamp field of an event clearly.

"*TimeStamp* - This is a long value and this is optional. If the TimeStamp
value is omitted the server *it* expected to populate the TimeStamp value
with event arrival time at the backend server (CEP/BAM)"

But I have seen the timestamp is added to the data streams as a separate
payload parameter in [2].

This problem can be seen in  org.wso2.carbon.bam.webapp.stat.publisher,
 org.wso2.carbon.bam.service.data.publisher (and may be a lot of other)
components. They are using timestamp as a payload parameter (see the
StreamDefinitionCreatorUtil class).

AFAIK there is no explicit requirement to do this duplication for Timestamp.

Shall we change [2] accordingly because the people who follows will get
confused otherwise.

For existing components, we can just ignore this problem.
For new developments, this should be avoided.

WDYT?

[1]
http://wso2.com/library/articles/2012/07/creating-custom-agents-publish-events-bamcep/
[2]
https://docs.wso2.com/display/BAM230/Creating+Hive+Queries+to+Analyze+Data

-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
Mobile: +94716813892
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to