mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add telemetry support for workspace agent subsystem (#7579)
This commit is contained in:
@@ -1147,6 +1147,7 @@ export interface WorkspaceAgent {
|
||||
readonly startup_script_timeout_seconds: number
|
||||
readonly shutdown_script?: string
|
||||
readonly shutdown_script_timeout_seconds: number
|
||||
readonly subsystem: AgentSubsystem
|
||||
}
|
||||
|
||||
// From codersdk/workspaceagentconn.go
|
||||
@@ -1341,6 +1342,10 @@ export interface WorkspacesResponse {
|
||||
export type APIKeyScope = "all" | "application_connect"
|
||||
export const APIKeyScopes: APIKeyScope[] = ["all", "application_connect"]
|
||||
|
||||
// From codersdk/workspaceagents.go
|
||||
export type AgentSubsystem = "envbox"
|
||||
export const AgentSubsystems: AgentSubsystem[] = ["envbox"]
|
||||
|
||||
// From codersdk/audit.go
|
||||
export type AuditAction =
|
||||
| "create"
|
||||
|
||||
@@ -501,6 +501,7 @@ export const MockWorkspaceAgent: TypesGen.WorkspaceAgent = {
|
||||
startup_logs_overflowed: false,
|
||||
startup_script_timeout_seconds: 120,
|
||||
shutdown_script_timeout_seconds: 120,
|
||||
subsystem: "envbox",
|
||||
}
|
||||
|
||||
export const MockWorkspaceAgentDisconnected: TypesGen.WorkspaceAgent = {
|
||||
|
||||
Reference in New Issue
Block a user