fix(api): Статистика хостам, приложениям, хостам в шаблонах

This commit is contained in:
Mikhail Trubnikov
2023-12-20 13:43:03 +10:00
parent a37ac87913
commit 9e55dfa9b5
6 changed files with 150 additions and 0 deletions

View File

@@ -187,6 +187,17 @@ namespace PARR.API.Contracts.V1
public const string Get = BaseStat + "/templates/";
}
public static class StatHost
{
public const string Get = BaseStat + "/hosts/";
public const string GetWithTemplates = BaseStat + "/hosts/templates";
}
public static class StatApplication
{
public const string Get = BaseStat + "/applications/";
}
#endregion
}

View File

@@ -0,0 +1,11 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatApplicationResponse
{
public int AllApplications { get; set; }
public int CreatedLastDay { get; set; }
public int UpdatedLastDay { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatHostResponse
{
public int AllHosts { get; set; }
public int CreatedLastDay { get; set; }
public int UpdatedLastDay { get; set;}
}
}

View File

@@ -0,0 +1,8 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatHostTemplateResponse
{
public int AllHosts { get; set; }
public int HostsInTemplates { get; set; }
}
}