IEventMetadata's trackId and key
CompletedIEventMetadata has trackid() and key() member functions.
And have following definition and descriptions.
But, I don't understand what the "Object" is, Is the object causing the event?
What is the purpose of the object for the event? If I put the related object id to event, it acts like "key()" below. It prevents popping up message twice.
/**
* @return Id of the object track. Object track is a sequence of object detections from its
* first appearance on the scene till its disappearance. The same object can have multiple
* tracks (e.g. the same person entered and exited a room several times).
*/
public: Uuid trackId() const { Uuid value; getTrackId(&value); return value; }
/**
* Optional property used to identify duplicates of state-dependent Events which are isActive.
*
* State-dependent (prolonged) Events allow for duplicate EventMetadata instances that denote
* the beginning of the Event (with isActive() being true) - all such duplicates except the
* first one are ignored by the Server. To be able to do so, the Server uses a key to identify
* such duplicates, which consists of the Event's type id, track id (if specified) and this
* property (if specified).
*/
virtual const char* key() const = 0;
-
Hi Jason Shim
What is the purpose of the object for the event? If I put the related object id to event, it acts like "key()" below. It prevents popping up message twice.
Do you run your tests for instant or prolonged events? There is different scenarios to consider, for example, object in the area event, which can be caused by some object.
Could you share your requirements for analytics events and user scenarios? Keep in mind, SDK classes attempts to provides tools to solve as much user stories as possible, but it doesn't mean all fields should be used.
0 -
I use the trackId for both instant and prolonged events.
At first, I understood trackId is for id for a object causing the event, but actually it work as identifier for a event.
It works fine for the later purpose and I'm satisfied for it. As long as it work same without using key(), it will be OK.
0
Please sign in to leave a comment.
Comments
2 comments