Exemplo n.º 1
0
        static void saveMetric(LiveSystem system, string metric, DataSource metricSource, double perSecond)
        {
            var reallyMidnight = Dates.midnight(Dates.reallyNow());

            if (metricSource != null)
            {
                system.series(metric).with(metricSource).write(reallyMidnight, perSecond);
            }
        }