All Products
Search
Document Center

:IMM events

Last Updated:Mar 25, 2026

This topic describes the event types that Intelligent Media Management (IMM) publishes to EventBridge when configured as an event source.

Event types

IMM publishes the following event types to EventBridge.

Event type

Value

Adding a file

imm:FileMeta:Index

Adding files in a batch

imm:FileMeta:BatchIndex

Updating file metadata in a batch

imm:FileMeta:BatchUpdate

Deleting file metadata

imm:FileMeta:Delete

Deleting file metadata in a batch

imm:FileMeta:BatchDelete

Retrieving file EXIF

imm:Engine:Exif

Retrieving file MIME type

imm:Engine:Mime

Retrieving file OSS metadata

imm:Engine:OSSMeta

Retrieving file tags

imm:Engine:Tag

Binding a file to a dataset

imm:Binding:Task

Creating a figure clustering task

imm:Task:FigureClustering

Merging figure clusters

imm:Task:FigureClustersMerging

Creating a story

imm:Task:StoryCreation

Extracting video labels

imm:Task:VideoLabelClassification

Creating an image moderation task

imm:Task:ImageModeration

Creating a media conversion task

imm:Task:MediaConvert

Creating a document conversion task

imm:Task:OfficeConversion

Creating an asynchronous video moderation task

imm:Task:VideoModeration

Creating an asynchronous image splicing task

imm:Task:ImageSplicing

Creating a point cloud compression task

imm:Task:PointCloudCompression

Creating an image-to-PDF conversion task

imm:Task:ImageToPDF

Creating a file compression task

imm:Task:FileCompression

Creating a location and date clustering task

imm:Task:LocationDateClustering

Inspecting files in an archive

imm:Task:ArchiveFileInspection

Creating a file uncompression task

imm:Task:FileUncompression

Creating a similar image clustering task

imm:Task:SimilarImageClustering

Batch processing notification

imm:Batch:Notification

Triggering an asynchronous task

imm:Task:AsyncTask

Triggering a synchronous task

imm:Task:SyncTask

Trigger notification

imm:Trigger:Notification

Creating a face search task

imm:Task:FacesSearching

Creating a live transcoding task

imm:Task:LiveTranscoding

Decoding a blind watermark

imm:Task:DecodeBlindWatermark

Alibaba Cloud service event

imm:ActionTrail:AliyunServiceEvent

API call

imm:ActionTrail:ApiCall

Console operation

imm:ActionTrail:ConsoleOperation

Console sign-in

imm:ActionTrail:ConsoleSignin

Console sign-out

imm:ActionTrail:ConsoleSignout

For more information about the parameters defined in the CloudEvents specification, see Event overview.

File added message

When a file is added, EventBridge receives the following event:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:FileMeta:Index",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "Message": "InvalidParameter",
        "Success": false,
        "Files": [
            {
                "URI": "oss://bucket/file",
                "CustomId": "defaultId",
                "CustomLabels": {
                    "Key1": "Val1",
                    "Key2": "Val2"
                },
                "Error": "InternalError"
            }
        ]
    }
}
            

The parameters of the data field are described in the following table.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

DatasetName

String

test_dataset

The name of the IMM dataset.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The time when the task started.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The time when the task ended.

Message

String

InvalidParameter

The status message for the task.

If the parameter Success is false, this parameter returns an error message.

Success

Boolean

false

Indicates whether the task was successful.

Valid values:

  • true: The operation was successful.

  • false: Execution failed.

Files

Array

An array of objects, where each object contains information about a file processed by the task.

URI

String

oss://bucket/file

The uniform resource identifier (URI) of the file.

CustomId

String

defaultId

The custom ID of the file.

CustomLabels

Map

{                         
          "Key1": "Val1",
          "Key2": "Val2"
}

The custom labels of the file.

Error

String

InternalError

The error message for the file, if any.

Batch file addition event

The following is an example event that EventBridge receives when you add files in a batch:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:FileMeta:BatchIndex",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "Message": "InvalidParameter",
        "Success": false,
        "Files": [
            {
                "URI": "oss://bucket/file",
                "CustomId": "defaultId",
                "CustomLabels": {
                    "Key1": "Val1",
                    "Key2": "Val2"
                },
                "Error": "InternalError"
            },{
                "URI": "oss://bucket/file2",
                "CustomId": "defaultId2",
                "CustomLabels": {
                    "Key3": "Val3"
                },
                "Error": ""
            }
        ]
    }
}
            

For details on the parameters in the data field, see Parameter descriptions.

Batch update file metadata

When file metadata is updated in a batch, EventBridge receives the following sample event:

