- Resource: Event
- InputSwitchTask
- AdBreakTask
- ReturnToProgramTask
- SlateTask
- MuteTask
- UnmuteTask
- State
- Methods
Resource: Event
Event is a sub-resource of a channel, which can be scheduled by the user to execute operations on a channel resource without having to stop the channel.
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "executeNow": boolean, "executionTime": string, "state": enum ( |
Fields | |
---|---|
name |
The resource name of the event, in the form of: |
createTime |
Output only. The creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
User-defined key/value metadata. An object containing a list of |
executeNow |
When this field is set to true, the event will be executed at the earliest time that the server can schedule the event and |
executionTime |
The time to execute the event. If you set A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
state |
Output only. The state of the event. |
error |
Output only. An error object that describes the reason for the failure. This property is always present when |
Union field task . Required. Operation to be executed by this event. task can be only one of the following: |
|
inputSwitch |
Switches to another input stream. |
adBreak |
Inserts a new ad opportunity. |
returnToProgram |
Stops any running ad break. |
slate |
Inserts a slate. |
mute |
Mutes the stream. |
unmute |
Unmutes the stream. |
InputSwitchTask
Switches to another input stream. Automatic failover is then disabled.
JSON representation |
---|
{ "inputKey": string } |
Fields | |
---|---|
inputKey |
The |
AdBreakTask
Inserts a new ad opportunity.
JSON representation |
---|
{ "duration": string } |
Fields | |
---|---|
duration |
Duration of an ad opportunity. Must be greater than 0. A duration in seconds with up to nine fractional digits, ending with ' |
ReturnToProgramTask
This type has no fields.
Stops any events which are currently running. This only applies to events with a duration.
SlateTask
Inserts a slate.
JSON representation |
---|
{ "duration": string, "asset": string } |
Fields | |
---|---|
duration |
Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate. A duration in seconds with up to nine fractional digits, ending with ' |
asset |
Slate asset to use for the duration. If its duration is less than the duration of the SlateTask, then the slate loops. The slate must be represented in the form of: |
MuteTask
Mutes the stream.
JSON representation |
---|
{ "duration": string } |
Fields | |
---|---|
duration |
Duration for which the stream should be muted. If omitted, the stream will be muted until an UnmuteTask event is sent. A duration in seconds with up to nine fractional digits, ending with ' |
UnmuteTask
This type has no fields.
Unmutes the stream. The task fails if the stream is not currently muted.
State
State of the event
Enums | |
---|---|
STATE_UNSPECIFIED |
Event state is not specified. |
SCHEDULED |
Event is scheduled but not executed yet. |
RUNNING |
Event is being executed. |
SUCCEEDED |
Event has been successfully executed. |
FAILED |
Event fails to be executed. |
PENDING |
Event has been created but not scheduled yet. |
STOPPED |
Event was stopped before running for its full duration. |
Methods |
|
---|---|
|
Creates an event with the provided unique ID in the specified channel. |
|
Deletes the specified event. |
|
Returns the specified event. |
|
Returns a list of all events in the specified channel. |