fix(api): Статистика хостам, приложениям, хостам в шаблонах
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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;}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace PARR.API.Contracts.V1.Responses.Statistics
|
||||
{
|
||||
public class StatHostTemplateResponse
|
||||
{
|
||||
public int AllHosts { get; set; }
|
||||
public int HostsInTemplates { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user