feat(webhooks): add stream status to webhook (#2934)

Expand the payload sent for stream status webhooks. Closes #2881
This commit is contained in:
Gabe Kangas
2023-05-30 11:32:05 -07:00
committed by GitHub
parent b9508ba1c8
commit 209756fed3
5 changed files with 38 additions and 6 deletions

View File

@@ -21,6 +21,16 @@ func TestSendStreamStatusEvent(t *testing.T) {
"name": "my server",
"streamTitle": "my stream",
"summary": "my server where I stream",
"timestamp": "1970-01-01T00:01:12.000000006Z"
"timestamp": "1970-01-01T00:01:12.000000006Z",
"status": {
"lastConnectTime": null,
"lastDisconnectTime": null,
"online": true,
"overallMaxViewerCount": 420,
"sessionMaxViewerCount": 69,
"streamTitle": "my stream",
"versionNumber": "1.2.3",
"viewerCount": 5
}
}`)
}