Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApi/DataTransfer/Status.cs @ 12428

Last change on this file since 12428 was 12428, checked in by ascheibe, 9 years ago

#2394 added web app and status page to trunk

File size: 1.2 KB
Line 
1using System.Collections.Generic;
2
3namespace HeuristicLab.Services.WebApp.Status.WebApi.DataTransfer {
4
5  public class CoreStatus {
6    public int TotalCores { get; set; }
7    public int AvailableCores { get; set; }
8    public int FreeCores { get; set; }
9  }
10
11  public class CpuUtilizationStatus {
12    public double TotalCpuUtilization { get; set; }
13    public double UsedCpuUtilization { get; set; }
14  }
15
16  public class MemoryStatus {
17    public int TotalMemory { get; set; }
18    public int FreeMemory { get; set; }
19  }
20
21  public class TaskStatus {
22    public User User { get; set; }
23    public int CalculatingTasks { get; set; }
24    public int WaitingTasks { get; set; }
25  }
26
27  public class SlaveCpuStatus {
28    public Slave Slave { get; set; }
29    public double CpuUtilization { get; set; }
30  }
31
32  public class Status {
33    public CoreStatus CoreStatus { get; set; }
34    public CpuUtilizationStatus CpuUtilizationStatus { get; set; }
35    public MemoryStatus MemoryStatus { get; set; }
36    public IEnumerable<TaskStatus> TasksStatus { get; set; }
37    public IEnumerable<SlaveCpuStatus> SlavesCpuStatus { get; set; }
38    public long Timestamp { get; set; }
39  }
40
41}
Note: See TracBrowser for help on using the repository browser.