コード例 #1
0
        public GaugeAggregator(MetricSeriesConfigurationForGauge configuration, MetricSeries dataSeries, MetricAggregationCycleKind aggregationCycleKind)
            : base(MetricValuesBufferFactory, configuration, dataSeries, aggregationCycleKind)
        {
            Util.ValidateNotNull(configuration, nameof(configuration));

            _restrictToUInt32Values = configuration.RestrictToUInt32Values;
            ResetAggregate();
        }
        /// <summary />
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(MetricSeriesConfigurationForGauge other)
        {
            if (other == null)
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return((this.AlwaysResendLastValue == other.AlwaysResendLastValue) &&
                   (this.RestrictToUInt32Values == other.RestrictToUInt32Values));
        }
コード例 #3
0
 /// <summary />
 /// <param name="seriesCountLimit"></param>
 /// <param name="valuesPerDimensionLimit"></param>
 /// <param name="seriesConfig"></param>
 public MetricConfigurationForGauge(int seriesCountLimit, int valuesPerDimensionLimit, MetricSeriesConfigurationForGauge seriesConfig)
     : base(seriesCountLimit, valuesPerDimensionLimit, seriesConfig)
 {
 }