Example #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);
        }
Example #2
0
        public virtual void OnHook(MetricEventArgs e)
        {
            var handler = Hook;

            if (handler == null)
            {
                return;
            }
            handler(this, e);
        }
Example #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
 }
Example #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
 }
Example #5
0
 public virtual void OnHook(MetricEventArgs e)
 {
     var handler = Hook;
     if (handler == null) return;
     handler(this, e);
 }
Example #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);
 }