第一版 Send-Heartbeat 移除status
This commit is contained in:
parent
bb6581592d
commit
1896202376
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user