Module |
|
Header |
/Engine/Source/Runtime/Analytics/AnalyticsET/Public/AnalyticsProviderETEventCache.h |
Include |
#include "AnalyticsProviderETEventCache.h" |
class FAnalyticsProviderETEventCache
Mixin class for Epic Telemetry implementors. The purpose of this class is to support the concept of caching events that are added via the standard RecordEvent API and serializing them into a payload in a Json format compatible with Epic's backend data collectors. The job of transporting these payloads to an external collector (generally expected to be via HTTP) is left to higher level classes to implement.
All public APIs in this class are threadsafe. Implemented via crappy critical sections for now, but they are safe.
Name | Description | |
---|---|---|
|
FAnalyticsProviderETEventCache |
Default ctor. |
Name | Description | ||
---|---|---|---|
|
AddToCache ( |
Adds a new event to the cache. |
|
|
AddToCache ( |
Adds a new event to the cache. |
|
|
CanFlush() |
Determines whether we have anything we need to flush, either a queued flush or existing events in the payload. |
|
|
FlushCacheUTF8() |
Flushes the cache as a UTF8 char array. |
|
|
FAnalyticsEv... |
GetDefaultAttribute ( |
Range checking is not done, similar to TArray. |
|
GetDefaultAttributeCount() |
||
|
GetDefaultAttributes() |
||
|
int |
GetNumCachedEvents() |
Gets the number of cached events (doesn't include any flushes that are already queued for flush). |
|
GetSetPreallocatedPayloadSize() |
Gets the preallocated size of the payload buffer. |
|
|
HasFlushesQueued() |
Lets external code know that there are payloads queued for flush. |
|
|
SetDefaultAttributes ( |
Sets an array of attributes that will automatically be appended to any event that is sent. |
|
|
SetPreallocatedPayloadSize ( |
Sets the preallocated payload size |
Name |
Description |
|
---|---|---|
|
Lock |
For when you need to take a lock across multiple API calls |
Name | Description | ||
---|---|---|---|
|
FlushCache ( |
This method has been deprecated, use FlushCacheUTF8() instead. |