]> arthur.barton.de Git - netdata.git/blobdiff - src/eval.h
dns_query_time plugin: replace "." with "_" in dimensions
[netdata.git] / src / eval.h
index c1f049ce402d0953f1dc2f4ff35b32768ec775ac..d68b9af474ce7f5806746dc7db2321d059104b7f 100644 (file)
@@ -14,7 +14,11 @@ typedef struct eval_expression {
     const char *source;
     const char *parsed_as;
 
+    int *status;
     calculated_number *this;
+    time_t *after;
+    time_t *before;
+
     calculated_number result;
 
     int error;
@@ -41,6 +45,7 @@ typedef struct eval_expression {
 #define EVAL_ERROR_MISSING_OPERAND                3
 #define EVAL_ERROR_MISSING_OPERATOR               4
 #define EVAL_ERROR_REMAINING_GARBAGE              5
+#define EVAL_ERROR_IF_THEN_ELSE_MISSING_ELSE      6
 
 // evaluation errors
 #define EVAL_ERROR_INVALID_VALUE                101