1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using System;
|
---|
23 | using System.Collections.Generic;
|
---|
24 |
|
---|
25 | namespace HeuristicLab.Services.WebApp.Status.WebApi.DataTransfer {
|
---|
26 |
|
---|
27 | public class CoreStatus {
|
---|
28 | public int TotalCores { get; set; }
|
---|
29 | public int UsedCores { get; set; }
|
---|
30 | public int ActiveCores { get; set; }
|
---|
31 | public int CalculatingCores { get; set; }
|
---|
32 | }
|
---|
33 |
|
---|
34 | public class CpuUtilizationStatus {
|
---|
35 | public double TotalCpuUtilization { get; set; }
|
---|
36 | public double ActiveCpuUtilization { get; set; }
|
---|
37 | public double CalculatingCpuUtilization { get; set; }
|
---|
38 | }
|
---|
39 |
|
---|
40 | public class MemoryStatus {
|
---|
41 | public int TotalMemory { get; set; }
|
---|
42 | public int UsedMemory { get; set; }
|
---|
43 | public int ActiveMemory { get; set; }
|
---|
44 | public int CalculatingMemory { get; set; }
|
---|
45 | }
|
---|
46 |
|
---|
47 | public class TaskStatus {
|
---|
48 | public User User { get; set; }
|
---|
49 | public int CalculatingTasks { get; set; }
|
---|
50 | public int WaitingTasks { get; set; }
|
---|
51 | }
|
---|
52 |
|
---|
53 | public class SlaveStatus {
|
---|
54 | public Slave Slave { get; set; }
|
---|
55 | public double CpuUtilization { get; set; }
|
---|
56 | public int Cores { get; set; }
|
---|
57 | public int FreeCores { get; set; }
|
---|
58 | public int Memory { get; set; }
|
---|
59 | public int FreeMemory { get; set; }
|
---|
60 | public bool IsAllowedToCalculate { get; set; }
|
---|
61 | public string State { get; set; }
|
---|
62 | }
|
---|
63 |
|
---|
64 | public class TimeStatus {
|
---|
65 | public long MinCalculatingTime { get; set; }
|
---|
66 | public long MaxCalculatingTime { get; set; }
|
---|
67 | public long AvgCalculatingTime { get; set; }
|
---|
68 | public long StandardDeviationCalculatingTime { get; set; }
|
---|
69 | public long AvgWaitingTime { get; set; }
|
---|
70 | public long TotalCpuTime { get; set; }
|
---|
71 | public DateTime? BeginDate { get; set; }
|
---|
72 | }
|
---|
73 |
|
---|
74 | public class Status {
|
---|
75 | public CoreStatus CoreStatus { get; set; }
|
---|
76 | public CpuUtilizationStatus CpuUtilizationStatus { get; set; }
|
---|
77 | public MemoryStatus MemoryStatus { get; set; }
|
---|
78 | public TimeStatus TimeStatus { get; set; }
|
---|
79 | public IEnumerable<TaskStatus> TasksStatus { get; set; }
|
---|
80 | public IEnumerable<SlaveStatus> SlavesStatus { get; set; }
|
---|
81 | public long Timestamp { get; set; }
|
---|
82 | }
|
---|
83 |
|
---|
84 | } |
---|