Пример #1
0
 protected override void AggregateEvent(Datum dat)
 {
     var dg = dat as LongGauge;
     if (dg==null) return;
      
     m_Sum += dg.Value;
 }
Пример #2
0
        private Message toMsg(Datum datum)
        {
            var msg = new Message
              {
            Type = MessageType.PerformanceInstrumentation,
            Topic = CoreConsts.INSTRUMENTATIONSVC_TOPIC,
            From = datum.GetType().FullName,
            Text = datum.ToString()
              };

              return msg;
        }
Пример #3
0
 protected virtual void AggregateEvent(Datum dat) { }
Пример #4
0
 public void Record(Datum datum)
 {
   //does nothing 
 }
Пример #5
0
 public IEnumerable<string> GetDatumTypeSources(Type datumType, out Datum defaultInstance)
 {
   defaultInstance = null;
   return Enumerable.Empty<string>();
 }
Пример #6
0
        protected override void AggregateEvent(Datum evt)
        {
            var eevt = evt as ExceptionEvent;
            if (eevt==null) return;

            if (m_Errors.ContainsKey(eevt.m_ExceptionType))
              m_Errors[eevt.m_ExceptionType] += 1;
            else
              m_Errors.Add(eevt.m_ExceptionType, 1);
        }
Пример #7
0
 public override void Write(Datum aggregatedDatum)
 {
 }
Пример #8
0
 public override void Write(Datum aggregatedDatum)
 {
     App.Log.Write( toMsg(aggregatedDatum) );
 }