protected override void AggregateEvent(Datum dat) { var dg = dat as LongGauge; if (dg==null) return; m_Sum += dg.Value; }
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; }
protected virtual void AggregateEvent(Datum dat) { }
public void Record(Datum datum) { //does nothing }
public IEnumerable<string> GetDatumTypeSources(Type datumType, out Datum defaultInstance) { defaultInstance = null; return Enumerable.Empty<string>(); }
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); }
public override void Write(Datum aggregatedDatum) { }
public override void Write(Datum aggregatedDatum) { App.Log.Write( toMsg(aggregatedDatum) ); }