mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,5 +64,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts
|
||||
public int JobCount { get; set; }
|
||||
public DateTime ActiveEndDate { get; set; }
|
||||
public Guid ScheduleUid { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user