Files
aiops/agent/task/types.go
T
Logan.Li e0d652d211 feat: 完善堡垒机与 Agent 智能运维能力
- 支持 Windows Agent 构建、安装脚本和统一上报协议

- 增强 RDP 剪贴板、虚拟盘和文件传输能力

- 新增 AIOps 上下文工具、告警 RCA trace 落库和回放接口

- 重构 docs 模块文档并补充终端、堡垒机、监控、AI Agent 设计
2026-07-05 23:49:36 +08:00

24 lines
659 B
Go

// Package task 定义 Agent 远程任务类型。 // Logan.Li
package task
const (
TypeCommand = "command" // 单条 shell/PowerShell 命令 // Logan.Li
TypeScript = "script" // 多行脚本 // Logan.Li
)
// Task 表示从后端拉取到的待执行任务。 // Logan.Li
type Task struct {
TaskID string `json:"task_id"`
Type string `json:"type"`
Command string `json:"command"`
Timeout int `json:"timeout"`
}
// Result 表示任务执行结果,用于回传后端。 // Logan.Li
type Result struct {
TaskID string `json:"task_id"`
ExitCode int `json:"exit_code"`
Result string `json:"result"`
Status string `json:"status"`
}