{
  "datacontenttype":"application/json;charset=utf-8",
  "aliyunaccountid": "164901546557****",
  "subject": "acs:imm:cn-beijing:164901546557****:project1/dataset1",
  "source": "acs.imm",
  "type": "imm:FileMeta:BatchUpdate", 
  "aliyuneventbusname": "default",
  "time":"2021-01-18T11:24:13.502+08:00",
  "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
  "data": {
    "Project": "test_project",                                  
    "Dataset": "test_dataset",                                  
    "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",       
    "StartTime": "2021-07-22T14:03:15.489885+08:00",            
    "EndTime": "2021-07-22T14:05:15.489885+08:00",             
    "Message": "InvalidParameter",                             
    "Success": false,                                     
    "Files": [                                               
      {
        "URI": "oss://bucket/file",                       
        "CustomId": "defaultId",                           
        "CustomLabels": {                                  
          "Key1": "Val1",
          "Key2": "Val2"
        },
        "Error": "InternalError"                    
      },{
        "URI": "oss://bucket/file2",
        "CustomId": "defaultId2",
        "CustomLabels": {
          "Key3": "Val3"
        },
        "Error": ""
      }
    ]
  }
}

For descriptions of the parameters in the data field, see Parameter Details.

Delete file metadata

The following is a sample event that EventBridge receives when file metadata is deleted:

{
  "datacontenttype":"application/json;charset=utf-8",
  "aliyunaccountid": "164901546557****",
  "subject": "acs:imm:cn-beijing:164901546557****:project1/dataset1",
  "source": "acs.imm",
  "type": "imm:FileMeta:Delete", 
  "aliyuneventbusname": "default",
  "time":"2021-01-18T11:24:13.502+08:00",
  "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
  "data": {
    "Project": "test_project",                                  
    "Dataset": "test_dataset",                                  
    "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",       
    "StartTime": "2021-07-22T14:03:15.489885+08:00",            
    "EndTime": "2021-07-22T14:05:15.489885+08:00",             
    "Message": "InvalidParameter",                             
    "Success": false,                                     
    "Files": [                                               
      {
        "URI": "oss://bucket/file",                       
        "CustomId": "defaultId",                           
        "CustomLabels": {                                  
          "Key1": "Val1",
          "Key2": "Val2"
        },
        "Error": "InternalError"                    
      },{
        "URI": "oss://bucket/file2",
        "CustomId": "defaultId2",
        "CustomLabels": {
          "Key3": "Val3"
        },
        "Error": ""
      }
    ]
  }
}

For a description of the fields in the data object, see field description table.

Batch deletion of file metadata

The following example shows an EventBridge event for a batch deletion of file metadata.

{
  "datacontenttype":"application/json;charset=utf-8",
  "aliyunaccountid": "164901546557****",
  "subject": "acs:imm:cn-beijing:164901546557****:project1/dataset1",
  "source": "acs.imm",
  "type": "imm:FileMeta:BatchDelete", 
  "aliyuneventbusname": "default",
  "time":"2021-01-18T11:24:13.502+08:00",
  "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
  "data": {
    "Project": "test_project",                                  
    "Dataset": "test_dataset",                                  
    "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",       
    "StartTime": "2021-07-22T14:03:15.489885+08:00",            
    "EndTime": "2021-07-22T14:05:15.489885+08:00",             
    "Message": "InvalidParameter",                             
    "Success": false,                                     
    "Files": [                                               
      {
        "URI": "oss://bucket/file",                       
        "CustomId": "defaultId",                           
        "CustomLabels": {                                  
          "Key1": "Val1",
          "Key2": "Val2"
        },
        "Error": "InternalError"                    
      },{
        "URI": "oss://bucket/file2",
        "CustomId": "defaultId2",
        "CustomLabels": {
          "Key3": "Val3"
        },
        "Error": ""
      }
    ]
  }
}

For parameter descriptions in the data field, see Parameter Descriptions.

Retrieving file EXIF

The following example shows the event that EventBridge receives when EXIF data is retrieved from a file.

{
  "datacontenttype":"application/json;charset=utf-8",
  "aliyunaccountid": "164901546557****",
  "subject": "acs:imm:cn-beijing:164901546557****:bucket/1.jpg",
  "source": "acs.imm",
  "type": "imm:Engine:Exif", 
  "aliyuneventbusname": "default",
  "time":"2021-01-18T11:24:13.502+08:00",
  "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
  "data": {
    "Project": "test_project",                              
    "Dataset": "test_dataset",                              
    "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",    
    "JobId": "Job-id1",                                      
    "StartTime": "2021-07-22T14:03:15.489885+08:00",        
    "EndTime": "2021-07-22T14:05:15.489885+08:00",           
    "Message": "InvalidParameter",                            
    "Success": false,                                       
    "Files": [                                               
      {
        "URI": "oss://bucket/file",                         
        "CustomId": "defaultId",                              
        "CustomLabels": {                                    
          "Key1": "Val1",
          "Key2": "Val2"
        },
        "Error": "InternalError"                             
      },{
        "URI": "oss://bucket/file2",
        "CustomId": "defaultId2",
        "CustomLabels": {
          "Key3": "Val3"
        },
        "Error": ""
      }
    ]
  }
}

