Setting up basic idea of overwatch transcript

This commit is contained in:
benbierens 2024-07-25 10:30:20 +02:00
parent 485b2387e4
commit 8064051f2f
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
3 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,76 @@
namespace OverwatchTranscript
{
[Serializable]
public class Transcript
{
public Header Header { get; set; } = new();
public Event[] Events { get; set; } = Array.Empty<Event>();
}
[Serializable]
public class Header
{
public int TotalNumberOfNodes { get; set; }
}
[Serializable]
public class Event
{
public DateTime Utc { get; set; }
public ScenarioFinishedEvent? ScenarioFinished { get; set; }
public NodeStartedEvent? NodeStarted { get; set; }
public NodeStoppedEvent? NodeStopped { get; set; }
public FileUploadedEvent? FileUploaded { get; set; }
public FileDownloadedEvent? FileDownloaded { get; set; }
public BlockReceivedEvent? BlockReceived { get; set; }
}
#region Scenario Generated Events
[Serializable]
public class ScenarioFinishedEvent
{
public bool Success { get; set; }
public string Result { get; set; } = string.Empty;
}
[Serializable]
public class NodeStartedEvent
{
public string Name { get; set; } = string.Empty;
public string Image { get; set; } = string.Empty;
public string Args { get; set; } = string.Empty;
}
[Serializable]
public class NodeStoppedEvent
{
public string Name { get; set; } = string.Empty;
}
[Serializable]
public class FileUploadedEvent
{
public ulong ByteSize { get; set; }
public string Cid { get; set; } = string.Empty;
}
[Serializable]
public class FileDownloadedEvent
{
public string Cid { get; set; } = string.Empty;
}
#endregion
#region Codex Generated Events
[Serializable]
public class BlockReceivedEvent
{
public string BlockAddress { get; set; } = string.Empty;
public string PeerId { get; set; } = string.Empty;
}
#endregion
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -70,6 +70,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoClient", "Tools\AutoCli
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KeyMaker", "Tools\KeyMaker\KeyMaker.csproj", "{B57A4789-D8EF-42E0-8D20-581C4057FFD3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OverwatchTranscript", "Tools\OverwatchTranscript\OverwatchTranscript.csproj", "{3A6CD81E-3134-4F4C-8846-1DFA6AF7774C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -184,6 +186,10 @@ Global
{B57A4789-D8EF-42E0-8D20-581C4057FFD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B57A4789-D8EF-42E0-8D20-581C4057FFD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B57A4789-D8EF-42E0-8D20-581C4057FFD3}.Release|Any CPU.Build.0 = Release|Any CPU
{3A6CD81E-3134-4F4C-8846-1DFA6AF7774C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A6CD81E-3134-4F4C-8846-1DFA6AF7774C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A6CD81E-3134-4F4C-8846-1DFA6AF7774C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A6CD81E-3134-4F4C-8846-1DFA6AF7774C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -216,6 +222,7 @@ Global
{88C212E9-308A-46A4-BAAD-468E8EBD8EDF} = {8F1F1C2A-E313-4E0C-BE40-58FB0BA91124}
{73599F9C-98BB-4C6A-9D7D-7C50FBF2993B} = {7591C5B3-D86E-4AE4-8ED2-B272D17FE7E3}
{B57A4789-D8EF-42E0-8D20-581C4057FFD3} = {7591C5B3-D86E-4AE4-8ED2-B272D17FE7E3}
{3A6CD81E-3134-4F4C-8846-1DFA6AF7774C} = {7591C5B3-D86E-4AE4-8ED2-B272D17FE7E3}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {237BF0AA-9EC4-4659-AD9A-65DEB974250C}