Skip to content

Commit

Permalink
Add Channel Archive Heartbeat event (#15885)
Browse files Browse the repository at this point in the history
* Add Channel Archive Heartbeat event

* Removed added "required" field which caused validation errors.

* Added examples for the new/updated events.

Co-authored-by: Xueping Deng <[email protected]>
  • Loading branch information
Sanjidhalim and xuepingd authored Sep 22, 2021
1 parent c8d9a26 commit 9b489ff
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@
}
},
"type": "object",
"description": "Incoming video stream out of synch event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event."
"description": "Incoming video stream out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event."
},
"MediaLiveEventIncomingDataChunkDroppedEventData": {
"properties": {
Expand Down Expand Up @@ -867,6 +867,16 @@
"description": "Gets the track name.",
"readOnly": true
},
"transcriptionLanguage": {
"description": "Gets the Live Transcription language.",
"readOnly": true,
"type": "string"
},
"transcriptionState": {
"description": "Gets the Live Transcription state.",
"readOnly": true,
"type": "string"
},
"bitrate": {
"type": "integer",
"format": "int64",
Expand All @@ -879,6 +889,16 @@
"description": "Gets the incoming bitrate.",
"readOnly": true
},
"ingestDriftValue": {
"description": "Gets the track ingest drift value.",
"readOnly": true,
"type": "string"
},
"lastFragmentArrivalTime": {
"description": "Gets the arrival UTC time of the last fragment.",
"readOnly": true,
"type": "string"
},
"lastTimestamp": {
"type": "string",
"description": "Gets the last timestamp.",
Expand Down Expand Up @@ -924,7 +944,7 @@
}
},
"type": "object",
"description": "Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event."
"description": "Ingest heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeatEventData event."
},
"MediaLiveEventTrackDiscontinuityDetectedEventData": {
"properties": {
Expand Down Expand Up @@ -967,6 +987,26 @@
},
"type": "object",
"description": "Ingest track discontinuity detected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventTrackDiscontinuityDetected event."
},
"MediaLiveEventChannelArchiveHeartbeatEventData": {
"properties": {
"channelLatencyMs": {
"type": "string",
"description": "Gets the channel latency in ms.",
"readOnly": true
},
"latencyResultCode": {
"type": "string",
"description": "Gets the latency result code.",
"readOnly": true
}
},
"type": "object",
"required": [
"channelLatencyMs",
"latencyResultCode"
],
"description": "Channel Archive heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventChannelArchiveHeartbeatEventData event."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"topic": "/subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.Media/mediaservices/<account-name>",
"subject": "liveEvent/mle1",
"eventType": "Microsoft.Media.LiveEventChannelArchiveHeartbeat",
"eventTime": "2021-05-14T23:50:00.324",
"id": "7f450938-491f-41e1-b06f-c6cd3965d786",
"data": {
"channelLatencyMs": "10",
"latencyResultCode": "S_OK"
},
"dataVersion": "1.0",
"metadataVersion": "1"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
{
"topic": "/subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.Media/mediaservices/<account-name>",
"subject": "liveEvent/mle1",
"eventType": "Microsoft.Media.LiveEventIngestHeartbeat",
"eventTime": "2021-05-14T23:50:00.324",
"id": "7f450938-491f-41e1-b06f-c6cd3965d786",
"data": {
"trackType": "video",
"trackName": "video",
"bitrate": 2500000,
"incomingBitrate": 2462597,
"lastTimestamp": "106999",
"timescale": "1000",
"overlapCount": 0,
"discontinuityCount": 0,
"nonincreasingCount": 0,
"unexpectedBitrate": false,
"state": "Running",
"healthy": true,
"lastFragmentArrivalTime": "2021-05-14T23:50:00.00",
"ingestDriftValue": "0",
"transcriptionState": "On",
"transcriptionLanguage": "en-us"
},
"dataVersion": "2.0",
"metadataVersion": "1"
}
]

0 comments on commit 9b489ff

Please sign in to comment.