This commit is contained in:
2026-05-08 22:35:18 +02:00
parent 3ca2fea861
commit 520d3924af
10699 changed files with 2956416 additions and 670 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
}