Kaa client C SDK
|
Go to the source code of this file.
Macros | |
#define | THRESHOLD_VOLUME_FLAG 0x01 |
#define | THRESHOLD_COUNT_FLAG 0x02 |
#define | TIMEOUT_FLAG 0x04 |
#define | KAA_LOG_UPLOAD_VOLUME_STRATEGY (THRESHOLD_VOLUME_FLAG | THRESHOLD_COUNT_FLAG) |
#define | KAA_LOG_UPLOAD_BY_TIMEOUT_STRATEGY (TIMEOUT_FLAG) |
#define | KAA_LOG_UPLOAD_BY_RECORD_COUNT (THRESHOLD_COUNT_FLAG) |
#define | KAA_LOG_UPLOAD_BY_RECORD_COUNT_AND_TIMELIMIT (THRESHOLD_COUNT_FLAG | TIMEOUT_FLAG) |
#define | KAA_LOG_UPLOAD_BY_STORAGE_SIZE (THRESHOLD_VOLUME_FLAG) |
#define | KAA_LOG_UPLOAD_BY_STORAGE_SIZE_AND_TIMELIMIT (THRESHOLD_VOLUME_FLAG | TIMEOUT_FLAG) |
Functions | |
kaa_error_t | ext_log_upload_strategy_change_strategy (void *strategy, uint8_t type) |
kaa_error_t | ext_log_upload_strategy_set_threshold_volume (void *strategy, size_t threshold_volume) |
Sets the new threshold log volume to the strategy. More... | |
kaa_error_t | ext_log_upload_strategy_set_threshold_count (void *strategy, size_t threshold_count) |
Sets the new threshold log count to the strategy. More... | |
kaa_error_t | ext_log_upload_strategy_set_upload_timeout (void *strategy, size_t upload_timeout) |
Sets the new upload timeout to the strategy. More... | |
kaa_error_t | ext_log_upload_strategy_set_max_parallel_uploads (void *strategy, size_t count) |
Sets the max amount of log batches allowed to be uploaded parallel. More... | |
kaa_error_t | ext_log_upload_strategy_set_upload_retry_period (void *strategy, size_t upload_retry_period) |
Sets the new upload retry period to the strategy. More... | |
#define KAA_LOG_UPLOAD_BY_RECORD_COUNT (THRESHOLD_COUNT_FLAG) |
#define KAA_LOG_UPLOAD_BY_RECORD_COUNT_AND_TIMELIMIT (THRESHOLD_COUNT_FLAG | TIMEOUT_FLAG) |
#define KAA_LOG_UPLOAD_BY_STORAGE_SIZE (THRESHOLD_VOLUME_FLAG) |
#define KAA_LOG_UPLOAD_BY_STORAGE_SIZE_AND_TIMELIMIT (THRESHOLD_VOLUME_FLAG | TIMEOUT_FLAG) |
#define KAA_LOG_UPLOAD_BY_TIMEOUT_STRATEGY (TIMEOUT_FLAG) |
#define KAA_LOG_UPLOAD_VOLUME_STRATEGY (THRESHOLD_VOLUME_FLAG | THRESHOLD_COUNT_FLAG) |
#define THRESHOLD_COUNT_FLAG 0x02 |
#define THRESHOLD_VOLUME_FLAG 0x01 |
#define TIMEOUT_FLAG 0x04 |
kaa_error_t ext_log_upload_strategy_change_strategy | ( | void * | strategy, |
uint8_t | type | ||
) |
kaa_error_t ext_log_upload_strategy_set_max_parallel_uploads | ( | void * | strategy, |
size_t | count | ||
) |
Sets the max amount of log batches allowed to be uploaded parallel.
strategy | The strategy instance. |
count | The new max amount. |
kaa_error_t ext_log_upload_strategy_set_threshold_count | ( | void * | strategy, |
size_t | threshold_count | ||
) |
Sets the new threshold log count to the strategy.
strategy | The strategy instance. |
threshold_count | The new threshold log count. |
kaa_error_t ext_log_upload_strategy_set_threshold_volume | ( | void * | strategy, |
size_t | threshold_volume | ||
) |
Sets the new threshold log volume to the strategy.
strategy | The strategy instance. |
threshold_volume | The new threshold volume value in bytes. |
kaa_error_t ext_log_upload_strategy_set_upload_retry_period | ( | void * | strategy, |
size_t | upload_retry_period | ||
) |
Sets the new upload retry period to the strategy.
strategy | The strategy instance. |
upload_retry_period | The new upload retry period value in seconds. |
kaa_error_t ext_log_upload_strategy_set_upload_timeout | ( | void * | strategy, |
size_t | upload_timeout | ||
) |
Sets the new upload timeout to the strategy.
strategy | The strategy instance. |
upload_timeout | The new upload timeout in seconds. |