Changeset 11084 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Controllers/ExceptionDataController.cs
- Timestamp:
- 07/04/14 08:59:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Controllers/ExceptionDataController.cs
r11053 r11084 9 9 public class ExceptionDataController : Controller { 10 10 11 public JsonResult TaskExceptions(string limit, string userName, DateTime? start = null, DateTime? end = null, string jobId = null, string taskState= null)11 public JsonResult TaskExceptions(string userName, DateTime? start = null, DateTime? end = null, string jobId = null, string taskState = null, string slaveId = null) 12 12 { 13 13 using (var db = new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString)) { … … 23 23 (!end.HasValue || tasks.EndTime < end) && 24 24 (string.IsNullOrEmpty(jobId) || tasks.JobId.ToString() == jobId) && 25 (string.IsNullOrEmpty(taskState) || tasks.TaskState == state) 25 (string.IsNullOrEmpty(taskState) || tasks.TaskState == state) && 26 (string.IsNullOrEmpty(slaveId) || tasks.LastClientId.ToString() == slaveId) 26 27 select new 27 28 { … … 29 30 ErrorMessage = tasks.Exception, 30 31 StartDate = tasks.StartTime 31 }).OrderByDescending(s => s.StartDate).T ake(Convert.ToInt32(limit)).ToList();32 }).OrderByDescending(s => s.StartDate).ToList(); 32 33 33 34 List<string> Task = new List<string>(); … … 57 58 UserName = jobs.UserName, 58 59 StartDate = tasks.StartTime 59 }).OrderByDescending(s => s.StartDate).T ake(Convert.ToInt32(limit)).ToList();60 }).OrderByDescending(s => s.StartDate).ToList(); 60 61 61 62 List<List<string>> results = new List<List<string>>();
Note: See TracChangeset
for help on using the changeset viewer.