diff --git a/backend/static/index.html b/backend/static/index.html
index 17b0e91..db092ce 100644
--- a/backend/static/index.html
+++ b/backend/static/index.html
@@ -363,7 +363,18 @@
| ${startIndex + index + 1} | ${log.source || 'System'} | -${log.time || new Date().toLocaleString()} | +${formatLogTime(log.time)} | ${log.message || 'No message'} | `; logTableBody.appendChild(row); diff --git a/test_agent.json b/test_agent.json deleted file mode 100644 index fe4a7e6..0000000 --- a/test_agent.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "server_url": "http://localhost:8080/api", - "id": "test-agent", - "name": "Test Agent", - "device_id": "test-device", - "token": "bb30bfaee01bf7b541bbefe422f72645", - "interval": "5s", - "debug": true, - "api_port": 8081 -} \ No newline at end of file diff --git a/test_metrics.sh b/test_metrics.sh deleted file mode 100755 index 9bec916..0000000 --- a/test_metrics.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# 测试发送单个指标对象 -echo "测试发送单个指标对象:" -curl -v -X POST -H "Content-Type: application/json" -H "X-Device-ID: test-device" -H "X-Agent-Name: test-agent" -H "X-Device-Token: test-token" -d '{"cpu": 50.5, "memory": 30.2, "disk": {":/": 45.6}, "network": {"eth0": {"bytes_sent": 1000, "bytes_received": 2000}}}' http://localhost:8080/api/metrics/ - -echo "\n---\n" - -# 测试发送指标数组 -echo "测试发送指标数组:" -curl -v -X POST -H "Content-Type: application/json" -H "X-Device-ID: test-device" -H "X-Agent-Name: test-agent" -H "X-Device-Token: test-token" -d '[{"cpu": 50.5, "memory": 30.2, "disk": {":/": 45.6}, "network": {"eth0": {"bytes_sent": 1000, "bytes_received": 2000}}}, {"cpu": 60.5, "memory": 40.2, "disk": {":/": 55.6}, "network": {"eth0": {"bytes_sent": 2000, "bytes_received": 3000}}}]' http://localhost:8080/api/metrics/