blob: 265cb14e0c2f9524fb445683d27a349e1d334cc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}
}
|