All Products
Search
Document Center

:IMM events

Last Updated:Mar 15, 2024

This topic describes the types of Intelligent Media Management (IMM) events that can be published to EventBridge

Event types

The following table describes the types of IMM events that can be published to EventBridge.

Event type

Value of the type parameter

A file is added

imm:FileMeta:Index

Multiple files are added at a time

imm:FileMeta:BatchIndex

The metadata of multiple files is updated at a time

imm:FileMeta:BatchUpdate

The metadata of a file is deleted

imm:FileMeta:Delete

The metadata of multiple files is deleted at a time

imm:FileMeta:BatchDelete

The Exchangeable Image File Format (EXIF) of a file is queried

imm:Engine:Exif

The Multipurpose Internet Mail Extensions (MIME) standard of a file is queried

imm:Engine:Mime

The Object Storage Service (OSS) metadata of a file is queried

imm:Engine:OSSMeta

The labels of a file are queried

imm:Engine:Tag

A file is bound to a dataset in IMM

imm:Binding:Task

A clustering task is created

imm:Task:FigureClustering

Clusters are merged

imm:Task:FigureClustersMerging

A story is created

imm:Task:StoryCreation

Video labels are extracted

imm:Task:VideoLabelClassification

An image moderation task is created

imm:Task:ImageModeration

A media conversion task is created

imm:Task:MediaConvert

A document conversion task is created

imm:Task:OfficeConversion

An asynchronous video moderation task is created

imm:Task:VideoModeration

An asynchronous long image production task is created

imm:Task:ImageSplicing

A point cloud compression task is created

imm:Task:PointCloudCompression

A task to convert images to PDF is created

imm:Task:ImageToPDF

A file compression task is created

imm:Task:FileCompression

A spatiotemporal clustering task is created

imm:Task:LocationDateClustering

The file list in a compressed package is previewed

imm:Task:ArchiveFileInspection

A file is decompressed online

imm:Task:FileUncompression

A task to detect similar images is created

imm:Task:SimilarImageClustering

A batch processing task is triggered

imm:Batch:Notification

An asynchronous task is triggered

imm:Task:AsyncTask

A synchronous task is triggered

imm:Task:SyncTask

A trigger event is triggered

imm:Trigger:Notification

A face image query task is triggered

imm:Task:FacesSearching

A play while transcoding task is triggered

imm:Task:LiveTranscoding

The content of a blind watermark is extracted

imm:Task:DecodeBlindWatermark

An operation is performed on a resource

imm:ActionTrail:AliyunServiceEvent

An API operation is called

imm:ActionTrail:ApiCall

An operation is performed in the console

imm:ActionTrail:ConsoleOperation

A user logs on to the console

imm:ActionTrail:ConsoleSignin

A user logs off from the console

imm:ActionTrail:ConsoleSignout

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

A file is added

The following example shows the event that EventBridge receives when a file is added:

