aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Telemetry/Reporting/SourceSummary.cs
blob: 04e57e985474812a536ac13c3cd6d79d8a38c60f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System.Collections.Generic;

namespace Tango.Telemetry.Reporting
{
    /// <summary>
    /// Represents a summary of telemetry publish results for a specific telemetry source,
    /// including aggregated destination-level status counts.
    /// </summary>
    public class SourceSummary
    {
        /// <summary>
        /// Gets or sets the name of the telemetry source (e.g., JobRunsHistorySource, DiagnosticsStream).
        /// </summary>
        public string SourceName { get; set; }

        /// <summary>
        /// Gets or sets a dictionary of aggregated publish results per destination for this source.
        /// The key is the destination name, and the value contains counters for each delivery status.
        /// </summary>
        public Dictionary<string, DestinationStatusSummary> Destinations { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="SourceSummary"/> class,
        /// initializing the destination summary dictionary.
        /// </summary>
        public SourceSummary()
        {
            Destinations = new Dictionary<string, DestinationStatusSummary>();
        }
    }
}