public override void OnHook(MetricEventArgs e) { var counter = Metrics.Counter(typeof(M), InternalMetric(e.Name, e.Timestamp)); counter.Increment(e.Value); base.OnHook(e); }
public virtual void OnHook(MetricEventArgs e) { var handler = Hook; if (handler == null) { return; } handler(this, e); }
private static void Track(Experiment experiment, MetricEventArgs args) { if (!experiment.IsActive) { return; } args = args; experiment.CurrentParticipant.Conversions++; experiment.CurrentParticipant.Seen++; var index = experiment.AlternativeIndex; //def track!(metric_id, timestamp, count, *args) // return unless active? // identity = identity() rescue nil // if identity // return if connection.ab_showing(@id, identity) // index = alternative_for(identity) // connection.ab_add_conversion @id, index, identity, count // check_completion! // end // end }
public virtual void OnHook(MetricEventArgs e) { var handler = Hook; if (handler == null) return; handler(this, e); }