public PeriodFeedbackValue(MetricPeriodType periodType, int periodValue)
 {
     PeriodType  = periodType;
     PeriodValue = periodValue;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MetricPeriodFeedback"/> class.
 /// </summary>
 /// <param name="metricId">The identifier of the metric to which the <see cref="MetricPeriodFeedback"/> applies.</param>
 /// <param name="dimensionKey">
 /// A key that identifies a set of time series to which the <see cref="MetricPeriodFeedback"/> applies.
 /// If all possible dimensions are set, this key uniquely identifies a single time series
 /// for the specified <paramref name="metricId"/>. If only a subset of dimensions are set, this
 /// key uniquely identifies a group of time series.
 /// </param>
 /// <param name="periodType">Tells the service how to determine the period of the seasonal data.</param>
 /// <param name="periodValue">The expected value of the period, measured in amount of data points. 0 means non-seasonal data.</param>
 /// <exception cref="ArgumentNullException"><paramref name="metricId"/> or <paramref name="dimensionKey"/> is <c>null</c>.</exception>
 /// <exception cref="ArgumentException"><paramref name="metricId"/> is empty.</exception>
 public MetricPeriodFeedback(string metricId, DimensionKey dimensionKey, MetricPeriodType periodType, int periodValue)
     : base(metricId, dimensionKey)
 {
     ValueInternal = new PeriodFeedbackValue(periodType, periodValue);
     FeedbackKind  = MetricFeedbackKind.Period;
 }