|
| 1 | +#pragma once |
| 2 | + |
| 3 | +#include "Module.h" |
| 4 | + |
| 5 | +// @stubgen:include <com/IIteratorType.h> |
| 6 | + |
| 7 | +namespace WPEFramework { |
| 8 | +namespace Exchange { |
| 9 | + // @json 1.0.0 @text:keep |
| 10 | + struct EXTERNAL IAnalytics : virtual public Core::IUnknown { |
| 11 | + enum { ID = ID_ANALYTICS }; |
| 12 | + |
| 13 | + virtual ~IAnalytics() = default; |
| 14 | + |
| 15 | + using IStringIterator = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>; |
| 16 | + |
| 17 | + |
| 18 | + // @alt sendEvent |
| 19 | + // @brief Send an event to the analytics server |
| 20 | + // @param eventName: Name of the event |
| 21 | + // @param eventVersion: Version of the event |
| 22 | + // @param eventSource: Source of the event |
| 23 | + // @param eventSourceVersion: Version of the event source |
| 24 | + // @param cetList: List of CETs |
| 25 | + // @param epochTimestamp: Epoch timestamp of the event |
| 26 | + // @param uptimeTimestamp: Uptime timestamp of the event |
| 27 | + // @param eventPayload: Payload of the event |
| 28 | + |
| 29 | + virtual Core::hresult SendEvent(const string& eventName /* @in */, |
| 30 | + const string& eventVersion /* @in */, |
| 31 | + const string& eventSource /* @in */, |
| 32 | + const string& eventSourceVersion /* @in */, |
| 33 | + IStringIterator* const& cetList /* @in */, |
| 34 | + const uint64_t epochTimestamp /* @in */, |
| 35 | + const uint64_t uptimeTimestamp /* @in */, |
| 36 | + const string& eventPayload /* @in */ ) = 0; |
| 37 | + }; |
| 38 | +} |
| 39 | +} |
0 commit comments