Sternum Linux SDK
|
Configuration structure for initializing the SDK.
This structure must be filled by the user before initializing the SDK.
#include <sternum_settings.h>
Data Fields | |
const char * | sternum_url |
Your Sternum dedicated transmission URL. More... | |
uint64_t | access_token |
Device definition id for traces transmitted from the importing application. More... | |
uint64_t | device_id |
Device id for traces transmitted from the importing application. More... | |
const char * | firmware_version |
String identifying client's application firmware version. More... | |
const uint64_t * | relay_override_device_id |
If a remote device that originated the relayed traces cannot have a random a device ID, provide an alternate device ID. More... | |
bool | is_production |
If the application is in production/development phase. More... | |
const char * | cache_file_path |
Path of the trace file cache. More... | |
size_t | max_cache_size_bytes |
The maximum amount of bytes to store on disk when caching traces. More... | |
bool | force_sync_cache |
When set to true, the cache file is synchronized to disk after every write, improving resilience against unexpected reboots or power losses. More... | |
sternum_transmission_callbacks_t | transmission_callbacks |
Optional callback functions that the SDK can invoke during transmission operation. More... | |
uint64_t sternum_settings_t::access_token |
Device definition id for traces transmitted from the importing application.
const char* sternum_settings_t::cache_file_path |
Path of the trace file cache.
The cache file is used for constructing trace and storing traces before transmission. The file cache maintains persistence across multiple application executions. Each application instance must use a unique file cache.
The provided string must be either a full path or a filename.
uint64_t sternum_settings_t::device_id |
Device id for traces transmitted from the importing application.
const char* sternum_settings_t::firmware_version |
String identifying client's application firmware version.
bool sternum_settings_t::force_sync_cache |
When set to true, the cache file is synchronized to disk after every write, improving resilience against unexpected reboots or power losses.
When set to false, synchronization is deferred and performed after a batch of writes, which improves performance at the cost of durability.
bool sternum_settings_t::is_production |
If the application is in production/development phase.
The SDK will report this status to the cloud during initialization for diagnostic purposes.
size_t sternum_settings_t::max_cache_size_bytes |
The maximum amount of bytes to store on disk when caching traces.
Cache is automatically emptied when internet connection is available.
const uint64_t* sternum_settings_t::relay_override_device_id |
If a remote device that originated the relayed traces cannot have a random a device ID, provide an alternate device ID.
If NULL is provided, device id won't be overridden.
const char* sternum_settings_t::sternum_url |
Your Sternum dedicated transmission URL.
sternum_transmission_callbacks_t sternum_settings_t::transmission_callbacks |
Optional callback functions that the SDK can invoke during transmission operation.
This structure allows users to define custom behavior for specific SDK events. If a callback is set to NULL, the SDK will safely proceed without invoking it.