{
    "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 following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

DatasetName

String

test_dataset

The name of the dataset in IMM.

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 task information.

If the value of the Success parameter is false, this parameter indicates the error message.

Success

Boolean

false

Indicates whether the task is successful.

Valid values:

  • true

  • false

Files

Array

The files that are involved in 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.

Multiple files are added at a time

The following example shows the event that EventBridge receives when multiple files are added at a time:

{
    "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 information about the parameters contained in the data field, see the field description table.

The metadata of multiple files is updated at a time

The following example shows the event that EventBridge receives when the metadata of multiple files is updated at a time:

{
  "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 information about the parameters contained in the data field, see the field description table.

The metadata of a file is deleted

The following example shows the event EventBridge receives when the metadata of a file 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 information about the parameters contained in the data field, see the field description table.

The metadata of multiple files is deleted at a time

The following example shows the event that EventBridge receives when the metadata of multiple files is deleted at a time:

{
  "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 information about the parameters contained in the data field, see the field description table.

The EXIF of a file is queried

The following example shows the event EventBridge receives the EXIF of a file is queried:

{
  "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 contained in the data field.

Parameter

Type

Example

Description

Project

String

test_project

The name of the IMM project.

Dataset

String

test_dataset

The name of the dataset in IMM.

RequestId

String

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

The request ID.

JobId

String

Job-id1

The task 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 task information.

If the value of the Success parameter is false, this parameter indicates the error message.

Success

Boolean

false

Indicates whether the task is successful.

Valid values:

  • true

  • false

Files

Array

The files that are involved in the task.

URI

String

oss://bucket/file

The 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.

The MIME standard of a file is queried

The following example shows the event that EventBridge receives when the MIME standard of a file is queried:

{
  "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 information about the parameters contained in the data field, see the field description table.

The OSS metadata of a file is queried

The following example shows the event that EventBridge receives when the OSS metadata of a file is queried:

{
  "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 information about the parameters contained in the data field, see the field description table.

The labels of a file are queried

The following example shows the event that EventBridge receives when the labels of a file are queried:

{
  "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": ""
      }
    ]
  }
}

For information about the parameters contained in the data field, see the field description table.

A file is bound to a dataset in IMM

The following example shows the event that EventBridge receives when a file is bound to a dataset in IMM:

{
  "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 contained in the data field.

Parameter

Type

Example

Description

TaskId

String

task-id1

The task ID.

Project

String

test_project

The name of the IMM project.

Dataset

String

test_dataset

The name of the dataset in IMM.

URI

String

oss://bucket/file

The URI of the file.

StartTime

String

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

The time when the task started.

LastUpdateTime

String

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

The time when the binding status was last updated.

Marker

String

dir/file

The directory of the file.

Message

String

InvalidParameter

The task information. If the task failed, this parameter indicates the error message.

State

Boolean

Running

The binding status.

Valid values:

  • Ready: The file is ready to be bound to the dataset.

  • Running: The file is bound to the dataset.

  • Stopped: The binding operation is stopped.

  • Retrying: The binding operation is being retried.

  • Failed: The binding operation failed.

  • Delete: The binding is deleted.

A clustering task is created

The following example shows 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,
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a88****"
    }
}
            

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

DatasetName

String

test_dataset

The name of the dataset in IMM.

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 information.

TaskType

String

FigureClustering

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

The status information.

NewClusterCount

Int

1

The number of clusters that were generated.

UpdatedClusterCount

Int

0

The number of clusters that were updated.

UpdatedFigureCount

Int

3

The number of figures that were updated.

Clusters are merged

The following example shows the event that EventBridge receives when clusters are merged:

{
    "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,
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}
            

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

DatasetName

String

test_dataset

The name of the dataset in IMM.

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 information.

TaskType

String

TaskTypeFigureClustersMerging

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

The status information.

Froms

Array

["id3"]

The IDs of the original clusters. Separate multiple IDs with commas (,).

From

String

id1

The ID of the original cluster.

To

String

id2

The ID of the merged cluster.

UpdatedFigureCount

Int

3

The number of figures that were updated.

A story is created

The following example shows the event that EventBridge receives when a story 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: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",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}
            

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

DatasetName

String

test_dataset

The name of the dataset in IMM.

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 information.

TaskType

String

TaskTypeStoryCreation

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

The status information.

ObjectId

String

id

The object ID.

Video labels are extracted

The following example shows the event that EventBridge receives video labels are extracted:

{
    "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
                    }
                ]
            }
        ],
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}
            

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

DatasetName

String

test_dataset

The name of the dataset in IMM.

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 information.

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

The status information.

Labels

Array

The labels.

Language

String

zh

The language used by the label.

LabelName

String

flower

The label name.

LabelConfidence

Number

0.9

The confidence level of the label.

CentricScore

Number

0.98

The label score.

LabelLevel

Int

1

The label level.

ParentLabelName

String

Scene

The name of the parent label.

LabelTimestamps

Array

The timestamps of the label.

Start

Int

10

The start timestamp.

End

Int

20

The end timestamp.

Tags

Object

The time when the label was extracted.

EventSourceId

String

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

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

An image moderation task is created

The following example shows the event that EventBridge receives when an image moderation 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"
                }
            ]
        },
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

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 information.

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.

Message

String

Specified SecurityToken is expired.

The status information.

URI

String

oss://bucket/test.jpg

The URI of the moderated image.

Suggestion

String

pass

The suggested behavior for the user.

Categories

Array

The labels if the image contains undesirable content.

Frames

Object

The frame information.

TotalCount

Int

100

The total number of captured frames.

BlockFrames

Array

The frames that contain undesirable content.

rate

Number

0.99

The confidence level of the frames that contain undesirable content.

offset

Int

10

The frame offset.

label

String

porn

The name of the label that is attached to the undesirable content.

Tags

Object

The tags.

EventSourceId

String

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

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

A media conversion task is created

