summaryrefslogtreecommitdiff
path: root/readme_fieldstat_easy.md
diff options
context:
space:
mode:
Diffstat (limited to 'readme_fieldstat_easy.md')
-rw-r--r--readme_fieldstat_easy.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/readme_fieldstat_easy.md b/readme_fieldstat_easy.md
index 67e6901..c6f39cd 100644
--- a/readme_fieldstat_easy.md
+++ b/readme_fieldstat_easy.md
@@ -169,15 +169,15 @@ All the metrics in fieldstat easy are dynamic, which means that the metrics has
#include "fieldstat_easy.h"
const int N_THREADS = 3;
-struct fieldstat_tag global_tags[1];
-struct fieldstat_tag tmptag;
+struct field global_tags[1];
+struct field tmptag;
tmptag.key = "app id";
-tmptag.type = TAG_INTEGER;
+tmptag.type = FIELD_VALUE_INTEGER;
tmptag.value_longlong = 1;
global_tags[0] = tmptag;
-struct fieldstat_tag tag1 = {"direction", TAG_STRING, "incoming"};
-struct fieldstat_tag tag2 = {"direction", TAG_STRING, "outgoing"};
+struct field tag1 = {"direction", TAG_STRING, "incoming"};
+struct field tag2 = {"direction", TAG_STRING, "outgoing"};
struct fieldstat_easy *fse = fieldstat_easy_new(N_THREADS, NULL, global_tags, 1);
int counter_id = fieldstat_easy_register_counter(fse, "incoming bytes");