aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Telemetry/TelemetryPublishResult.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-07-30 12:36:30 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-07-30 12:36:30 +0300
commit4222eddece906d6f0877022c06b853deb5068472 (patch)
treea29b706b3a5aedb28a42b209d5bb72b0ef94d40e /Software/Visual_Studio/Tango.Telemetry/TelemetryPublishResult.cs
parenta802fe75f9538371004f1833e69a69b798892d0c (diff)
downloadTango-4222eddece906d6f0877022c06b853deb5068472.tar.gz
Tango-4222eddece906d6f0877022c06b853deb5068472.zip
Telemetry source.
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry/TelemetryPublishResult.cs')
-rw-r--r--Software/Visual_Studio/Tango.Telemetry/TelemetryPublishResult.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/TelemetryPublishResult.cs b/Software/Visual_Studio/Tango.Telemetry/TelemetryPublishResult.cs
new file mode 100644
index 000000000..37c6af412
--- /dev/null
+++ b/Software/Visual_Studio/Tango.Telemetry/TelemetryPublishResult.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.Telemetry
+{
+ public class TelemetryPublishResult
+ {
+ public enum DestinationStatus
+ {
+ None,
+ Passed,
+ Unavailable,
+ Failed,
+ Postponed
+ }
+
+ public class DestinationResult
+ {
+ public ITelemetryDestination Destination { get; set; }
+ public DestinationStatus Status { get; set; }
+ public Exception Error { get; set; }
+ public TimeSpan ElapsedTime { get; set; }
+ }
+
+ public List<DestinationResult> DestinationsResults { get; set; }
+ public TimeSpan TotalElapsedTime { get; set; }
+
+ public TimeSpan OverheadTime
+ {
+ get { return TimeSpan.FromMilliseconds(TotalElapsedTime.TotalMilliseconds - DestinationsResults.Sum(x => x.ElapsedTime.TotalMilliseconds)); }
+ }
+
+ public TelemetryPublishResult()
+ {
+ DestinationsResults = new List<DestinationResult>();
+ }
+ }
+}