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
com.oraclecloud.mediaservices.CreateMediaWorkflow
Delete Media Workflow
com.oraclecloud.mediaservices.DeleteMediaWorkflow
Move Media Workflow
com.oraclecloud.mediaservices.MoveMediaWorkflow
Update Media Workflow
com.oraclecloud.mediaservices.UpdateMediaWorkflow

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
com.oraclecloud.mediaservices.CreateMediaWorkflowConfiguration
Delete Media Workflow Configuration
com.oraclecloud.mediaservices.DeleteMediaWorkflowConfiguration
Move Media Workflow Configuration
com.oraclecloud.mediaservices.MoveMediaWorkflowConfiguration
Update Media Workflow Configuration
com.oraclecloud.mediaservices.UpdateMediaWorkflowConfiguration

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
com.oraclecloud.mediaservices.MediaWorkflowJob.begin
Media Workflow Job End
com.oraclecloud.mediaservices.MediaWorkflowJob.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": {}
    }
  }
}