This commit is contained in:
2026-03-25 22:03:39 +01:00
parent a0073b4fb1
commit faf4ca10c9
5603 changed files with 1030866 additions and 79 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
}