mirror of
https://github.com/coder/coder.git
synced 2026-10-12 23:31:00 +08:00
As requested for [this issue](https://github.com/coder/internal/issues/245) we need to have a new resource `resources_monitoring` in the agent. It needs to be parsed from the provisioner and inserted into a new db table.
102 lines
2.9 KiB
JSON
Generated
102 lines
2.9 KiB
JSON
Generated
{
|
|
"format_version": "1.0",
|
|
"terraform_version": "1.9.8",
|
|
"values": {
|
|
"root_module": {
|
|
"resources": [
|
|
{
|
|
"address": "coder_agent.main",
|
|
"mode": "managed",
|
|
"type": "coder_agent",
|
|
"name": "main",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"schema_version": 1,
|
|
"values": {
|
|
"arch": "amd64",
|
|
"auth": "token",
|
|
"connection_timeout": 120,
|
|
"dir": null,
|
|
"display_apps": [
|
|
{
|
|
"port_forwarding_helper": true,
|
|
"ssh_helper": true,
|
|
"vscode": true,
|
|
"vscode_insiders": false,
|
|
"web_terminal": true
|
|
}
|
|
],
|
|
"env": null,
|
|
"id": "14f0eb08-1bdb-4d48-ab20-e06584ee5b68",
|
|
"init_script": "",
|
|
"metadata": [],
|
|
"motd_file": null,
|
|
"order": null,
|
|
"os": "linux",
|
|
"resources_monitoring": [],
|
|
"shutdown_script": null,
|
|
"startup_script": null,
|
|
"startup_script_behavior": "non-blocking",
|
|
"token": "454fffe5-3c59-4a9e-80a0-0d1644ce3b24",
|
|
"troubleshooting_url": null
|
|
},
|
|
"sensitive_values": {
|
|
"display_apps": [
|
|
{}
|
|
],
|
|
"metadata": [],
|
|
"resources_monitoring": [],
|
|
"token": true
|
|
}
|
|
}
|
|
],
|
|
"child_modules": [
|
|
{
|
|
"resources": [
|
|
{
|
|
"address": "module.module.data.null_data_source.script",
|
|
"mode": "data",
|
|
"type": "null_data_source",
|
|
"name": "script",
|
|
"provider_name": "registry.terraform.io/hashicorp/null",
|
|
"schema_version": 0,
|
|
"values": {
|
|
"has_computed_default": "default",
|
|
"id": "static",
|
|
"inputs": {
|
|
"script": ""
|
|
},
|
|
"outputs": {
|
|
"script": ""
|
|
},
|
|
"random": "8389680299908922676"
|
|
},
|
|
"sensitive_values": {
|
|
"inputs": {},
|
|
"outputs": {}
|
|
}
|
|
},
|
|
{
|
|
"address": "module.module.null_resource.example",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "example",
|
|
"provider_name": "registry.terraform.io/hashicorp/null",
|
|
"schema_version": 0,
|
|
"values": {
|
|
"id": "8124127383117450432",
|
|
"triggers": null
|
|
},
|
|
"sensitive_values": {},
|
|
"depends_on": [
|
|
"coder_agent.main",
|
|
"module.module.data.null_data_source.script"
|
|
]
|
|
}
|
|
],
|
|
"address": "module.module"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|