/// <summary> /// Initializes a new instance of the <see cref="MetricTelemetry"/> class with empty /// properties. /// </summary> public MetricTelemetry() { this.Data = new MetricData(); this.Metric = new DataPoint(); this.context = new TelemetryContext(this.Data.properties, new Dictionary<string, string>()); // We always have a single 'metric'. this.Data.metrics.Add(this.Metric); }
/// <summary> /// Initializes a new instance of the <see cref="MetricTelemetry"/> class with empty /// properties. /// </summary> public MetricTelemetry() { this.Data = new MetricData(); this.Metric = new DataPoint(); this.Context = new TelemetryContext(this.Data.properties); // We always have a single 'metric'. this.Data.metrics.Add(this.Metric); }