The following table describes the parameters in the data field.

Parameter

Type

Example

Description

Project

String

test_project

The name of the Intelligent Media Management (IMM) project.

Dataset

String

test_dataset

The name of the IMM dataset.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

JobId

String

Job-id1

The job ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The time the job started.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The time the job ended.

Message

String

InvalidParameter

Information about the job.

If the Success parameter is false, this parameter contains the error message.

Success

Boolean

false

Indicates whether the job was successful.

Valid values:

  • true: The job succeeded.

  • false: The job failed.

Files

Array

An array of objects, each representing a file processed by the job.

URI

String

oss://bucket/file

The URI of the file.

CustomId

String

defaultId

The custom ID.

CustomLabels

Map

{         
     "Key1": "Val1",
     "Key2": "Val2"
}

The custom labels.

Get file MIME type

The following example shows an event that EventBridge receives when you get the MIME type of a file.

{
  "datacontenttype":"application/json;charset=utf-8",
  "aliyunaccountid": "164901546557****",
  "subject": "acs:imm:cn-beijing:164901546557****:bucket/1.jpg",
  "source": "acs.imm",
  "type": "imm:Engine:Mime",
  "aliyuneventbusname": "default",
  "time":"2021-01-18T11:24:13.502+08:00",
  "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
  "data": {
    "Project": "test_project",                              
    "Dataset": "test_dataset",                              
    "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",    
    "JobId": "Job-id1",                                      
    "StartTime": "2021-07-22T14:03:15.489885+08:00",        
    "EndTime": "2021-07-22T14:05:15.489885+08:00",           
    "Message": "InvalidParameter",                            
    "Success": false,                                       
    "Files": [                                               
      {
        "URI": "oss://bucket/file",                         
        "CustomId": "defaultId",                              
        "CustomLabels": {                                    
          "Key1": "Val1",
          "Key2": "Val2"
        },
        "Error": "InternalError"                             
      },{
        "URI": "oss://bucket/file2",
        "CustomId": "defaultId2",
        "CustomLabels": {
          "Key3": "Val3"
        },
        "Error": ""
      }
    ]
  }
}

For descriptions of the parameters in the data field, see Parameter descriptions.

Retrieving OSS file metadata

When OSS file metadata is retrieved, EventBridge receives the following event:

{
  "datacontenttype":"application/json;charset=utf-8",
  "aliyunaccountid": "164901546557****",
  "subject": "acs:imm:cn-beijing:164901546557****:bucket/1.jpg",
  "source": "acs.imm",
  "type": "imm:Engine:OSSMeta", 
  "aliyuneventbusname": "default",
  "time":"2021-01-18T11:24:13.502+08:00",
  "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
  "data": {
    "Project": "test_project",                              
    "Dataset": "test_dataset",                              
    "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",    
    "JobId": "Job-id1",                                      
    "StartTime": "2021-07-22T14:03:15.489885+08:00",        
    "EndTime": "2021-07-22T14:05:15.489885+08:00",           
    "Message": "InvalidParameter",                            
    "Success": false,                                       
    "Files": [                                               
      {
        "URI": "oss://bucket/file",                         
        "CustomId": "defaultId",                              
        "CustomLabels": {                                    
          "Key1": "Val1",
          "Key2": "Val2"
        },
        "Error": "InternalError"                             
      },{
        "URI": "oss://bucket/file2",
        "CustomId": "defaultId2",
        "CustomLabels": {
          "Key3": "Val3"
        },
        "Error": ""
      }
    ]
  }
}

For descriptions of the data field parameters, see Parameter descriptions.

Retrieve file labels

This example shows the event that EventBridge receives when you retrieve file labels.

{
  "datacontenttype":"application/json;charset=utf-8",
  "aliyunaccountid": "164901546557****",
  "subject": "acs:imm:cn-beijing:164901546557****:bucket/1.jpg",
  "source": "acs.imm",
  "type": "imm:Engine:Tag", 
  "aliyuneventbusname": "default",
  "time":"2021-01-18T11:24:13.502+08:00",
  "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
  "data": {
    "Project": "test_project",                              
    "Dataset": "test_dataset",                              
    "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",    
    "JobId": "Job-id1",                                      
    "StartTime": "2021-07-22T14:03:15.489885+08:00",        
    "EndTime": "2021-07-22T14:05:15.489885+08:00",           
    "Message": "InvalidParameter",                            
    "Success": false,                                       
    "Files": [                                               
      {
        "URI": "oss://bucket/file",                         
        "CustomId": "defaultId",                              
        "CustomLabels": {                                    
          "Key1": "Val1",
          "Key2": "Val2"
        },
        "Error": "InternalError"                             
      },{
        "URI": "oss://bucket/file2",
        "CustomId": "defaultId2",
        "CustomLabels": {
          "Key3": "Val3"
        },
        "Error": ""
      }
    ]
  }
}

