This commit is contained in:
2026-04-22 22:33:46 +02:00
parent 7bf1e0dbb2
commit d4822fc8dc
5156 changed files with 829337 additions and 44 deletions

View File

@@ -0,0 +1,17 @@
$body = @{
event = "random_event"
version = "0.1.0"
platform = "windows"
} | ConvertTo-Json -Compress
try {
Invoke-RestMethod `
-Method Post `
-Uri "http://localhost:8080/telemetry/ping" `
-ContentType "application/json" `
-Body $body
}
catch {
Write-Host "Expected error received:"
Write-Host $_.Exception.Message
}