Hi,

Is this time stamp set per event? If so, the timestamp might be useful
since the event generation time and the event sent time can be different.
This could especially be true when sending events as batch requests
asynchronously

On Saturday, July 26, 2014, Chamil Jeewantha <[email protected]> wrote:

> 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
>
>  --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','documentation%[email protected]');>.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to