diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry/TelemetryPendingDestination.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Telemetry/TelemetryPendingDestination.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/TelemetryPendingDestination.cs b/Software/Visual_Studio/Tango.Telemetry/TelemetryPendingDestination.cs new file mode 100644 index 000000000..265cb14e0 --- /dev/null +++ b/Software/Visual_Studio/Tango.Telemetry/TelemetryPendingDestination.cs @@ -0,0 +1,18 @@ +using System; + +namespace Tango.Telemetry +{ + public class TelemetryPendingDestination + { + public string Name { get; set; } + + // Tracks how many retry attempts have been made for this destination. + public int RetryCount { get; set; } = 0; + + // The UTC timestamp of the last attempt made. + public DateTime LastAttempt { get; set; } = DateTime.MinValue; + + // The UTC timestamp when the next attempt should be allowed, supporting exponential backoff. + public DateTime NextEligibleAttempt { get; set; } = DateTime.MinValue; + } +}
\ No newline at end of file |
