summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-14 01:50:56 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-10 23:41:14 +0200
commitd6ca5026642e051bcfaf98fa6982d8d555747c52 (patch)
tree73c5493baf4a7d9afe82265ccd34402e2398b190
parent687faae61cddf439f831527c33ec82b9b79589ea (diff)
Fix: function name collision.
Change-Id: Ia4498401e34602b614b137bd22a420bca779c044 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--src/harvester-apidef.json4
-rw-r--r--src/harvester.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/harvester-apidef.json b/src/harvester-apidef.json
index ff51a38..c8612d3 100644
--- a/src/harvester-apidef.json
+++ b/src/harvester-apidef.json
@@ -113,8 +113,8 @@
}
}
},
- "/write": {
- "description": "Write a metric to local TSDB and Cloud service if available",
+ "/record": {
+ "description": "Record a metric to local TSDB and Cloud service if available",
"get": {
"x-permissions": {
"LOA": 1
diff --git a/src/harvester.c b/src/harvester.c
index 80bbf37..b137e9c 100644
--- a/src/harvester.c
+++ b/src/harvester.c
@@ -40,7 +40,7 @@ int do_write(struct afb_req req, const char* host, const char *port, json_object
return 0;
}
-void write(struct afb_req req)
+void record(struct afb_req req)
{
const char *port = NULL;
const char *host = NULL;