summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;