From d6ca5026642e051bcfaf98fa6982d8d555747c52 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Sat, 14 Apr 2018 01:50:56 +0200 Subject: Fix: function name collision. Change-Id: Ia4498401e34602b614b137bd22a420bca779c044 Signed-off-by: Romain Forlot --- src/harvester-apidef.json | 4 ++-- src/harvester.c | 2 +- 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; -- cgit 1.2.3-korg