第一版 Send-Heartbeat 移除status

This commit is contained in:
allen.yan 2025-05-22 14:32:17 +08:00
parent bb6581592d
commit 1896202376

View File

@ -64,7 +64,6 @@ function Send-Heartbeat($token, $ip) {
cpu = [math]::Round((Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue, 2) cpu = [math]::Round((Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue, 2)
memory = [math]::Round((Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue, 2) memory = [math]::Round((Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue, 2)
disk = [math]::Round((Get-PSDrive -Name C).Used / 1MB, 2) disk = [math]::Round((Get-PSDrive -Name C).Used / 1MB, 2)
status = "online"
} | ConvertTo-Json -Depth 3 } | ConvertTo-Json -Depth 3
try { try {