Beispiel #1
0
 // observation {
 //     node = "/usa/east/srv23"
 //     event = "newsale"
 //     feature = "/cashier/sales"
 // }
 public void ReportEvent(Expression<Action<Features>> feature, string evt)
 {
     var f = MethodCallStringulator.Convert(feature);
     var o = new Observation()
             {
                 Event = evt,
                 Feature = f,
                 Node = _name
             };
 }
Beispiel #2
0
 public void ReportMeasurement(Expression<Action<Features>> feature, Expression<Action<Measurements>> measurement, double value)
 {
     var f = MethodCallStringulator.Convert(feature);
     var v = value;
     var o = new Observation()
             {
                 Node = _name,
                 Feature = f,
                 Value = v
             };
 }
Beispiel #3
0
 //kojack with a kodax
 public void ReportStatus(Expression<Action<Features>> feature, Expression<Action<Statuses>> status)
 {
     var f = MethodCallStringulator.Convert(feature);
     var s = MethodCallStringulator.Convert(status);
     var o = new Observation()
             {
                 Feature = f,
                 Status = s,
                 Node = _name
             };
     // observation {
     //     Feature = "/msmq/up"
     //     Status = "down"
     //     Node = "srvtopeka22"
     // }
 }