To learn about the parameters in the data field, see Parameter descriptions.

Binding task

The following example shows the event EventBridge receives when a binding task is triggered.

{
  "datacontenttype":"application/json;charset=utf-8",
  "aliyunaccountid": "164901546557****",
  "subject": "acs:imm:cn-beijing:164901546557****:project1/dataset1",
  "source": "acs.imm",
  "type": "imm:Binding:Task",
  "aliyuneventbusname": "default",
  "time":"2021-01-18T11:24:13.502+08:00",
  "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
  "data": {
    "TaskId": "task-id1",              
    "Project": "test_project",            
    "Dataset": "test_dataset",                  
    "URI": "oss://bucket/file",                       
    "StartTime": "2021-07-22T14:03:15.489885+08:00",       
    "LastUpdateTime": "2021-07-22T14:03:15.489885+08:00",  
    "Marker": "dir/file",                               
    "Message":"Code: 400, Message: InternalError, RequestId: D2A3AE88-D17C-4CCC-B149-6651115C****", 
    "State": "Running"                                      
  }
}

The following table describes the parameters in the data field.

Parameter

Type

Example value

Description

TaskId

String

task-id1

The binding task ID.

Project

String

test_project

The name of the IMM project.

Dataset

String

test_dataset

The name of the IMM dataset.

URI

String

oss://bucket/file

The URI of the bound file.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The start time of the binding task.

LastUpdateTime

String

2021-07-22T14:03:15.489885+08:00

The last time the binding status was updated.

Marker

String

dir/file

The file path.

Message

String

Code: 400, Message: InternalError...

Task information. Contains an error message if the task fails.

State

String

Running

The binding status.

Valid values:

  • Ready: The file is ready for binding.

  • Running: The binding is in progress.

  • Stopped: The binding process has been stopped.

  • Retrying: The binding is being retried.

  • Failed: The binding failed.

  • Deleted: The binding has been deleted.

Create a clustering task

The following is an example of the event that EventBridge receives when a clustering task is created:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:FigureClustering",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "TaskTypeFigureClustering",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "200",
        "Message": "message",
        "NewClusterCount":     1,
        "UpdatedClusterCount": 0,
        "UpdatedFigureCount":  3,
        "EventSourceId": "batch-18e30e52-2296-4146-a88****"
    }
}
            

The following table describes the parameters in the data field.

Parameter

Type

Value

Description

ProjectName

String

test_project

The project name.

DatasetName

String

test_dataset

The dataset name.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The start time of the task.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The end time of the task.

UserData

String

user_data

The user information.

TaskType

String

TaskTypeFigureClustering

The task type.

TaskId

String

task_id

The task ID.

Status

String

success

The task status.

Code

String

200

The result code.

Message

String

message

The status information.

NewClusterCount

Int

1

The number of newly created clusters.

UpdatedClusterCount

Int

0

The number of updated clusters.

UpdatedFigureCount

Int

3

The number of updated figures.

Merging clusters

The following is an example of a cluster merge event from EventBridge.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:FigureClustersMerging",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "TaskTypeFigureClustersMerging",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "200",
        "Message": "message",
        "Froms": ["id3"],
        "From": "id1",
        "To": "id2",
        "UpdatedFigureCount":  3,
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}
            

The following table describes the parameters in the data field.

Parameter

Type

Value

Description

ProjectName

String

test_project

The name of the project.

DatasetName

String

test_dataset

The name of the dataset.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The ID of the request.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The time the task started.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The time the task ended.

UserData

String

user_data

Custom user data.

TaskType

String

TaskTypeFigureClustersMerging

The type of the task.

TaskId

String

task_id

The ID of the task.

Status

String

success

The status of the task.

Code

String

200

The status code. A value of 200 indicates success.

Message

String

message

The status message.

Froms

Array

["id3"]

An array of original cluster IDs.

From

String

id1

The ID of the original cluster.

To

String

id2

The ID of the target cluster.

UpdatedFigureCount

Int

3

The number of updated figures.

Create a story

The following is an example of an event that EventBridge receives when you create a story:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:StoryCreation",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "TaskTypeStoryCreation",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "200",
        "Message": "message",
        "ObjectId": "id",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}
            

The following table describes the parameters in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The project name.

DatasetName

String

test_dataset

The dataset name.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The unique ID of the request.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The time when the task started.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The time when the task finished.

