Skip to content

Commit

Permalink
Fix AVA 2021-11-01 example files (Azure#16432)
Browse files Browse the repository at this point in the history
* fix examples

* fix prettier checks
  • Loading branch information
giakas authored and LeiWang3 committed Mar 31, 2022
1 parent 91b2911 commit d58cd43
Show file tree
Hide file tree
Showing 20 changed files with 159 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"edgeModuleName": "edgeModule1",
"api-version": "2021-11-01-preview",
"parameters": {
"expirationDate": "3021-01-23T11:04:49.0526841-08:00"
"expirationDate": "2023-01-23T11:04:49.0526841-08:00"
}
},
"responses": {
"200": {
"body": {
"expirationDate": "2021-09-24T04:17:55.6193764Z"
"expirationDate": "2021-09-24T04:17:55.6193764Z",
"token": "testtoken"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"responses": {
"201": {
"body": {
"name": "livePipeline2",
"name": "livePipeline1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Live Pipeline 1 Description",
Expand All @@ -48,6 +50,8 @@
"200": {
"body": {
"name": "livePipeline1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Live Pipeline 1 Description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"200": {
"body": {
"name": "livePipeline1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Live Pipeline 1 Description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"value": [
{
"name": "livePipeline1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Live Pipeline 1 Description",
Expand All @@ -35,6 +37,8 @@
},
{
"name": "livePipeline2",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline2",
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Live Pipeline 2 Description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
"name": "00000000-0000-0000-0000-000000000001",
"status": "Failed",
"error": {
"code": "Conflict"
"code": "Conflict",
"message": "A conflict was encountered when processing the request",
"details": [
{
"code": "VideoIsInUse",
"message": "The video video1 is used by another pipeline."
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"200": {
"body": {
"name": "livePipeline1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Live Pipeline 1 Description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
"parameters": [
{
"name": "timesequences",
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
},
{
"name": "videoSourceName",
"value": "camera001"
}
]
}
Expand All @@ -22,14 +26,20 @@
"201": {
"body": {
"name": "pipelineJob1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Pipeline Job 1 Description",
"state": "Processing",
"parameters": [
{
"name": "timeSequences",
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
},
{
"name": "videoSourceName",
"value": "camera001"
}
]
},
Expand All @@ -45,15 +55,21 @@
},
"200": {
"body": {
"name": "pipelineJob2",
"name": "pipelineJob1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
"properties": {
"topologyName": "pipelineTopology2",
"topologyName": "pipelineTopology1",
"description": "Pipeline Job 2 Description",
"state": "Processing",
"parameters": [
{
"name": "timeSequences",
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
},
{
"name": "videoSourceName",
"value": "camera001"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@
"200": {
"body": {
"name": "pipelineJob1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Pipeline Job 1 Description",
"state": "Processing",
"parameters": [
{
"name": "timeSequences",
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
},
{
"name": "videoSourceName",
"value": "camera001"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,20 @@
"value": [
{
"name": "pipelineJob1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Pipeline Job 1 Description",
"state": "Processing",
"parameters": [
{
"name": "timeSequences",
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
},
{
"name": "videoSourceName",
"value": "camera001"
}
]
},
Expand All @@ -34,6 +40,8 @@
},
{
"name": "pipelineJob2",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob2",
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Pipeline Job 2 Description",
Expand All @@ -42,7 +50,11 @@
"parameters": [
{
"name": "timeSequences",
"value": "[[2020-10-05T07:30:00Z, 2020-10-05T08:30:00Z]]"
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
},
{
"name": "videoSourceName",
"value": "camera002"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
"name": "00000000-0000-0000-0000-000000000001",
"status": "Failed",
"error": {
"code": "SetupValidationFailed"
"code": "Conflict",
"message": "A conflict was encountered when processing the request",
"details": [
{
"code": "VideoIsInUse",
"message": "The video video1 is used by another pipeline."
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@
"200": {
"body": {
"name": "pipelineJob1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
"properties": {
"topologyName": "pipelineTopology1",
"description": "Pipeline Job 1 Description",
"state": "Processing",
"parameters": [
{
"name": "timeSequences",
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
},
{
"name": "videoSourceName",
"value": "camera001"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"description": "Parking lot south entrance",
"segmentLength": "PT30S"
},
"videoPublishingOptions": {
"disableRtspPublishing": "true",
"disableArchive": "false"
},
"inputs": [
{
"nodeName": "rtspSource"
Expand All @@ -65,7 +69,9 @@
"responses": {
"201": {
"body": {
"name": "pipelineTopology2",
"name": "pipelineTopology1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineTopologies/pipelineTopology1",
"type": "Microsoft.Media/videoAnalyzers/pipelineTopologies",
"kind": "Live",
"properties": {
"description": "Pipeline Topology 1 Description",
Expand Down Expand Up @@ -114,6 +120,10 @@
"title": "Parking Lot (Camera 1)",
"description": "Parking lot south entrance",
"segmentLength": "PT30S"
},
"videoPublishingOptions": {
"disableRtspPublishing": "true",
"disableArchive": "false"
}
}
]
Expand All @@ -135,6 +145,8 @@
"200": {
"body": {
"name": "pipelineTopology1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineTopologies/pipelineTopology1",
"type": "Microsoft.Media/videoAnalyzers/pipelineTopologies",
"kind": "Live",
"properties": {
"description": "Pipeline Topology 1 Description",
Expand Down Expand Up @@ -182,6 +194,10 @@
"title": "Parking Lot (Camera 1)",
"description": "Parking lot south entrance",
"segmentLength": "PT30S"
},
"videoPublishingOptions": {
"disableRtspPublishing": "true",
"disableArchive": "false"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"200": {
"body": {
"name": "pipelineTopology1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineTopologies/pipelineTopology1",
"type": "Microsoft.Media/videoAnalyzers/pipelineTopologies",
"kind": "Live",
"properties": {
"description": "Pipeline Topology 1 Description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"value": [
{
"name": "pipelineTopology1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineTopologies/pipelineTopology1",
"type": "Microsoft.Media/videoAnalyzers/pipelineTopologies",
"kind": "Live",
"properties": {
"description": "Pipeline Topology 1 Description",
Expand Down Expand Up @@ -78,6 +80,8 @@
},
{
"name": "pipelineTopology2",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineTopologies/pipelineTopology2",
"type": "Microsoft.Media/videoAnalyzers/pipelineTopologies",
"kind": "Live",
"properties": {
"description": "Pipeline Topology 2 Description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"200": {
"body": {
"name": "pipelineTopology1",
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineTopologies/pipelineTopology1",
"type": "Microsoft.Media/videoAnalyzers/pipelineTopologies",
"kind": "Live",
"properties": {
"description": "Pipeline Topology 1 Description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"isInUse": false
},
"archival": {
"retentionPeriod": "PT12H"
"retentionPeriod": "P7D"
}
},
"systemData": {
Expand All @@ -51,12 +51,25 @@
"description": "Sample Description 1",
"type": "Archive",
"flags": {
"canStream": false,
"hasData": false,
"canStream": true,
"hasData": true,
"isInUse": false
},
"contentUrls": {
"downloadUrl": "https://591e76c33e9744db879c3e2b12961b62.streaming.westus.videoanalyzer.net/591e76c33e9744db879c3e2b12961b62/content.mp4",
"archiveBaseUrl": "https://591e76c33e9744db879c3e2b12961b62.streaming.westus.videoanalyzer.net/591e76c33e9744db879c3e2b12961b62/content.ism",
"rtspTunnelUrl": "https://591e76c33e9744db879c3e2b12961b62.streaming.westus.videoanalyzer.net/591e76c33e9744db879c3e2b12961b62",
"previewImageUrls": {
"small": "https://591e76c33e9744db879c3e2b12961b62.streaming.westus.videoanalyzer.net/591e76c33e9744db879c3e2b12961b62/images/latest/small.jpg",
"medium": "https://591e76c33e9744db879c3e2b12961b62.streaming.westus.videoanalyzer.net/591e76c33e9744db879c3e2b12961b62/images/latest/medium.jpg",
"large": "https://591e76c33e9744db879c3e2b12961b62.streaming.westus.videoanalyzer.net/591e76c33e9744db879c3e2b12961b62/images/latest/large.jpg"
}
},
"mediaInfo": {
"segmentLength": "PT30S"
},
"archival": {
"retentionPeriod": "PT12H"
"retentionPeriod": "P7D"
}
},
"systemData": {
Expand Down
Loading

0 comments on commit d58cd43

Please sign in to comment.