Agent: Edit Job backend (#700)

* added stepInfo for editing jobs/steps

* added schedules to history requests

* added alerts and schedules to history

* formatting

* code review comments

* removed smo import
This commit is contained in:
Aditya Bist
2018-10-04 13:52:08 -07:00
committed by GitHub
parent f99061866c
commit 6f69f7e303
5 changed files with 147 additions and 29 deletions

View File

@@ -34,16 +34,28 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts
public string RetriesAttempted { get; set; }
public string Server { get; set; }
public AgentJobStep[] Steps { get; set; }
public AgentScheduleInfo[] Schedules { get; set; }
public AgentAlertInfo[] Alerts { get; set; }
}
public class AgentJobStep
public enum CompletionResult
{
public string StepId { get; set; }
public string StepName { get; set; }
public string Message { get; set; }
public DateTime RunDate { get; set; }
public int RunStatus { get; set; }
Failed = 0,
Succeeded = 1,
Retry = 2,
Cancelled = 3,
InProgress = 4,
Unknown = 5
}
public class AgentJobStep
{
public string jobId;
public string stepId;
public string stepName;
public string message;
public string runDate;
public CompletionResult runStatus;
public AgentJobStepInfo stepDetails;
}
}