Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/04/14 08:59:24 (10 years ago)
Author:
mroscoe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Controllers/ExceptionDataController.cs

    r11053 r11084  
    99  public class ExceptionDataController : Controller {
    1010
    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)
    1212    {
    1313      using (var db = new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString)) {
     
    2323          (!end.HasValue || tasks.EndTime < end) &&
    2424          (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)
    2627          select new
    2728          {
     
    2930            ErrorMessage = tasks.Exception,
    3031            StartDate = tasks.StartTime
    31           }).OrderByDescending(s => s.StartDate).Take(Convert.ToInt32(limit)).ToList();
     32          }).OrderByDescending(s => s.StartDate).ToList();
    3233
    3334        List<string> Task = new List<string>();
     
    5758           UserName = jobs.UserName,
    5859           StartDate = tasks.StartTime
    59          }).OrderByDescending(s => s.StartDate).Take(Convert.ToInt32(limit)).ToList();
     60         }).OrderByDescending(s => s.StartDate).ToList();
    6061
    6162        List<List<string>> results = new List<List<string>>();
Note: See TracChangeset for help on using the changeset viewer.