The following example shows the event that EventBridge receives 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"
                        }
                    ]
                }
            }
        ],
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

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 information.

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.

Message

String

Specified SecurityToken is expired.

The status information.

Targets

Array

The conversion results.

URI

String

oss://bucket/test_convert.mp4

The URI of the converted media file.

Subtitle

Object

The subtitles.

Extract

Object

The subtitles extracted from the media file.

URI

String

oss://bucket/ExtractSubtitle

The URI of the extracted subtitle.

Image

Object

The sprite snapshot.

Sprites

Array

The sprite snapshots.

URI

String

oss://bucket/sprite0

The URI of the sprite snapshot.

Snapshots

Array

The captured frames.

URI

String

oss://bucket/snapshot0

The URI of the captured frame.

Tags

Object

The tags.

EventSourceId

String

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

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

A document conversion task is created

The following example shows the event that EventBridge receives when a document 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: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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

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 information.

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.

Message

String

Specified SecurityToken is expired.

The status information.

TotalPage

Int

2

The number of pages that were converted.

Tags

Object

The tags.

EventSourceId

String

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

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

An asynchronous video moderation task is created

The following example shows the event that EventBridge receives when an asynchronous video moderation 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: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"
                }
            ]
        },
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

            

For information about the parameters contained in the data field, see the field description table.

An asynchronous long image production task is created

The following example shows the event that EventBridge receives when an asynchronous long image production 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: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",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}

For information about the parameters contained in the data field, see the field description table.

A point cloud compression task is created

The following example shows the event that EventBridge receives when a point cloud 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: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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}
            

For information about the parameters contained in the data field, see the field description table.

A task to convert images to PDF is created

The following example shows the event that EventBridge receives when a task to convert images to PDF 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: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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For information about the parameters contained in the data field, see the field description table.

A file compression task is created

The following example shows the event that EventBridge receives 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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx"
    }
}

For information about the parameters contained in the data field, see the field description table.

A spatiotemporal clustering task is created

The following example shows the event that EventBridge receives when a spatiotemporal 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: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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For information about the parameters in the data field, see the field description table.

The file list in a compressed package is previewed

The following example shows the event that EventBridge receives when the file list in a compressed package is previewed:

{
    "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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a88****"
    }
}

For information about the parameters in the data field, see the field description table.

A file is decompressed online

The following example shows the event that is received by EventBridge when a file is decompressed online:

{
    "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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For information about the parameters in the data field, see the field description table.

A task to detect similar images is created

The following example shows the event that EventBridge receives when a task to detect similar images 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: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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For information about the parameters in the data field, see the field description table.

A batch processing task is triggered

The following example shows the event that EventBridge receives when a batch processing 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: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",
        "Tags": {
            "imm.aliyuncs.com/Action": "doc/convert",
            "imm.aliyuncs.com/Bucket": "imm-test-xx",
            "imm.aliyuncs.com/Prefix": "input/WORD/"
        },
        "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 contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

Id

String

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

The request ID.

Tags

Object

"imm.aliyuncs.com/Action": "doc/convert","imm.aliyuncs.com/Bucket": "imm-test-xx","imm.aliyuncs.com/Prefix": "input/WORD/"

The tags.

State

String

Succeeded

The status.

Error

String

The error message.

Statistic

Object

The statistics.

SubmitSuccess

Int

1

The number of events that are submitted.

SubmitFailure

Int

0

The number of events that failed to be submitted.

CreateTime

String

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

The time when the task was created.

UpdateTime

String

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

The time when the task was updated.

An asynchronous task is triggered

The following example shows the event that EventBridge receives 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": "",
        "Tags": {
            "imm.aliyuncs.com/Action": "doc/convert",
            "imm.aliyuncs.com/Bucket": "test-bucket",
            "batch.imm.aliyuncs.com/Id": "batch-18e30e52-2296-4146-a886-****",
            "batch.imm.aliyuncs.com/SourceURI": "oss://test-bucket/input/Image/xx.docx",
            "imm.aliyuncs.com/Source": "batch"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For information about the parameters in the data field, see the field description table.

A synchronous task is triggered

The following example shows the event that EventBridge receives when a synchronous 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: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": "",
        "Tags": {
            "imm.aliyuncs.com/Action": "image/crop",
            "imm.aliyuncs.com/Bucket": "test-bucket",
            "batch.imm.aliyuncs.com/Id": "batch-18e30e52-2296-4146-a886-****",
            "batch.imm.aliyuncs.com/SourceURI": "oss://test-bucket/input/Image/xx.jpg",
            "imm.aliyuncs.com/Source": "batch"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-****"
    }
}

For information about the parameters in the data field, see the field description table.

A trigger event is triggered

The following example shows the event that EventBridge receives when a trigger event 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: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-****",
        "Tags": {
            "imm.aliyuncs.com/Action": "doc/convert",
            "imm.aliyuncs.com/Bucket": "imm-test-xx",
            "imm.aliyuncs.com/Prefix": "input/WORD/"
        },
        "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 information about the parameters in the data field, see the field description table.

A face image query task is triggered

The following example shows the event that EventBridge receives when a face image query 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: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
                    }
                ]
            }
        ],
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a88****"
    }
}

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

