Media Flow Events
Oracle Cloud Infrastructure events are JSON files that are emitted with some service operations and carry information about that operation.
The Events service allows your teams to automatically respond when a Media Flow resource changes its state. You can define rules that trigger a specific action when an event occurs. For more information, see Overview of Events and Get Started with Events. Media Flow resources emit an event for the following actions:
- A media workflow is created, updated, or deleted.
- A Media workflow job is created and completed.
Media Workflow (media-workflow) Event Types
Event Name | Event Type |
---|---|
Create Media Workflow |
|
Delete Media Workflow |
|
Move Media Workflow |
|
Update Media Workflow |
|
Example event for creating a Media Workflow:
{
"eventType":"com.oraclecloud.mediaservices.CreateMediaWorkflow.begin"
"cloudEventsVersion":"0.1"
"eventTypeVersion":"2.0"
"source":"mediaservices"
"eventId":"<unique_ID>"
"eventTime":"2022-03-24T00:00:10.287Z"
"contentType":"application/json"
"data":{
"eventGroupingId":"<unique_ID>"
"eventName":"CreateMediaWorkflow"
"compartmentId":"ocid1.compartment.oc1..<unique_ID>"
"compartmentName":"TestCompartment"
"resourceName":"Test Workflow Job"
"resourceId":"ocid1.mediaworkflowjob.oc1.iad.<unique_ID>"
"availabilityDomain":"AD3"
"stateChange":{
"previous": {},
"current": {}
}
}
}
Media Workflow Configuration (media-workflow-configuration) Event Types
Event Name | Event Type |
---|---|
Create Media Workflow Configuration |
|
Delete Media Workflow Configuration |
|
Move Media Workflow Configuration |
|
Update Media Workflow Configuration |
|
Example event for creating a Media Workflow Configuration:
{
"eventType":"com.oraclecloud.mediaservices.CreateMediaWorkflowConfiguration.begin"
"cloudEventsVersion":"0.1"
"eventTypeVersion":"2.0"
"source":"mediaservices"
"eventId":"<unique_ID>"
"eventTime":"2022-03-24T00:00:10.287Z"
"contentType":"application/json"
"data":{
"eventGroupingId":"<unique_ID>"
"eventName":"CreateMediaWorkflowConfiguration"
"compartmentId":"ocid1.compartment.oc1..<unique_ID>"
"compartmentName":"TestCompartment"
"resourceName":"Test Workflow Job"
"resourceId":"ocid1.mediaworkflowjob.oc1.iad..<unique_ID>"
"availabilityDomain":"AD3"
"stateChange":{
"previous": {},
"current": {}
}
}
}
Media Workflow Job (media-workflow-job) Event Types
Event Name | Event Type |
---|---|
Media Workflow Job Begin |
|
Media Workflow Job End |
|
Example event for creating a Media Workflow Job:
{
"eventType":"com.oraclecloud.mediaservices.MediaWorkflowJob.begin"
"cloudEventsVersion":"0.1"
"eventTypeVersion":"2.0"
"source":"mediaservices"
"eventId":"<unique_ID>"
"eventTime":"2022-03-24T00:00:10.287Z"
"contentType":"application/json"
"data":{
"eventGroupingId":"<unique_ID>"
"eventName":"MediaWorkflowJob"
"compartmentId":"ocid1.compartment.oc1..<unique_ID>"
"compartmentName":"TestCompartment"
"resourceName":"Test Workflow Job"
"resourceId":"ocid1.mediaworkflowjob.oc1.iad..<unique_ID>"
"availabilityDomain":"AD3"
"stateChange":{
"previous": {},
"current": {}
}
}
}