Ejemplo n.º 1
0
        public override void OnHook(MetricEventArgs e)
        {
            var counter = Metrics.Counter(typeof(M), InternalMetric(e.Name, e.Timestamp));

            counter.Increment(e.Value);
            base.OnHook(e);
        }
Ejemplo n.º 2
0
        public virtual void OnHook(MetricEventArgs e)
        {
            var handler = Hook;

            if (handler == null)
            {
                return;
            }
            handler(this, e);
        }
Ejemplo n.º 3
0
 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
 }
Ejemplo n.º 4
0
 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
 }
Ejemplo n.º 5
0
 public virtual void OnHook(MetricEventArgs e)
 {
     var handler = Hook;
     if (handler == null) return;
     handler(this, e);
 }
Ejemplo n.º 6
0
 public override void OnHook(MetricEventArgs e)
 {
     var counter = Metrics.Counter(typeof(M), InternalMetric(e.Name, e.Timestamp));
     counter.Increment(e.Value);
     base.OnHook(e);
 }