diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-08-04 01:09:55 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-08-04 01:09:55 +0300 |
| commit | 8bbeffb422e8535c399f1eb76a55fdee5a1c65b6 (patch) | |
| tree | f200faa0e11c23f9105c3f12e0a6a2ea51832214 /Software/Visual_Studio/Tango.Telemetry/TelemetryPublisherConfiguration.cs | |
| parent | 0df9f37075dd697ac34f4ed2a2749f62aa27a654 (diff) | |
| download | Tango-8bbeffb422e8535c399f1eb76a55fdee5a1c65b6.tar.gz Tango-8bbeffb422e8535c399f1eb76a55fdee5a1c65b6.zip | |
Telemetry JobRuns.
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry/TelemetryPublisherConfiguration.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Telemetry/TelemetryPublisherConfiguration.cs | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/TelemetryPublisherConfiguration.cs b/Software/Visual_Studio/Tango.Telemetry/TelemetryPublisherConfiguration.cs index a9f4954dd..ceb405a4e 100644 --- a/Software/Visual_Studio/Tango.Telemetry/TelemetryPublisherConfiguration.cs +++ b/Software/Visual_Studio/Tango.Telemetry/TelemetryPublisherConfiguration.cs @@ -15,6 +15,10 @@ namespace Tango.Telemetry /// </summary> public MachineTypes MachineType { get; set; } + public String Organization { get; set; } + + public String Site { get; set; } + /// <summary> /// Environment in which the telemetry is being published (e.g., Production, QA, Dev). /// </summary> @@ -23,27 +27,27 @@ namespace Tango.Telemetry /// <summary> /// Interval for checking and reprocessing failed/pending telemetry from local storage. /// </summary> - public TimeSpan PendingStorageCheckInterval { get; set; } + public TimeSpan PendingStorageCheckInterval { get; set; } = TimeSpan.FromMinutes(1); /// <summary> /// Maximum number of pending telemetry records to process in a single retry cycle. /// </summary> - public int MaxPendingStorageTelemetriesPerCycle { get; set; } + public int MaxPendingStorageTelemetriesPerCycle { get; set; } = 100; /// <summary> /// Frequency at which historical sources are polled to request backlogged or missed telemetry. /// </summary> - public TimeSpan HistorySourcesRequestInterval { get; set; } + public TimeSpan HistorySourcesRequestInterval { get; set; } = TimeSpan.FromMinutes(1); /// <summary> /// Maximum number of telemetry packages allowed in memory queues before rejecting new packages. /// </summary> - public int MaxPendingTelemetries { get; set; } + public int MaxPendingTelemetries { get; set; } = 200; /// <summary> /// Whether exponential backoff should be applied to retry logic per destination. /// </summary> - public bool EnableBackoff { get; set; } + public bool EnableBackoff { get; set; } = false; /// <summary> /// The maximum amount of time to delay retries during exponential backoff. @@ -57,14 +61,6 @@ namespace Tango.Telemetry /// </summary> public TimeSpan PublishedTelemetriesCacheCleanupInterval { get; set; } = TimeSpan.FromHours(1); - public TelemetryPublisherConfiguration() - { - PendingStorageCheckInterval = TimeSpan.FromMinutes(1); - MaxPendingStorageTelemetriesPerCycle = 100; - HistorySourcesRequestInterval = TimeSpan.FromMinutes(1); - MaxPendingTelemetries = 200; - } - public void Validate() { if (!SerialNumber.IsNotNullOrEmpty()) |