UserData

String

user_data

Custom user data passed in the initial request.

TaskType

String

TaskTypeStoryCreation

The task type.

TaskId

String

task_id

The unique ID of the task.

Status

String

success

The task status.

Code

String

200

The status code for the task. A value of 200 indicates success.

Message

String

message

The message that corresponds to the status code.

ObjectId

String

id

The ID of the created story object.

Video label extraction

The following example shows a video label extraction event that EventBridge receives.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:VideoLabelClassification",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "TaskTypeVideoLabelClassification",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "200",
        "Message": "message",
        "Labels": [
            {
                "Language": "zh",
                "LabelName": "flower",
                "LabelConfidence": 0.9,
                "CentricScore": 0.98,
                "LabelLevel": 1,
                "ParentLabelName": "Scene",
                "LabelTimestamps": [
                    {
                        "Start": 10,
                        "End": 20
                    }
                ]
            }
        ],
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}
            

This table describes the parameters in the data field.

Parameter

Type

Example value

Description

ProjectName

String

test_project

The name of the project.

DatasetName

String

test_dataset

The name of the dataset.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The task's start time.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The task's end time.

UserData

String

user_data

The user data.

TaskType

String

TaskTypeVideoLabelClassification

The task type.

TaskId

String

task_id

The task ID.

Status

String

success

The task status.

Code

String

200

The error code.

Message

String

message

A message with details about the task status.

Labels

Array

An array of detected labels.

Language

String

zh

The language of the label name.

LabelName

String

flower

The label name.

LabelConfidence

Number

0.9

The label confidence.

CentricScore

Number

0.98

The centricity score of the label.

LabelLevel

Int

1

The label's hierarchical level.

ParentLabelName

String

Scene

The parent label's name.

LabelTimestamps

Array

An array of timestamps indicating when the label appears in the video.

Start

Int

10

The start time of the interval.

End

Int

20

The end time of the interval.

EventSourceId

String

batch-18e30e52-2296-4146-a886-****

The ID of the event source, such as a batch processing or trigger ID.

Creating a content moderation image detection task

The following example shows the event EventBridge receives when a Content Moderation image detection task is created.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:ImageModeration",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "TaskImageModeration",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "",
        "Message": "",
        "URI": "oss://bucket/test.jpg",
        "Suggestion": "pass",
        "Categories": [],
        "Frames": {
            "TotalCount": 100,
            "BlockFrames": [
                {
                    "rate": 0.99,
                    "offset": 10,
                    "label": "porn"
                }
            ]
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}

The following table describes the parameters in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The project name.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The time when the task started.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The time when the task ended.

UserData

String

user_data

The user data.

TaskType

String

TaskImageModeration

The task type.

TaskId

String

task_id

The task ID.

Status

String

success

The task status.

Code

String

InvalidSecurityTokenExpired

The error code. This field is populated only when the task fails.

Message

String

Specified SecurityToken is expired.

The status message. This field contains an error message only if the task fails.

URI

String

oss://bucket/test.jpg

The URI of the moderated image.

Suggestion

String

pass

The recommended action for the moderated content. For example, pass, review, or block.

Categories

Array

An array of violation labels.

Frames

Object

Information about the image frames.

TotalCount

Int

100

The total number of analyzed frames.

BlockFrames

Array

An array of frames with violations.

rate

Number

0.99

The confidence level for the violation detected in the frame.

offset

Int

10

The frame offset.

label

String

porn

The violation label.

EventSourceId

String

batch-18e30e52-2296-4146-a88****

The ID of the event source, such as a batch processing or trigger ID.

Create a media conversion task

The following sample shows the event received by EventBridge when a media conversion task is created.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:MediaConvert",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "MediaConvert",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "",
        "Message": "",
        "Targets": [
            {
                "Code": "",
                "Message": "",
                "URI": "oss://bucket/test_convert.mp4",
                "Subtitle": {
                    "Extract": {
                        "URI": "oss://bucket/ExtractSubtitle"
                    }
                },
                "Image": {
                    "Sprites": [
                        {
                            "URI": "oss://bucket/sprite0"
                        }
                    ],
                    "Snapshots": [
                        {
                            "URI": "oss://bucket/snapshot0"
                        }
                    ]
                }
            }
        ],
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

The following table describes the parameters in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The project name.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The start time of the task.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The end time of the task.

UserData

String

user_data

The user data.

TaskType

String

MediaConvert

The task type.

TaskId

String

task_id

The task ID.

Status

String

success

The task status.

Code

String

InvalidSecurityTokenExpired

The error code. This parameter is returned only when the task fails.

Message

String

Specified SecurityToken is expired.

The status message. This parameter contains an error message if the task fails.

Targets

Array

An array of conversion outputs.

URI

