/// <summary> /// Initializes a new instance of the <see cref="MetricChangePointFeedback"/> class. /// </summary> /// <param name="metricId">The identifier of the metric to which the <see cref="MetricChangePointFeedback"/> applies.</param> /// <param name="dimensionKey"> /// A key that identifies a set of time series to which the <see cref="MetricChangePointFeedback"/> 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="startsOn">The start timestamp of feedback time range.</param> /// <param name="endsOn">The end timestamp of feedback time range. When this is equal to <paramref name="startsOn"/> it indicates a single timestamp.</param> /// <param name="value">Indicate whether or not the data points should be considered change points by the service.</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 MetricChangePointFeedback(string metricId, DimensionKey dimensionKey, DateTimeOffset startsOn, DateTimeOffset endsOn, ChangePointValue value) : base(metricId, dimensionKey) { StartsOn = startsOn; EndsOn = endsOn; ValueInternal = new ChangePointFeedbackValue(value); FeedbackKind = MetricFeedbackKind.ChangePoint; }