Skip to main content

Notify

NameTypeDescription
notify_methodenum                          
email
rest
sns
sqs
Notification method for messaging.
default: rest
emailobjectNotification by email: emailaddress.
restobjectNotifications to a REST API.
snsobjectNotification with AWS Simple Notification Service. https://aws.amazon.com/sns/
sqsobjectNotification with AWS Simple Queue Service. https://aws.amazon.com/sqs/

Example notify

{
"name": "Hybrik Transcode Example",
"payload": {
"elements": [
{
"uid": "source_file",
"kind": "source",
"payload": {
"kind": "asset_url",
"payload": {
"storage_provider": "s3",
"url": "s3://my_bucket/my_input_folder/my_file.mp4"
}
}
},
{
"uid": "transcode_task",
"kind": "transcode",
"payload": {
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_output_folder"
},
"targets": [
{
"file_pattern": "{source_basename}_converted.mp4",
"existing_files": "replace",
"container": {
"kind": "mp4"
},
"video": {
"width": 1280,
"height": 720,
"codec": "h264",
"profile": "high",
"level": "4.0",
"frame_rate": 23.976
},
"audio": [
{
"codec": "aac",
"channels": 2,
"sample_rate": 48000,
"sample_size": 16,
"bitrate_kb": 128
}
]
}
]
}
},
{
"uid": "notify_task",
"kind": "notify",
"payload": {
"notify_method": "email",
"email": {
"recipients": "{account_owner_email}",
"subject": "Job {job_id} has completed.",
"body": "File {source_basename} was processed."
}
}
}
],
"connections": [
{
"from": [
{
"element": "source_file"
}
],
"to": {
"success": [
{
"element": "transcode_task"
}
]
}
},
{
"from": [
{
"element": "transcode_task"
}
],
"to": {
"success": [
{
"element": "notify_task"
}
]
}
}
]
}
}