projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3339 from jkohen/patch-1
[collectd.git]
/
src
/
write_stackdriver.c
diff --git
a/src/write_stackdriver.c
b/src/write_stackdriver.c
index
46d9aa8
..
dfa1d7c
100644
(file)
--- a/
src/write_stackdriver.c
+++ b/
src/write_stackdriver.c
@@
-110,7
+110,7
@@
static char *wg_get_authorization_header(wg_callback_t *cb) { /* {{{ */
}
status = ssnprintf(authorization_header, sizeof(authorization_header),
}
status = ssnprintf(authorization_header, sizeof(authorization_header),
- "Authorization: Bearer %s", access_token);
+
"Authorization: Bearer %s", access_token);
if ((status < 1) || ((size_t)status >= sizeof(authorization_header)))
return NULL;
if ((status < 1) || ((size_t)status >= sizeof(authorization_header)))
return NULL;
@@
-252,7
+252,7
@@
static int wg_call_metricdescriptor_create(wg_callback_t *cb,
char const *payload) {
char url[1024];
ssnprintf(url, sizeof(url), "%s/projects/%s/metricDescriptors", cb->url,
char const *payload) {
char url[1024];
ssnprintf(url, sizeof(url), "%s/projects/%s/metricDescriptors", cb->url,
- cb->project);
+
cb->project);
wg_memory_t response = {0};
int status = do_post(cb, url, payload, &response);
wg_memory_t response = {0};
int status = do_post(cb, url, payload, &response);
@@
-273,7
+273,8
@@
static int wg_call_metricdescriptor_create(wg_callback_t *cb,
static int wg_call_timeseries_write(wg_callback_t *cb, char const *payload) {
char url[1024];
static int wg_call_timeseries_write(wg_callback_t *cb, char const *payload) {
char url[1024];
- ssnprintf(url, sizeof(url), "%s/projects/%s/timeSeries", cb->url, cb->project);
+ ssnprintf(url, sizeof(url), "%s/projects/%s/timeSeries", cb->url,
+ cb->project);
wg_memory_t response = {0};
int status = do_post(cb, url, payload, &response);
wg_memory_t response = {0};
int status = do_post(cb, url, payload, &response);