{
  "id": "sample.system.uptime",
  "name": "Sample - System uptime",
  "description": "Example custom collector that prints the last boot time and current uptime using PowerShell.",
  "category": "Samples",
  "author": "SysDiag",
  "version": "1.0.0",
  "command": "powershell.exe",
  "arguments": "-NoProfile -ExecutionPolicy Bypass -Command \"$os = Get-CimInstance Win32_OperatingSystem; $boot = $os.LastBootUpTime; [pscustomobject]@{ ComputerName = $env:COMPUTERNAME; LastBoot = $boot; Uptime = (New-TimeSpan -Start $boot -End (Get-Date)).ToString() } | Format-List\"",
  "risk": "Safe",
  "requiresAdmin": false,
  "timeoutSeconds": 20,
  "enabled": true
}
