From bcfaaf57b60a63acacf0651f5a69b45304abc132 Mon Sep 17 00:00:00 2001 From: Roy Date: Thu, 3 Nov 2022 09:16:24 +0200 Subject: FSE Statistics module starter. --- .../PPC/Tango.PPC.Shared/Statistics/Filters.cs | 26 ++++++++++++++++++++++ .../Statistics/GetStatisticsRequest.cs | 18 +++++++++++++++ .../GetStatisticsRequiredFiltersRequest.cs | 13 +++++++++++ .../GetStatisticsRequiredFiltersResponse.cs | 18 +++++++++++++++ .../Statistics/GetStatisticsResponse.cs | 18 +++++++++++++++ .../Statistics/JobRunComposition.cs | 20 +++++++++++++++++ .../Statistics/RequiredFiltersData.cs | 21 +++++++++++++++++ .../Statistics/StatisticsResult.cs | 19 ++++++++++++++++ .../PPC/Tango.PPC.Shared/Tango.PPC.Shared.csproj | 8 +++++++ 9 files changed, 161 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/Filters.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequest.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequiredFiltersRequest.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequiredFiltersResponse.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsResponse.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/JobRunComposition.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/RequiredFiltersData.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/StatisticsResult.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Shared') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/Filters.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/Filters.cs new file mode 100644 index 000000000..0438c699a --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/Filters.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.PPC.Shared.Statistics +{ + public class Filters + { + public DateTime StartDateUTC { get; set; } + public DateTime EndDateUTC { get; set; } + public List Threads { get; set; } + public String JobName { get; set; } + public int MinLength { get; set; } + public int MaxLength { get; set; } + public List EndStatuses { get; set; } + public bool IncludeHeadCleaning { get; set; } + + public Filters() + { + Threads = new List(); + EndStatuses = new List(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequest.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequest.cs new file mode 100644 index 000000000..cacd8db2f --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequest.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.PPC.Shared.Statistics +{ + public class GetStatisticsRequest + { + public Filters Filters { get; set; } + + public GetStatisticsRequest() + { + Filters = new Filters(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequiredFiltersRequest.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequiredFiltersRequest.cs new file mode 100644 index 000000000..fb10cfbfc --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequiredFiltersRequest.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.PPC.Shared.Statistics +{ + public class GetStatisticsRequiredFiltersRequest + { + + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequiredFiltersResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequiredFiltersResponse.cs new file mode 100644 index 000000000..44611f68e --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsRequiredFiltersResponse.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.PPC.Shared.Statistics +{ + public class GetStatisticsRequiredFiltersResponse + { + public RequiredFiltersData FiltersData { get; set; } + + public GetStatisticsRequiredFiltersResponse() + { + FiltersData = new RequiredFiltersData(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsResponse.cs new file mode 100644 index 000000000..a46f15b63 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/GetStatisticsResponse.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.PPC.Shared.Statistics +{ + public class GetStatisticsResponse + { + public StatisticsResult Result { get; set; } + + public GetStatisticsResponse() + { + Result = new StatisticsResult(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/JobRunComposition.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/JobRunComposition.cs new file mode 100644 index 000000000..643f5a63c --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/JobRunComposition.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.DTO; + +namespace Tango.PPC.Shared.Statistics +{ + public class JobRunComposition + { + public JobRunDTO JobRun { get; set; } + public List Events { get; set; } + + public JobRunComposition() + { + Events = new List(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/RequiredFiltersData.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/RequiredFiltersData.cs new file mode 100644 index 000000000..6b934fa49 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/RequiredFiltersData.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.PPC.Shared.Statistics +{ + public class RequiredFiltersData + { + public List Rmls { get; set; } + + public List Jobs { get; set; } + + public RequiredFiltersData() + { + Rmls = new List(); + Jobs = new List(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/StatisticsResult.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/StatisticsResult.cs new file mode 100644 index 000000000..8cee4c545 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Statistics/StatisticsResult.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.DTO; + +namespace Tango.PPC.Shared.Statistics +{ + public class StatisticsResult + { + public List JobRuns { get; set; } + + public StatisticsResult() + { + JobRuns = new List(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Tango.PPC.Shared.csproj b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Tango.PPC.Shared.csproj index 73f142f67..4f06312c6 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Shared/Tango.PPC.Shared.csproj +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/Tango.PPC.Shared.csproj @@ -121,6 +121,14 @@ + + + + + + + + -- cgit v1.3.1