private void HandleGatherMetrics(GatherMetrics gm)
        {
            Metric metric = CreateMetric();

            _log.Debug("Gathered metric: {0}-{1}: {2}", metric.ServerName, metric.MetricName, metric.Value);
            _metricCollector.Tell(metric);
        }
        private void HandleGatherMetrics(GatherMetrics gatherMetrics)
        {
            var metric = new Metric(this._seriesName, this._counter.NextValue());

            foreach (var subscription in this._subscriptions)
            {
                subscription.Tell(metric);
            }
        }
Beispiel #3
0
        private void Handle(GatherMetrics message)
        {
            var metric = new Metric(_seriesName, _counter.NextValue());

            foreach (var sub in _subscriptions)
            {
                sub.Tell(metric);
            }
        }
Beispiel #4
0
        public void Handle(GatherMetrics message)
        {
            //publish latest counter value to all subscribers
            var metric = new Metric(_seriesName, _counter.NextValue());

            foreach (var sub in _subscriptions)
            {
                sub.Tell(metric);
            }
        }
 private void HandleGatherMetrics(GatherMetrics gm)
 {
     Metric metric = new Metric(_serverName, _metricName, _counter.NextValue());
     _log.Debug("Gathered metric: {0}-{1}: {2}", metric.ServerName, metric.MetricName, metric.Value);
     _metricCollector.Tell(metric);
 }