- Resource: WorkflowConfig
- ScheduledExecutionRecord
- WorkflowTriggerConfig
- Condition
- WorkflowTrigger
- TableUpdateTrigger
- TriggerEvaluationRecord
- Methods
Resource: WorkflowConfig
Represents a Dataform workflow configuration.
| JSON representation |
|---|
{ "name": string, "releaseConfig": string, "invocationConfig": { object ( |
| Fields | |
|---|---|
name |
Identifier. The workflow config's name. |
releaseConfig |
Required. The name of the release config whose releaseCompilationResult should be executed. Must be in the format |
invocationConfig |
Optional. If left unset, a default InvocationConfig will be used. |
cronSchedule |
Optional. Optional schedule (in cron format) for automatic execution of this workflow config. |
timeZone |
Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database. If left unspecified, the default is |
recentScheduledExecutionRecords[] |
Output only. Records of the 10 most recent scheduled execution attempts, ordered in descending order of |
disabled |
Optional. Disables automatic creation of workflow invocations. |
createTime |
Output only. The timestamp of when the WorkflowConfig was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The timestamp of when the WorkflowConfig was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
workflowTriggerConfig |
Optional. Trigger configuration for this workflow. If present, the workflow will be triggered based on the specified triggers. |
internalMetadata |
Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
ScheduledExecutionRecord
A record of an attempt to create a workflow invocation for this workflow config.
| JSON representation |
|---|
{ "executionTime": string, // Union field |
| Fields | |
|---|---|
executionTime |
Output only. The timestamp of this execution attempt. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Union field result. The result of this execution attempt. result can be only one of the following: |
|
workflowInvocation |
The name of the created workflow invocation, if one was successfully created. Must be in the format |
errorStatus |
The error status encountered upon this attempt to create the workflow invocation, if the attempt was unsuccessful. |
WorkflowTriggerConfig
Represents a trigger configuration for a workflow.
| JSON representation |
|---|
{ "condition": enum ( |
| Fields | |
|---|---|
condition |
Optional. The condition to use when triggering the workflow. |
workflowTriggers[] |
Required. The trigger definitions to invoke a workflow. |
minExecutionDuration |
Optional. Minimum duration between two consecutive executions. If not specified, the workflow will be executed every time trigger conditions are met and there is no ongoing workflow execution. A duration in seconds with up to nine fractional digits, ending with ' |
maxWaitDuration |
Optional. The effective maximum wait time duration for the trigger condition to be met. If not specified, the workflow won't be triggered until conditions are met. A duration in seconds with up to nine fractional digits, ending with ' |
recentTriggerEvaluationRecords[] |
Output only. Records of the 10 most recent trigger evaluations, ordered in descending order of |
lastSuccessfulEvaluationTime |
Output only. The timestamp of the last successful trigger evaluation. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Condition
The condition to use when triggering the workflow.
| Enums | |
|---|---|
CONDITION_UNSPECIFIED |
If CONDITION_UNSPECIFIED, the default value is ANY. |
ALL |
If ALL, all the trigger config conditions must be met before a workflow is invoked. |
ANY |
If ANY, at least one of the trigger config conditions must be met before a workflow is invoked. |
WorkflowTrigger
The trigger definition to invoke a workflow.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field trigger. The trigger defining the conditions to invoke a workflow. trigger can be only one of the following: |
|
tableUpdateTrigger |
The table update trigger configuration. |
TableUpdateTrigger
Represents a table update trigger configuration.
| JSON representation |
|---|
{
"table": {
object ( |
| Fields | |
|---|---|
table |
The target table to trigger the workflow. |
triggerUpdateTime |
Output only. The modification time of this table that resulted in an invocation of the workflow. This would be updated by the triggering service after a successful workflow invocation. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
TriggerEvaluationRecord
A record of an attempt to evaluate trigger conditions.
| JSON representation |
|---|
{
"evaluationTime": string,
"status": {
object ( |
| Fields | |
|---|---|
evaluationTime |
Output only. The timestamp of this trigger evaluation attempt. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
status |
Output only. The status of the trigger evaluation. Success is indicated by a code of 0 (OK). Message will only be present if the status code is non-zero. |
Methods |
|
|---|---|
|
Creates a new WorkflowConfig in a given Repository. |
|
Deletes a single WorkflowConfig. |
|
Fetches a single WorkflowConfig. |
|
Lists WorkflowConfigs in a given Repository. |
|
Updates a single WorkflowConfig. |