String

oss://bucket/test_convert.mp4

The URI of the converted media file.

Subtitle

Object

Contains subtitle information.

Extract

Object

Contains information about the subtitle extraction.

URI

String

oss://bucket/ExtractSubtitle

The URI of the extracted subtitle file.

Image

Object

Contains image outputs, such as sprites and snapshots.

Sprites

Array

An array of sprites.

URI

String

oss://bucket/sprite0

The URI of the sprite.

Snapshots

Array

An array of snapshots.

URI

String

oss://bucket/snapshot0

The URI of the snapshot.

EventSourceId

String

batch-18e30e52-2296-4146-a886-****

The event source ID, such as a batch processing ID or trigger ID.

Create a document conversion task

Creating a document conversion task triggers the following event in EventBridge.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:OfficeConversion",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "OfficeConversion",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}

The following table describes the parameters in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The project name.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The time the task started.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The time the task ended.

UserData

String

user_data

The user-defined data.

TaskType

String

OfficeConversion

The task type.

TaskId

String

task_id

The task ID.

Status

String

success

The task status.

Code

String

InvalidSecurityTokenExpired

The error code returned if the task fails.

Message

String

Specified SecurityToken is expired.

The error message returned if the task fails.

TotalPage

Int

2

The number of pages converted.

EventSourceId

String

batch-18e30e52-2296-4146-a886-****

The event source ID, such as a batch processing ID or trigger ID.

Asynchronous video moderation task

When an asynchronous video moderation task is created, EventBridge receives an event like the following:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:VideoModeration",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "TaskVideoModeration",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "",
        "Message": "",
        "URI": "oss://bucket/test.mp4",
        "Suggestion": "pass",
        "Categories": [],
        "Frames": {
            "TotalCount": 100,
            "BlockFrames": [
                {
                    "rate": 0.99,
                    "offset": 10,
                    "label": "porn"
                }
            ]
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

            

For a description of the parameters in the data field, see field description.

Creating an asynchronous image splicing task

When an asynchronous image splicing task is created, EventBridge receives an event like the following:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:ImageSplicing",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "ImageSplicing",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "200",
        "Message": "message",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}

For descriptions of the parameters in the data field, see the field description table.

Create a point cloud compression task

When you create a point cloud compression task, EventBridge receives an event similar to the following:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:PointCloudCompression",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2022-07-22T02:52:40.685Z",
        "EndTime": "2022-07-22T02:52:41.33Z",
        "UserData": "user_data",
        "TaskType": "PointCloudCompress",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}
            

For more information about the parameters in the data field, see Parameter descriptions.

Image-to-PDF task

The following example shows an EventBridge event for a newly created image-to-PDF task:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:ImageToPDF",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2022-07-22T02:52:40.685Z",
        "EndTime": "2022-07-22T02:52:41.33Z",
        "UserData": "user_data",
        "TaskType": "ImageToPDF",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For descriptions of the parameters in the data field, see the field description table.

File compression task

The following is a sample event received by EventBridge when a file compression task is created.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:FileCompression",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2022-07-22T02:52:40.685Z",
        "EndTime": "2022-07-22T02:52:41.33Z",
        "UserData": "user_data",
        "TaskType": "FileCompression",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}

For descriptions of the parameters in the data field, see Parameter reference.

Create a spatiotemporal clustering task

When a spatiotemporal clustering task is created, EventBridge receives the following event:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:LocationDateClustering",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "dataset1",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2022-07-22T02:52:40.685Z",
        "EndTime": "2022-07-22T02:52:41.33Z",
        "UserData": "user_data",
        "TaskType": "LocationDateClustering",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For descriptions of the parameters in the data field, see Parameter descriptions.

Archive file inspection task

The following example shows an event from EventBridge for an archive file inspection task:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:ArchiveFileInspection",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2022-07-22T02:52:40.685Z",
        "EndTime": "2022-07-22T02:52:41.33Z",
        "UserData": "user_data",
        "TaskType": "ArchiveFileInspection",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a88****"
    }
}

The parameters in the data field are described in Parameter Descriptions.

Online decompression task

This example shows an event received by EventBridge for an online decompression task:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:FileUncompression",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2022-07-22T02:52:40.685Z",
        "EndTime": "2022-07-22T02:52:41.33Z",
        "UserData": "user_data",
        "TaskType": "FileUncompression",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For a description of the parameters in the data field, see Parameter details.

Similar image detection task

When you create a similar image detection task, EventBridge receives the following event:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:SimilarImageClustering",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2022-07-22T02:52:40.685Z",
        "EndTime": "2022-07-22T02:52:41.33Z",
        "UserData": "user_data",
        "TaskType": "SimilarImageClustering",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For descriptions of the parameters in the data field, see Parameter descriptions.

