This topic describes the AIMediaAuditComplete event as well as its notification content and sample callbacks.
Event type
AIMediaAuditComplete
Event description
The AIMediaAuditComplete event is generated after automated review is complete.
Note
- ApsaraVideo VOD stores the images in the automated review results free of charge for two weeks. After this period, the images are automatically deleted.
- You must select the AI Processing Completed event in the ApsaraVideo VOD console to receive the AIMediaAuditComplete event notification.
Event notification content
Parameter | Type | Required | Description |
---|---|---|---|
EventTime | String | Yes | The time when the event was generated. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ss.SSSZ format. The time is displayed in UTC. |
EventType | String | Yes | The event type. The value is AIMediaAuditComplete. |
JobId | String | Yes | The ID of the automated review job. The value is the same as the JobId value returned by the SubmitAIMediaAuditJob operation. |
MediaId | String | Yes | The ID of the video. |
Status | String | Yes | The status of the job. Valid values:
|
Code | String | No | The error code. This parameter is returned when an error occurs in the automated review job. |
Message | String | No | The error message. This parameter is returned when an error occurs in the automated review job. |
Data | String | Yes | The automated review result. The value is a JSON string. |
Sample callbacks
Description:
- For an HTTP callback, the following example is the body of the HTTP POST request.
- For an MNS callback, the following example 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"
}
]
}
}