]> arthur.barton.de Git - netdata.git/blobdiff - src/eval.h
operational health monitoring - we got alarms! - no notifications yet though
[netdata.git] / src / eval.h
index 9b13a644e1ea2904192b9e0974ee670d9ca200a1..0b174a20831a9841ba6604c218c0769233b10113 100644 (file)
@@ -5,6 +5,7 @@
 
 typedef struct eval_variable {
     char *name;
+    uint32_t hash;
     struct rrdvar *rrdvar;
     struct eval_variable *next;
 } EVAL_VARIABLE;
@@ -13,6 +14,7 @@ typedef struct eval_expression {
     const char *source;
     const char *parsed_as;
 
+    calculated_number *this;
     calculated_number result;
 
     int error;
@@ -22,7 +24,7 @@ typedef struct eval_expression {
     void *nodes;
 
     // custom data to be used for looking up variables
-    void *data;
+    struct rrdcalc *rrdcalc;
 } EVAL_EXPRESSION;
 
 #define EVAL_VALUE_INVALID 0