예제 #1
0
파일: Node.cs 프로젝트: drusellers/BlackOps
 // 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
             };
 }
예제 #2
0
파일: Node.cs 프로젝트: drusellers/BlackOps
 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
             };
 }
예제 #3
0
파일: Node.cs 프로젝트: drusellers/BlackOps
 //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"
     // }
 }