DatasetName

String

test_dataset

The name of the dataset in IMM.

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 information.

TaskType

String

FacesSearching

The task type.

TaskId

String

task_id

The task ID.

Status

String

Succeeded

The task status.

Code

String

200

The error code.

Message

String

message

The status information.

SimilarFaces

Array

The similar faces.

URI

String

oss://bucket/A1.jpg

The URI of the image.

Boundary

Object

The bounding box of the face in the image

Width

Int

109

The width of the image.

Height

Int

150

The height of the image.

Left

Int

69

The distance from the x-coordinate to the left side.

Top

Int

49

The distance from the y-coordinate to the top.

FigureId

String

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

The figure ID.

Similarity

String

0.73321396

The similarity between the queried face and the face in the image.

Tags

Object

"YourKey": "YourVal"

The tags.

EventSourceId

String

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

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

A play while transcoding task is triggered

The following example shows the event that EventBridge receives when a play while transcoding 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:LiveTranscoding",
    "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": "LiveTranscoding",
        "TaskId": "task_id",
        "Status": "Succeeded",
        "Code": "",
        "Message": "",
        "AsyncTask": true,
        "Tags": {
            "YourKey": "YourVal"
        },
        "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 contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

DatasetName

String

test_dataset

The name of the dataset in IMM.

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 information.

TaskType

String

FacesSearching

The task type.

TaskId

String

task_id

The task ID.

Status

String

Succeeded

The task status.

Code

String

200

The error code.

Message

String

message

The status information.

AsyncTask

Boolean

true

Indicates whether the task is an asynchronous task.

Tags

Object

{
 "YourKey": "YourVal"
 }

The tags.

EventSourceId

String

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

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

URI

String

oss//bucket/xx.mp4

The URI of the file.

Token

String

fde894bfbabd54b09f07794ddb3d****

The token information.

StartIndex

Int

0

The start index number.

EndIndex

Int

2

The end index number.

TotalTimeInMs

Int

10000

The duration. Unit: milliseconds.

TotalSize

Int

1024000

The size. Unit: bytes.

Bitrate

Int

100000

The bitrate. Unit: bit/s.

VideoStreams

Array

The video streams.

Duration

Number

10000

The duration of the video stream. Unit: seconds.

Bitrate

Int

5407765

The bitrate of the video stream. Unit: bit/s.

FrameRate

String

25/1

The frame rate of the video stream.

Resolution

String

640×480

The resolution of the video stream.

AudioStreams

Array

The audio streams.

Bitrate

Int

100000

The bitrate of the audio stream. Unit: bit/s.

Channels

String

2

The number of sound channels.

SubtitleStreams

Array

The subtitle streams.

Language

String

en

The language of the subtitle stream.

Index

Int

0

The index number of the subtitle stream.

The content of a blind watermark is extracted

The following example shows the event EventBridge receives when the content of a blind watermark is extracted:

{
    "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": "",
        "Tags": {
            "YourKey": "YourVal"
        },
        "EventSourceId": "batch-18e30e52-2296-4146-a886-xx",
        "Content": "water content"
    }
}

The following table describes the parameters contained in the data field.

Parameter

Type

Example

Description

ProjectName

String

test_project

The name of the IMM project.

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 information.

TaskType

String

DecodeBlindWatermark

The task type.

TaskId

String

task_id

The task ID.

Status

String

success

The task status.

Code

String

The error code.

Message

String

The status information.

Tags

Object

The tags.

YourKey

String

YourVal

The tag.

EventSourceId

String

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

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

Content

String

water content

The content of the blind watermark.