++
This commit is contained in:
@@ -55,6 +55,8 @@ export function RecentTasks():Promise<Array<controlplane.Task>>;
|
||||
|
||||
export function RenameAgent(arg1:string,arg2:string):Promise<void>;
|
||||
|
||||
export function RestartAgent(arg1:string):Promise<controlplane.AgentRestart>;
|
||||
|
||||
export function RetryTask(arg1:string):Promise<string>;
|
||||
|
||||
export function RevokeAgent(arg1:string):Promise<void>;
|
||||
|
||||
@@ -106,6 +106,10 @@ export function RenameAgent(arg1, arg2) {
|
||||
return window['go']['main']['App']['RenameAgent'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function RestartAgent(arg1) {
|
||||
return window['go']['main']['App']['RestartAgent'](arg1);
|
||||
}
|
||||
|
||||
export function RetryTask(arg1) {
|
||||
return window['go']['main']['App']['RetryTask'](arg1);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@ export namespace controlplane {
|
||||
name: string;
|
||||
status: string;
|
||||
lastSeenAt: string;
|
||||
restartStatus: string;
|
||||
restartFailure: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Agent(source);
|
||||
@@ -16,6 +18,8 @@ export namespace controlplane {
|
||||
this.name = source["name"];
|
||||
this.status = source["status"];
|
||||
this.lastSeenAt = source["lastSeenAt"];
|
||||
this.restartStatus = source["restartStatus"];
|
||||
this.restartFailure = source["restartFailure"];
|
||||
}
|
||||
}
|
||||
export class AgentDirectoryFilter {
|
||||
@@ -57,6 +61,8 @@ export namespace controlplane {
|
||||
mcpStatus: string;
|
||||
mcpFailure: string;
|
||||
lastDeploymentAt: string;
|
||||
restartStatus: string;
|
||||
restartFailure: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new AgentDirectoryItem(source);
|
||||
@@ -78,6 +84,8 @@ export namespace controlplane {
|
||||
this.mcpStatus = source["mcpStatus"];
|
||||
this.mcpFailure = source["mcpFailure"];
|
||||
this.lastDeploymentAt = source["lastDeploymentAt"];
|
||||
this.restartStatus = source["restartStatus"];
|
||||
this.restartFailure = source["restartFailure"];
|
||||
}
|
||||
}
|
||||
export class AgentDirectoryPage {
|
||||
@@ -310,6 +318,28 @@ export namespace controlplane {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class AgentRestart {
|
||||
requestID: string;
|
||||
agentID: string;
|
||||
status: string;
|
||||
requestedAt: string;
|
||||
confirmedAt: string;
|
||||
failure: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new AgentRestart(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.requestID = source["requestID"];
|
||||
this.agentID = source["agentID"];
|
||||
this.status = source["status"];
|
||||
this.requestedAt = source["requestedAt"];
|
||||
this.confirmedAt = source["confirmedAt"];
|
||||
this.failure = source["failure"];
|
||||
}
|
||||
}
|
||||
export class AgentSkillStatus {
|
||||
agentID: string;
|
||||
agentName: string;
|
||||
|
||||
Reference in New Issue
Block a user