Skip to content

Commit b2087e6

Browse files
committed
Add IAnalytics interface
1 parent 49a109e commit b2087e6

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

interfaces/IAnalytics.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
}

interfaces/Ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ namespace Exchange {
374374
ID_TESTAUTOMATIONCOMRPC = ID_TESTAUTOMATIONMEMORY + 1,
375375
ID_TESTAUTOMATIONCOMRPCINTERNAL = ID_TESTAUTOMATIONMEMORY + 2
376376

377+
ID_ANALYTICS = RPC::IDS::ID_EXTERNAL_INTERFACE_OFFSET + 0x500
377378
};
378379
}
379380
}

0 commit comments

Comments
 (0)