Skip to content

Commit 352f5c0

Browse files
Sanjidhalimxuepingd
authored andcommitted
Add Channel Archive Heartbeat event (Azure#15885)
* 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]>
1 parent ae483ed commit 352f5c0

File tree

3 files changed

+86
-2
lines changed

3 files changed

+86
-2
lines changed

specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@
816816
}
817817
},
818818
"type": "object",
819-
"description": "Incoming video stream out of synch event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event."
819+
"description": "Incoming video stream out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event."
820820
},
821821
"MediaLiveEventIncomingDataChunkDroppedEventData": {
822822
"properties": {
@@ -867,6 +867,16 @@
867867
"description": "Gets the track name.",
868868
"readOnly": true
869869
},
870+
"transcriptionLanguage": {
871+
"description": "Gets the Live Transcription language.",
872+
"readOnly": true,
873+
"type": "string"
874+
},
875+
"transcriptionState": {
876+
"description": "Gets the Live Transcription state.",
877+
"readOnly": true,
878+
"type": "string"
879+
},
870880
"bitrate": {
871881
"type": "integer",
872882
"format": "int64",
@@ -879,6 +889,16 @@
879889
"description": "Gets the incoming bitrate.",
880890
"readOnly": true
881891
},
892+
"ingestDriftValue": {
893+
"description": "Gets the track ingest drift value.",
894+
"readOnly": true,
895+
"type": "string"
896+
},
897+
"lastFragmentArrivalTime": {
898+
"description": "Gets the arrival UTC time of the last fragment.",
899+
"readOnly": true,
900+
"type": "string"
901+
},
882902
"lastTimestamp": {
883903
"type": "string",
884904
"description": "Gets the last timestamp.",
@@ -924,7 +944,7 @@
924944
}
925945
},
926946
"type": "object",
927-
"description": "Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event."
947+
"description": "Ingest heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeatEventData event."
928948
},
929949
"MediaLiveEventTrackDiscontinuityDetectedEventData": {
930950
"properties": {
@@ -967,6 +987,26 @@
967987
},
968988
"type": "object",
969989
"description": "Ingest track discontinuity detected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventTrackDiscontinuityDetected event."
990+
},
991+
"MediaLiveEventChannelArchiveHeartbeatEventData": {
992+
"properties": {
993+
"channelLatencyMs": {
994+
"type": "string",
995+
"description": "Gets the channel latency in ms.",
996+
"readOnly": true
997+
},
998+
"latencyResultCode": {
999+
"type": "string",
1000+
"description": "Gets the latency result code.",
1001+
"readOnly": true
1002+
}
1003+
},
1004+
"type": "object",
1005+
"required": [
1006+
"channelLatencyMs",
1007+
"latencyResultCode"
1008+
],
1009+
"description": "Channel Archive heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventChannelArchiveHeartbeatEventData event."
9701010
}
9711011
}
9721012
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
{
3+
"topic": "/subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.Media/mediaservices/<account-name>",
4+
"subject": "liveEvent/mle1",
5+
"eventType": "Microsoft.Media.LiveEventChannelArchiveHeartbeat",
6+
"eventTime": "2021-05-14T23:50:00.324",
7+
"id": "7f450938-491f-41e1-b06f-c6cd3965d786",
8+
"data": {
9+
"channelLatencyMs": "10",
10+
"latencyResultCode": "S_OK"
11+
},
12+
"dataVersion": "1.0",
13+
"metadataVersion": "1"
14+
}
15+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[
2+
{
3+
"topic": "/subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.Media/mediaservices/<account-name>",
4+
"subject": "liveEvent/mle1",
5+
"eventType": "Microsoft.Media.LiveEventIngestHeartbeat",
6+
"eventTime": "2021-05-14T23:50:00.324",
7+
"id": "7f450938-491f-41e1-b06f-c6cd3965d786",
8+
"data": {
9+
"trackType": "video",
10+
"trackName": "video",
11+
"bitrate": 2500000,
12+
"incomingBitrate": 2462597,
13+
"lastTimestamp": "106999",
14+
"timescale": "1000",
15+
"overlapCount": 0,
16+
"discontinuityCount": 0,
17+
"nonincreasingCount": 0,
18+
"unexpectedBitrate": false,
19+
"state": "Running",
20+
"healthy": true,
21+
"lastFragmentArrivalTime": "2021-05-14T23:50:00.00",
22+
"ingestDriftValue": "0",
23+
"transcriptionState": "On",
24+
"transcriptionLanguage": "en-us"
25+
},
26+
"dataVersion": "2.0",
27+
"metadataVersion": "1"
28+
}
29+
]

0 commit comments

Comments
 (0)