mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): return agent script timings (#14923)
Add the agent script timings into the `/workspacebuilds/:workspacebuild/timings` response. Close https://github.com/coder/coder/issues/14876
This commit is contained in:
Generated
+74
-12
@@ -6609,6 +6609,37 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/workspacebuilds/{workspacebuild}/timings": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"CoderSessionToken": []
|
||||
}
|
||||
],
|
||||
"produces": ["application/json"],
|
||||
"tags": ["Builds"],
|
||||
"summary": "Get workspace build timings by ID",
|
||||
"operationId": "get-workspace-build-timings-by-id",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Workspace build ID",
|
||||
"name": "workspacebuild",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.WorkspaceBuildTimings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/workspaceproxies": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -7524,7 +7555,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.WorkspaceTimings"
|
||||
"$ref": "#/definitions/codersdk.WorkspaceBuildTimings"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7922,6 +7953,31 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.AgentScriptTiming": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"display_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"ended_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"exit_code": {
|
||||
"type": "integer"
|
||||
},
|
||||
"stage": {
|
||||
"type": "string"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.AgentSubsystem": {
|
||||
"type": "string",
|
||||
"enum": ["envbox", "envbuilder", "exectrace"],
|
||||
@@ -13359,6 +13415,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.WorkspaceBuildTimings": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"agent_script_timings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.AgentScriptTiming"
|
||||
}
|
||||
},
|
||||
"provisioner_timings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerTiming"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.WorkspaceConnectionLatencyMS": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -13598,17 +13671,6 @@
|
||||
"WorkspaceStatusDeleted"
|
||||
]
|
||||
},
|
||||
"codersdk.WorkspaceTimings": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provisioner_timings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerTiming"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.WorkspaceTransition": {
|
||||
"type": "string",
|
||||
"enum": ["start", "stop", "delete"],
|
||||
|
||||
Reference in New Issue
Block a user