Batch processing event

The following is an example of a batch processing notification event received by EventBridge.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Batch:Notification",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "Id": "batch-792e0f45-be5e-44e9-****-xx",
        "State": "Succeeded",
        "Error": "",
        "Statistic": {
            "SubmitSuccess": 1,
            "SubmitFailure": 0
        },
        "CreateTime": "2023-06-21T11:42:21.006729926+08:00",
        "UpdateTime": "2023-06-21T11:42:21.006729926+08:00"
    }
}

The following table describes the parameters in the data field.

Parameter

Type

Value

Description

ProjectName

String

test_project

The project name.

Id

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

State

String

Succeeded

The status of the batch job.

Error

String

The error message.

Statistic

Object

The submission statistics.

SubmitSuccess

Int

1

The number of successful submissions.

SubmitFailure

Int

0

The number of failed submissions.

CreateTime

String

2023-06-21T11:42:21.006729926+08:00

The time when the batch job was created.

UpdateTime

String

2023-06-21T11:42:21.006729926+08:00

The time when the batch job was last updated.

Asynchronous task

The following is a sample event received by EventBridge when an asynchronous task is triggered:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:AsyncTask",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2023-06-25T02:52:40.685Z",
        "EndTime": "2023-06-25T02:52:41.33Z",
        "UserData": "",
        "TaskType": "AsyncTask",
        "TaskId": "AsyncTask-f494ed0c-5552-4eee-a439-****",
        "Status": "Failed",
        "Code": "InvalidArgument",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For a description of the parameters in the data field, see field description.

Synchronous task

When a synchronous task is triggered, EventBridge receives the following event:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:SyncTask",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2023-06-25T02:52:40.685Z",
        "EndTime": "2023-06-25T02:52:41.33Z",
        "UserData": "",
        "TaskType": "SyncTask",
        "TaskId": "SyncTask-f494ed0c-5552-4eee-a439-****",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For a description of the parameters in the data field, see the field description table.

Trigger

This is an example of an event that EventBridge receives when a trigger event occurs.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Trigger:Notification",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "Id": "trigger-792e0f45-be5e-44e9-beb3-****",
        "State": "Failed",
        "Error": "",
        "Statistic": {
            "SubmitSuccess": 0,
            "SubmitFailure": 1
        },
        "CreateTime": "2023-06-21T11:42:21.006729926+08:00",
        "UpdateTime": "2023-06-21T11:42:21.006729926+08:00"
    }
}

For descriptions of the parameters in the data field, see the field description table.

Image face search task

The following sample shows an event that EventBridge receives when an image face search task completes.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:FacesSearching",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115C****",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "FacesSearching",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "200",
        "Message": "message",
        "SimilarFaces": [
            {
                "URI": "oss://bucket/A1.jpg",
                "Boundary": {
                    "Width": 109,
                    "Height": 150,
                    "Left": 69,
                    "Top": 49
                },
                "SimilarFaces": [
                    {
                        "URI": "oss://bucket/A2.jpg",
                        "FigureId": "431b6d43-e498-4988-9ee2-30f5981f****",
                        "Similarity": 0.73321396
                    },
                    {
                        "URI": "oss://bucket/A3.jpg",
                        "FigureId": "119198d5-34f9-40e3-9fa1-4c57119f****",
                        "Similarity": 0.77033985
                    }
                ]
            }
        ],
        "EventSourceId": "batch-18e30e52-2296-4146-a88****"
    }
}

The following table describes the parameters in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the project.

DatasetName

String

test_dataset

The name of the dataset.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The time the task started.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The time the task ended.

UserData

String

user_data

The user data.

TaskType

String

FacesSearching

The task type.

TaskId

String

task_id

The task ID.

Status

String

Succeeded

The task status.

Code

String

200

The status code. A value of 200 indicates success. Contains an error code if the task fails.

Message

String

message

A message with details about the status. Contains an error message only if the task fails.

SimilarFaces

Array

An array of objects. Each object describes a face detected in the source image and lists matching faces from the dataset.

URI

String

oss://bucket/A1.jpg

The URI of the image containing the detected face.

Boundary

Object

The bounding box of the detected face.

Width

Int

109

The width of the bounding box in pixels.

Height

Int

150

The height of the bounding box in pixels.

Left

Int

69

The x-coordinate of the top-left corner of the bounding box.

Top

Int

49

The y-coordinate of the top-left corner of the bounding box.

FigureId

String

431b6d43-e498-4988-9ee2-30f5981f****

The unique ID of the matched face from the dataset. This parameter is part of an object within the nested SimilarFaces array.

Similarity

Float

0.73321396

The similarity score between the source face and the matched face, ranging from 0 to 1. This parameter is part of an object within the nested SimilarFaces array.

EventSourceId

String

