Config

Configuration functionality.

Windows
MacOS
Linux

References

Module

AnalyticsET

Header

/Engine/Source/Runtime/Analytics/AnalyticsET/Public/AnalyticsET.h

Include

#include "AnalyticsET.h"

Syntax

struct Config

Remarks

Defines required configuration values for ET analytics provider. APIKeyET MUST be set. Set APIServerET to an empty string to create a "NULL" analytics provider that will be a valid instance but will suppress sending any events.

Variables

Name Description

Public variable

TArray< FString...

 

AltAPIServersET

ET Alt API Servers - Base URLs to send events on retry.

Public variable

FString

 

APIKeyET

ET APIKey - Get from your account manager

Public variable

FString

 

APIServerET

ET API Server - Base URL to send events.

Public variable

FString

 

AppEnvironment

The AppEnvironment that the data router should use. Defaults to GetDefaultAppEnvironment.

Public variable

FString

 

AppVersionET

AppVersion - defines the app version passed to the provider.

Public variable

bool

 

bDropEventsOnFlushFailure

When true (default), events are dropped if flush fails

Public variable

float

 

FlushIntervalSec

Maximum time to elapse before forcing events to be flushed.

Public variable

int32

 

MaximumPayloadSize

Maximum size a payload can reach before we force a flush of the payload.

Public variable

int32

 

PreallocatedPayloadSize

We preallocate a payload.

Public variable

uint32

 

RetryLimitCount

Maximum number of retries to attempt.

Public variable

FString

 

UploadType

The UploadType that the data router should use. Defaults to GetDefaultUploadType.

Public variable

bool

 

UseLegacyProtocol

When true, sends events using the legacy ET protocol that passes all attributes as URL parameters.

Constructors

Name Description

Public function

Config()

Default ctor to ensure all values have their proper default.

Public function

Config

(
    FString InAPIKeyET,
    FString InAPIServerET,
    FString InAppVersionET,
    bool InUseLegacyProtocol,
    FString InAppEnvironment,
    FString InUploadType,
    TArray< FString > InAltApiServers,
    float InFlushIntervalSec,
    int32 InMaximumPayloadSize,
    int32 InPreallocatedPayloadSize
)

Ctor exposing common configurables .

Functions

Name Description

Public function Static

FString

 

GetDefaultAppEnvironment()

Default value if no APIServer configuration is provided.

Public function Static

FString

 

GetDefaultUploadType()

Default value if no UploadType is given, and UseDataRouter protocol is specified.

Public function Static

FString

 

GetKeyNameForAPIKey()

KeyName required for APIKey configuration.

Public function Static

FString

 

GetKeyNameForAPIServer()

KeyName required for APIServer configuration.

Public function Static

FString

 

GetKeyNameForAppEnvironment()

For the the data router backend protocol.

Public function Static

FString

 

GetKeyNameForAppVersion()

KeyName required for AppVersion configuration.

Public function Static

FString

 

GetKeyNameForUploadType()

For the the data router backend protocol.

Public function Static

FString

 

GetKeyNameForUseLegacyProtocol()

Optional parameter to use the legacy backend protocol.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss