diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 11:45:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 11:45:55 +0000 |
commit | a8220ab2d293bb7f4b014b79d16b2fb05090fa93 (patch) | |
tree | 77f0a30f016c0925cf7ee9292e644bba183c2774 /backends/aws_kinesis/aws_kinesis_put_record.cc | |
parent | Adding upstream version 1.19.0. (diff) | |
download | netdata-a8220ab2d293bb7f4b014b79d16b2fb05090fa93.tar.xz netdata-a8220ab2d293bb7f4b014b79d16b2fb05090fa93.zip |
Adding upstream version 1.29.0.upstream/1.29.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | backends/aws_kinesis/aws_kinesis_put_record.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/backends/aws_kinesis/aws_kinesis_put_record.cc b/backends/aws_kinesis/aws_kinesis_put_record.cc index 0c8ece68b..a8ba4aaca 100644 --- a/backends/aws_kinesis/aws_kinesis_put_record.cc +++ b/backends/aws_kinesis/aws_kinesis_put_record.cc @@ -10,18 +10,18 @@ using namespace Aws; -SDKOptions options; +static SDKOptions options; -Kinesis::KinesisClient *client; +static Kinesis::KinesisClient *client; struct request_outcome { Kinesis::Model::PutRecordOutcomeCallable future_outcome; size_t data_len; }; -Vector<request_outcome> request_outcomes; +static Vector<request_outcome> request_outcomes; -void kinesis_init(const char *region, const char *access_key_id, const char *secret_key, const long timeout) { +void backends_kinesis_init(const char *region, const char *access_key_id, const char *secret_key, const long timeout) { InitAPI(options); Client::ClientConfiguration config; @@ -37,13 +37,13 @@ void kinesis_init(const char *region, const char *access_key_id, const char *sec } } -void kinesis_shutdown() { +void backends_kinesis_shutdown() { Delete(client); ShutdownAPI(options); } -int kinesis_put_record(const char *stream_name, const char *partition_key, +int backends_kinesis_put_record(const char *stream_name, const char *partition_key, const char *data, size_t data_len) { Kinesis::Model::PutRecordRequest request; @@ -56,7 +56,7 @@ int kinesis_put_record(const char *stream_name, const char *partition_key, return 0; } -int kinesis_get_result(char *error_message, size_t *sent_bytes, size_t *lost_bytes) { +int backends_kinesis_get_result(char *error_message, size_t *sent_bytes, size_t *lost_bytes) { Kinesis::Model::PutRecordOutcome outcome; *sent_bytes = 0; *lost_bytes = 0; |