batch-18e30e52-2296-4146-a8****

The ID of the event source, such as a batch processing ID or a trigger ID.

Play while transcoding task

The following example shows an EventBridge event for a play while transcoding task:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:LiveTranscoding",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "DatasetName": "test_dataset",
        "RequestId": "BA426D2D-53DA-0ED6-9254-38364DF3****",
        "StartTime": "2022-07-22T02:52:40.685Z",
        "EndTime": "2022-07-22T02:52:41.33Z",
        "UserData": "user_data",
        "TaskType": "LiveTranscoding",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "AsyncTask": true,
        "EventSourceId": "batch-18e30e52-2296-414****-xx",
        "URI": "oss//bucket/xx.mp4",
        "Token": "fde894bfbabd54b09f07794ddb3d****",
        "StartIndex": 0,
        "EndIndex": 2,
        "TotalTimeInMs": 10000,
        "TotalSize": 1024000,
        "Bitrate": 100000,
        "VideoStreams": [
            {
                "Duration": 10000,
                "Bitrate": 5407765,
                "FrameRate": "25/1",
                "Resolution": "640x480"
            }
        ],
        "AudioStreams": [
            {
                "Duration": 10000,
                "Bitrate": 100000,
                "Channels": "2"
            }
        ],
        "SubtitleStreams": [
            {
                "Duration": 10000,
                "Language": "en",
                "Index": 0
            }
        ]
    }
}

The following table describes the parameters in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The project name.

DatasetName

String

test_dataset

The dataset name.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The start time of the task.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The end time of the task.

UserData

String

user_data

Custom user-provided data.

TaskType

String

LiveTranscoding

The task type.

TaskId

String

task_id

The task ID.

Status

String

Succeeded

The task status.

Code

String

200

The error code. This field is empty if the task is successful.

Message

String

message

The error message or status details. This field is empty if the task is successful.

AsyncTask

Boolean

true

Specifies whether the task is asynchronous.

EventSourceId

String

batch-18e30e52-2296-4146-a8****

The ID of the event source, such as a batch processing ID or trigger ID.

URI

String

oss//bucket/xx.mp4

The URI of the file.

Token

String

fde894bfbabd54b09f07794ddb3d****

The token.

StartIndex

Int

0

The start index.

EndIndex

Int

2

The end index.

TotalTimeInMs

Int

10000

The duration in milliseconds.

TotalSize

Int

1024000

The size in bytes.

Bitrate

Int

100000

The bitrate in bit/s.

VideoStreams

Array

An array of video streams.

Duration

Number

10000

The duration of the video stream in milliseconds.

Bitrate

Int

5407765

The bitrate of the video stream in bit/s.

FrameRate

String

25/1

The frame rate of the video stream.

Resolution

String

640x480

The resolution of the video stream.

AudioStreams

Array

An array of audio streams.

Bitrate

Int

100000

The bitrate of the audio stream in bit/s.

Channels

String

2

The number of channels in the audio stream.

SubtitleStreams

Array

An array of subtitle streams.

Language

String

en

The language of the subtitle stream.

Index

Int

0

The index of the subtitle stream.

Extract blind watermark content

The following example shows an event that EventBridge receives when content is extracted from a blind watermark.

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.imm",
    "specversion": "1.0",
    "subject": "acs.imm:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "imm:Task:DecodeBlindWatermark",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "ProjectName": "test_project",
        "RequestId": "D2A3AE88-D17C-4CCC-B149-6651115CC8F4",
        "StartTime": "2021-07-22T14:03:15.489885+08:00",
        "EndTime": "2021-07-22T14:05:15.489885+08:00",
        "UserData": "user_data",
        "TaskType": "DecodeBlindWatermark",
        "TaskId": "task_id",
        "Status": "success",
        "Code": "",
        "Message": "",
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx",
        "Content": "water content"
    }
}

The parameters in the data field are described in the following table.

Parameter

Type

Example

Description

ProjectName

String

test_project

The project name.

RequestId

String

D2A3AE88-D17C-4CCC-B149-6651115C****

The request ID.

StartTime

String

2021-07-22T14:03:15.489885+08:00

The start time of the task.

EndTime

String

2021-07-22T14:05:15.489885+08:00

The end time of the task.

UserData

String

user_data

The user data.

TaskType

String

DecodeBlindWatermark

The task type.

TaskId

String

task_id

The task ID.

Status

String

success

The task status.

Code

String

The error code. This field is empty for successful tasks.

Message

String

A detailed status message. This field is empty for successful tasks.

YourKey

String

YourVal

The key of a user-defined tag.

EventSourceId

String

batch-18e30e52-2296-4146-a886-xx

The ID of the event source, such as a batch processing ID or a trigger ID.

Content

String

water content

The extracted content from the blind watermark.