Skip to main content
Version: Current

Job.GetAllSmartBuddyJobsAsync

Description​

Gets the list of all Smart Buddy JobsList information from the connected AI Command Center.

Signature [C#]​

Task<JobsList> GetAllSmartBuddyJobsAsync()

Properties​

Output​

PropertyDescription
Task<JobsList>Returns all available Smart Buddy jobs information from the AI Command Center.

Remarks​

Use GetAllSmartBuddyJobsAsync API to return information about the list of all SmartBuddy jobs from the connected AI Command Center.

Example​

C#
public void GetAllSmartBuddyJobs()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");

JobsList jobs = Task.Run(() => context.Jobs.GetAllSmartBuddyJobsAsync()).Result;

Console.WriteLine("JobId: " + jobs.JobId + ", Job execution status: " + jobs.ExecStatus);
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;

connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);

context.Open();
return context;
}