[12435] | 1 | #region License Information
|
---|
| 2 | /* HeuristicLab
|
---|
[14185] | 3 | * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
[12435] | 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
|
---|
[12428] | 21 |
|
---|
[12878] | 22 | using System;
|
---|
[12435] | 23 | using System.Collections.Generic;
|
---|
| 24 |
|
---|
[12428] | 25 | namespace HeuristicLab.Services.WebApp.Status.WebApi.DataTransfer {
|
---|
| 26 |
|
---|
| 27 | public class CoreStatus {
|
---|
| 28 | public int TotalCores { get; set; }
|
---|
[12878] | 29 | public int UsedCores { get; set; }
|
---|
[12435] | 30 | public int ActiveCores { get; set; }
|
---|
| 31 | public int CalculatingCores { get; set; }
|
---|
[12428] | 32 | }
|
---|
| 33 |
|
---|
| 34 | public class CpuUtilizationStatus {
|
---|
| 35 | public double TotalCpuUtilization { get; set; }
|
---|
[12435] | 36 | public double ActiveCpuUtilization { get; set; }
|
---|
| 37 | public double CalculatingCpuUtilization { get; set; }
|
---|
[12428] | 38 | }
|
---|
| 39 |
|
---|
| 40 | public class MemoryStatus {
|
---|
| 41 | public int TotalMemory { get; set; }
|
---|
[12878] | 42 | public int UsedMemory { get; set; }
|
---|
[12435] | 43 | public int ActiveMemory { get; set; }
|
---|
[12878] | 44 | public int CalculatingMemory { get; set; }
|
---|
[12428] | 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 |
|
---|
[12435] | 53 | public class SlaveStatus {
|
---|
[12428] | 54 | public Slave Slave { get; set; }
|
---|
| 55 | public double CpuUtilization { get; set; }
|
---|
[12435] | 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; }
|
---|
[12428] | 62 | }
|
---|
| 63 |
|
---|
[12878] | 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 |
|
---|
[12428] | 74 | public class Status {
|
---|
| 75 | public CoreStatus CoreStatus { get; set; }
|
---|
| 76 | public CpuUtilizationStatus CpuUtilizationStatus { get; set; }
|
---|
| 77 | public MemoryStatus MemoryStatus { get; set; }
|
---|
[12878] | 78 | public TimeStatus TimeStatus { get; set; }
|
---|
[12428] | 79 | public IEnumerable<TaskStatus> TasksStatus { get; set; }
|
---|
[12435] | 80 | public IEnumerable<SlaveStatus> SlavesStatus { get; set; }
|
---|
[12428] | 81 | public long Timestamp { get; set; }
|
---|
| 82 | }
|
---|
| 83 |
|
---|
| 84 | } |
---|