Learn about the AIMediaAuditComplete event fields and callback format for automated review completion notifications.
Event type
AIMediaAuditComplete
Event description
The AIMediaAuditComplete event is generated when an automated review is complete.
-
ApsaraVideo VOD retains images from automated review results in free storage for 2 weeks, after which they are automatically deleted.
-
The AIMediaAuditComplete event is the AI Processing Completed event in the ApsaraVideo VOD console.
Event content
|
Name |
Type |
Required |
Description |
|
EventTime |
String |
Yes |
The time when the event was generated, in UTC. Format: yyyy-MM-ddTHH:mm:ss:SSSZ. |
|
EventType |
String |
Yes |
The event type. The value is fixed to AIMediaAuditComplete. |
|
JobId |
String |
Yes |
The job ID, which matches the JobId returned when you submit the automated review job. |
|
MediaId |
String |
Yes |
The video ID. |
|
Status |
String |
Yes |
The job status.
|
|
Code |
String |
No |
The error code. Returned only when an error occurs during the review. |
|
Message |
String |
No |
The error message. Returned only when an error occurs during the review. |
|
Data |
String |
Yes |
The job result data, which is a JSON object. For more information about the structure, see AIMediaAuditResult. |
Callback example
Example callback:
-
For HTTP callbacks, the following content is the body of the POST request.
-
For MNS callbacks, the following content is the message body.
{
"EventTime": "2022-10-20T10:29:46:540Z",
"EventType": "AIMediaAuditComplete",
"JobId": "43q91jdh7df****",
"MediaId": "SHEN38505NDF9****",
"Status": "success",
"Code": "0",
"Message": "OK",
"Data": {
"AbnormalModules":"video",
"Label":"porn",
"Suggestion":"review",
"VideoResult":{
"Suggestion":"review",
"TerrorismResult":{
"TopList":[
{
"Score":"100.0000000000",
"Label":"normal",
"Timestamp":"3005",
"Url":"http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/aivideocensor/1****.jpg"
},
{
"Score":"100.0000000000",
"Label":"normal",
"Timestamp":"15005",
"Url":"http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/aivideocensor/1****.jpg"
}
],
"Suggestion":"pass",
"MaxScore":"100.0000000000",
"AverageScore":"100.0000000000",
"Label":"normal",
"CounterList":[
{
"Label":"terrorism",
"Count":0
},
{
"Label":"outfit",
"Count":0
},
{
"Label":"logo",
"Count":0
},
{
"Label":"weapon",
"Count":0
},
{
"Label":"politics",
"Count":0
},
{
"Label":"others",
"Count":0
},
{
"Label":"normal",
"Count":16
}
]
},
"Label":"porn",
"PornResult":{
"TopList":[
{
"Score":"92.4800000000",
"Label":"sexy",
"Timestamp":"1005",
"Url":"http://example.aliyundoc.com/aivideocensor/****.jpg"
},
{
"Score":"91.8200000000",
"Label":"sexy",
"Timestamp":"9005",
"Url":"http://example.aliyundoc.com/aivideocensor/****.jpg"
}
],
"Suggestion":"review",
"MaxScore":"92.4800000000",
"AverageScore":"81.7066666667",
"Label":"sexy",
"CounterList":[
{
"Label":"porn",
"Count":0
},
{
"Label":"sexy",
"Count":6
},
{
"Label":"normal",
"Count":10
}
]
}
},
" CoverResult":[
{
"Suggestion":"pass",
"Type":"cover",
"Label":"normal",
"Url":"http://example.aliyundoc.com/43q91jdh7df****.jpg",
"Result":[
{
"Suggestion":"pass",
"Score":"65.25",
"Label":"normal",
"Scene":"porn"
},
{
"Suggestion":"pass",
"Score":"100.0",
"Label":"normal",
"Scene":"terrorism"
}
]
}
],
"TitleResult":[
{
"Suggestion":"pass",
"Type":"title",
"Score":"99.91",
"Content":"1111",
"Label":"normal",
"Scene":"antispam"
}
]
}
}