Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a new template
Deletes a template
download(name, fileFormat=None, x__xgafv=None)
Downloads a template. Retrieves the `Template` and returns the response as a string.
Get a template in the specified project.
import_(name, body=None, x__xgafv=None)
Import the template to an existing integration. This api would keep track of usage_count and last_used_time. PERMISSION_DENIED would be thrown if template is not accessible by client.
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)
Lists all templates matching the filter.
Retrieves the next page of results.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates the template by given id.
Search templates based on user query and filters. This api would query the templates and return a list of templates based on the user filter.
Retrieves the next page of results.
share(name, body=None, x__xgafv=None)
Share a template with other clients. Only the template owner can share the templates with other projects. PERMISSION_DENIED would be thrown if the request is not from the owner.
unshare(name, body=None, x__xgafv=None)
Unshare a template from given clients. Owner of the template can unshare template with clients. Shared client can only unshare the template from itself. PERMISSION_DENIED would be thrown if request is not from owner or for unsharing itself.
upload(parent, body=None, x__xgafv=None)
Uploads a template. The content can be a previously downloaded template. Performs the same function as CreateTemplate, but accepts input in a string format, which holds the complete representation of the Template content.
use(name, body=None, x__xgafv=None)
Use the template to create integration. This api would keep track of usage_count and last_used_time. PERMISSION_DENIED would be thrown if template is not accessible by client.
close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a new template Args: parent: string, Required. "projects/{project}/locations/{location}" format. (required) body: object, The request body. The object takes the form of: { # Defines the template for Application Integration "author": "A String", # Optional. Creator of the template. "categories": [ # Required. Categories associated with the Template. The categories listed below will be utilized for the Template listing. "A String", ], "components": [ # Optional. Components being used in the template. This could be used to categorize and filter. { # Define the components that are present in a template. "name": "A String", # Optional. Name of the component. "type": "A String", # Optional. Type of the component. }, ], "createTime": "A String", # Output only. Auto-generated. "description": "A String", # Optional. Description of the template. The length should not be more than 255 characters "displayName": "A String", # Required. The name of the template "docLink": "A String", # Optional. Link to template documentation. "lastUsedTime": "A String", # Optional. Time the template was last used. "name": "A String", # Identifier. Resource name of the template. "sharedWith": [ # Required. Resource names with which the template is shared for example ProjectNumber/Ord id "A String", ], "tags": [ # Required. Tags which are used to identify templates. These tags could be for business use case, connectors etc. "A String", ], "templateBundle": { # Define the bundle of the template. # Required. Bundle which is part of the templates. The template entities in the bundle would be converted to an actual entity. "integrationVersionTemplate": { # Define the template of IntegrationVersion. # Required. Main integration templates of the template bundle. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, "subIntegrationVersionTemplates": [ # Optional. Sub integration templates which would be added along with main integration. { # Define the template of IntegrationVersion. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, ], }, "updateTime": "A String", # Output only. Auto-generated "usageCount": "A String", # Optional. Number of template usages. "usageInfo": "A String", # Optional. Information on how to use the template. This should contain detailed information about usage of the template. "visibility": "A String", # Required. Visibility of the template. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Defines the template for Application Integration "author": "A String", # Optional. Creator of the template. "categories": [ # Required. Categories associated with the Template. The categories listed below will be utilized for the Template listing. "A String", ], "components": [ # Optional. Components being used in the template. This could be used to categorize and filter. { # Define the components that are present in a template. "name": "A String", # Optional. Name of the component. "type": "A String", # Optional. Type of the component. }, ], "createTime": "A String", # Output only. Auto-generated. "description": "A String", # Optional. Description of the template. The length should not be more than 255 characters "displayName": "A String", # Required. The name of the template "docLink": "A String", # Optional. Link to template documentation. "lastUsedTime": "A String", # Optional. Time the template was last used. "name": "A String", # Identifier. Resource name of the template. "sharedWith": [ # Required. Resource names with which the template is shared for example ProjectNumber/Ord id "A String", ], "tags": [ # Required. Tags which are used to identify templates. These tags could be for business use case, connectors etc. "A String", ], "templateBundle": { # Define the bundle of the template. # Required. Bundle which is part of the templates. The template entities in the bundle would be converted to an actual entity. "integrationVersionTemplate": { # Define the template of IntegrationVersion. # Required. Main integration templates of the template bundle. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, "subIntegrationVersionTemplates": [ # Optional. Sub integration templates which would be added along with main integration. { # Define the template of IntegrationVersion. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, ], }, "updateTime": "A String", # Output only. Auto-generated "usageCount": "A String", # Optional. Number of template usages. "usageInfo": "A String", # Optional. Information on how to use the template. This should contain detailed information about usage of the template. "visibility": "A String", # Required. Visibility of the template. }
delete(name, x__xgafv=None)
Deletes a template Args: name: string, Required. The name that is associated with the Template. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } }
download(name, fileFormat=None, x__xgafv=None)
Downloads a template. Retrieves the `Template` and returns the response as a string. Args: name: string, Required. The template to download. Format: projects/{project}/locations/{location}/template/{template_id} (required) fileFormat: string, Required. File format for download request. Allowed values FILE_FORMAT_UNSPECIFIED - Unspecified file format JSON - JSON File Format YAML - YAML File Format x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response for DownloadTemplate. "content": "A String", # String representation of the template. }
get(name, x__xgafv=None)
Get a template in the specified project. Args: name: string, Required. The template to retrieve. Format: projects/{project}/locations/{location}/templates/{template} (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Defines the template for Application Integration "author": "A String", # Optional. Creator of the template. "categories": [ # Required. Categories associated with the Template. The categories listed below will be utilized for the Template listing. "A String", ], "components": [ # Optional. Components being used in the template. This could be used to categorize and filter. { # Define the components that are present in a template. "name": "A String", # Optional. Name of the component. "type": "A String", # Optional. Type of the component. }, ], "createTime": "A String", # Output only. Auto-generated. "description": "A String", # Optional. Description of the template. The length should not be more than 255 characters "displayName": "A String", # Required. The name of the template "docLink": "A String", # Optional. Link to template documentation. "lastUsedTime": "A String", # Optional. Time the template was last used. "name": "A String", # Identifier. Resource name of the template. "sharedWith": [ # Required. Resource names with which the template is shared for example ProjectNumber/Ord id "A String", ], "tags": [ # Required. Tags which are used to identify templates. These tags could be for business use case, connectors etc. "A String", ], "templateBundle": { # Define the bundle of the template. # Required. Bundle which is part of the templates. The template entities in the bundle would be converted to an actual entity. "integrationVersionTemplate": { # Define the template of IntegrationVersion. # Required. Main integration templates of the template bundle. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, "subIntegrationVersionTemplates": [ # Optional. Sub integration templates which would be added along with main integration. { # Define the template of IntegrationVersion. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, ], }, "updateTime": "A String", # Output only. Auto-generated "usageCount": "A String", # Optional. Number of template usages. "usageInfo": "A String", # Optional. Information on how to use the template. This should contain detailed information about usage of the template. "visibility": "A String", # Required. Visibility of the template. }
import_(name, body=None, x__xgafv=None)
Import the template to an existing integration. This api would keep track of usage_count and last_used_time. PERMISSION_DENIED would be thrown if template is not accessible by client. Args: name: string, Required. The name that is associated with the Template. (required) body: object, The request body. The object takes the form of: { # Request to Import template "integration": "A String", # Required. Name of the integration where template needs to be imported. "integrationRegion": "A String", # Required. The region of the Integration to be created. "subIntegrations": { # Optional. Sub Integration which would be created via templates. "a_key": { # Sub Integration which would be created via templates. "integration": "A String", # Required. Name of the sub integration which would be created via templates. "integrationDescription": "A String", # Optional. Description of the sub integration which would be created via templates. }, }, } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response for import template "integrationVersion": { # The integration version definition. # IntegrationVersion after the import. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "subIntegrationVersions": [ # Sub integration versions which are imported. { # The integration version definition. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, ], }
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)
Lists all templates matching the filter. Args: parent: string, Required. The client, which owns this collection of Templates. (required) filter: string, Optional. Standard filter field to filter templates. client_id filter won't be supported and will restrict to templates belonging to the current client only. Return all templates of the current client if the filter is empty. Also supports operators like AND, OR, NOT For example, "status=\"ACTIVE\" orderBy: string, Optional. The results would be returned in the order you specified here. pageSize: integer, Optional. The size of the response entries. If unspecified, defaults to 100. The maximum value is 1000; values above 1000 will be coerced to 1000. pageToken: string, Optional. The token returned in the previous response. readMask: string, Optional. The mask which specifies fields that need to be returned in the template's response. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response for a request to list templates "nextPageToken": "A String", # The token used to retrieve the next page results. "templates": [ # List of templates retrieved. { # Defines the template for Application Integration "author": "A String", # Optional. Creator of the template. "categories": [ # Required. Categories associated with the Template. The categories listed below will be utilized for the Template listing. "A String", ], "components": [ # Optional. Components being used in the template. This could be used to categorize and filter. { # Define the components that are present in a template. "name": "A String", # Optional. Name of the component. "type": "A String", # Optional. Type of the component. }, ], "createTime": "A String", # Output only. Auto-generated. "description": "A String", # Optional. Description of the template. The length should not be more than 255 characters "displayName": "A String", # Required. The name of the template "docLink": "A String", # Optional. Link to template documentation. "lastUsedTime": "A String", # Optional. Time the template was last used. "name": "A String", # Identifier. Resource name of the template. "sharedWith": [ # Required. Resource names with which the template is shared for example ProjectNumber/Ord id "A String", ], "tags": [ # Required. Tags which are used to identify templates. These tags could be for business use case, connectors etc. "A String", ], "templateBundle": { # Define the bundle of the template. # Required. Bundle which is part of the templates. The template entities in the bundle would be converted to an actual entity. "integrationVersionTemplate": { # Define the template of IntegrationVersion. # Required. Main integration templates of the template bundle. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, "subIntegrationVersionTemplates": [ # Optional. Sub integration templates which would be added along with main integration. { # Define the template of IntegrationVersion. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, ], }, "updateTime": "A String", # Output only. Auto-generated "usageCount": "A String", # Optional. Number of template usages. "usageInfo": "A String", # Optional. Information on how to use the template. This should contain detailed information about usage of the template. "visibility": "A String", # Required. Visibility of the template. }, ], }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates the template by given id. Args: name: string, Identifier. Resource name of the template. (required) body: object, The request body. The object takes the form of: { # Defines the template for Application Integration "author": "A String", # Optional. Creator of the template. "categories": [ # Required. Categories associated with the Template. The categories listed below will be utilized for the Template listing. "A String", ], "components": [ # Optional. Components being used in the template. This could be used to categorize and filter. { # Define the components that are present in a template. "name": "A String", # Optional. Name of the component. "type": "A String", # Optional. Type of the component. }, ], "createTime": "A String", # Output only. Auto-generated. "description": "A String", # Optional. Description of the template. The length should not be more than 255 characters "displayName": "A String", # Required. The name of the template "docLink": "A String", # Optional. Link to template documentation. "lastUsedTime": "A String", # Optional. Time the template was last used. "name": "A String", # Identifier. Resource name of the template. "sharedWith": [ # Required. Resource names with which the template is shared for example ProjectNumber/Ord id "A String", ], "tags": [ # Required. Tags which are used to identify templates. These tags could be for business use case, connectors etc. "A String", ], "templateBundle": { # Define the bundle of the template. # Required. Bundle which is part of the templates. The template entities in the bundle would be converted to an actual entity. "integrationVersionTemplate": { # Define the template of IntegrationVersion. # Required. Main integration templates of the template bundle. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, "subIntegrationVersionTemplates": [ # Optional. Sub integration templates which would be added along with main integration. { # Define the template of IntegrationVersion. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, ], }, "updateTime": "A String", # Output only. Auto-generated "usageCount": "A String", # Optional. Number of template usages. "usageInfo": "A String", # Optional. Information on how to use the template. This should contain detailed information about usage of the template. "visibility": "A String", # Required. Visibility of the template. } updateMask: string, Required. Field mask specifying the fields in the above template that have been modified and must be updated. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Defines the template for Application Integration "author": "A String", # Optional. Creator of the template. "categories": [ # Required. Categories associated with the Template. The categories listed below will be utilized for the Template listing. "A String", ], "components": [ # Optional. Components being used in the template. This could be used to categorize and filter. { # Define the components that are present in a template. "name": "A String", # Optional. Name of the component. "type": "A String", # Optional. Type of the component. }, ], "createTime": "A String", # Output only. Auto-generated. "description": "A String", # Optional. Description of the template. The length should not be more than 255 characters "displayName": "A String", # Required. The name of the template "docLink": "A String", # Optional. Link to template documentation. "lastUsedTime": "A String", # Optional. Time the template was last used. "name": "A String", # Identifier. Resource name of the template. "sharedWith": [ # Required. Resource names with which the template is shared for example ProjectNumber/Ord id "A String", ], "tags": [ # Required. Tags which are used to identify templates. These tags could be for business use case, connectors etc. "A String", ], "templateBundle": { # Define the bundle of the template. # Required. Bundle which is part of the templates. The template entities in the bundle would be converted to an actual entity. "integrationVersionTemplate": { # Define the template of IntegrationVersion. # Required. Main integration templates of the template bundle. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, "subIntegrationVersionTemplates": [ # Optional. Sub integration templates which would be added along with main integration. { # Define the template of IntegrationVersion. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, ], }, "updateTime": "A String", # Output only. Auto-generated "usageCount": "A String", # Optional. Number of template usages. "usageInfo": "A String", # Optional. Information on how to use the template. This should contain detailed information about usage of the template. "visibility": "A String", # Required. Visibility of the template. }
search(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)
Search templates based on user query and filters. This api would query the templates and return a list of templates based on the user filter. Args: parent: string, Required. The client, which owns this collection of Templates. (required) filter: string, Optional. Standard filter field to filter templates. client_id filter won't be supported and will restrict to templates belonging to the current client only. Return all templates of the current client if the filter is empty. Also supports operators like AND, OR, NOT For example, "status=\"ACTIVE\" orderBy: string, Optional. The results would be returned in the order you specified here. pageSize: integer, Optional. The size of the response entries. If unspecified, defaults to 100. The maximum value is 1000; values above 1000 will be coerced to 1000. pageToken: string, Optional. The token returned in the previous response. readMask: string, Optional. The mask which specifies fields that need to be returned in the template's response. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response for a request to search templates "nextPageToken": "A String", # The token used to retrieve the next page results. "templates": [ # List of templates retrieved. { # Defines the template for Application Integration "author": "A String", # Optional. Creator of the template. "categories": [ # Required. Categories associated with the Template. The categories listed below will be utilized for the Template listing. "A String", ], "components": [ # Optional. Components being used in the template. This could be used to categorize and filter. { # Define the components that are present in a template. "name": "A String", # Optional. Name of the component. "type": "A String", # Optional. Type of the component. }, ], "createTime": "A String", # Output only. Auto-generated. "description": "A String", # Optional. Description of the template. The length should not be more than 255 characters "displayName": "A String", # Required. The name of the template "docLink": "A String", # Optional. Link to template documentation. "lastUsedTime": "A String", # Optional. Time the template was last used. "name": "A String", # Identifier. Resource name of the template. "sharedWith": [ # Required. Resource names with which the template is shared for example ProjectNumber/Ord id "A String", ], "tags": [ # Required. Tags which are used to identify templates. These tags could be for business use case, connectors etc. "A String", ], "templateBundle": { # Define the bundle of the template. # Required. Bundle which is part of the templates. The template entities in the bundle would be converted to an actual entity. "integrationVersionTemplate": { # Define the template of IntegrationVersion. # Required. Main integration templates of the template bundle. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, "subIntegrationVersionTemplates": [ # Optional. Sub integration templates which would be added along with main integration. { # Define the template of IntegrationVersion. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, ], }, "updateTime": "A String", # Output only. Auto-generated "usageCount": "A String", # Optional. Number of template usages. "usageInfo": "A String", # Optional. Information on how to use the template. This should contain detailed information about usage of the template. "visibility": "A String", # Required. Visibility of the template. }, ], }
search_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
share(name, body=None, x__xgafv=None)
Share a template with other clients. Only the template owner can share the templates with other projects. PERMISSION_DENIED would be thrown if the request is not from the owner. Args: name: string, Required. The name that is associated with the Template. (required) body: object, The request body. The object takes the form of: { # Request to Share template "resourceNames": [ # Optional. Project name resources to share the template. The project names is expected in resource format Ex: projects/{project-number} or organization/{org-id} "A String", ], } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } }
unshare(name, body=None, x__xgafv=None)
Unshare a template from given clients. Owner of the template can unshare template with clients. Shared client can only unshare the template from itself. PERMISSION_DENIED would be thrown if request is not from owner or for unsharing itself. Args: name: string, Required. The name that is associated with the Template. (required) body: object, The request body. The object takes the form of: { # Request to Unshare template "resourceNames": [ # Optional. Project name resources to unshare the template. The project names is expected in resource format Ex: projects/{project-number} "A String", ], } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } }
upload(parent, body=None, x__xgafv=None)
Uploads a template. The content can be a previously downloaded template. Performs the same function as CreateTemplate, but accepts input in a string format, which holds the complete representation of the Template content. Args: parent: string, Required. The template to upload. Format: projects/{project}/locations/{location} (required) body: object, The request body. The object takes the form of: { # Request for UploadTemplate. "content": "A String", # Required. The textproto of the template. "fileFormat": "A String", # Required. File format for upload request. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response for UploadTemplate. "template": { # Defines the template for Application Integration # The uploaded Template "author": "A String", # Optional. Creator of the template. "categories": [ # Required. Categories associated with the Template. The categories listed below will be utilized for the Template listing. "A String", ], "components": [ # Optional. Components being used in the template. This could be used to categorize and filter. { # Define the components that are present in a template. "name": "A String", # Optional. Name of the component. "type": "A String", # Optional. Type of the component. }, ], "createTime": "A String", # Output only. Auto-generated. "description": "A String", # Optional. Description of the template. The length should not be more than 255 characters "displayName": "A String", # Required. The name of the template "docLink": "A String", # Optional. Link to template documentation. "lastUsedTime": "A String", # Optional. Time the template was last used. "name": "A String", # Identifier. Resource name of the template. "sharedWith": [ # Required. Resource names with which the template is shared for example ProjectNumber/Ord id "A String", ], "tags": [ # Required. Tags which are used to identify templates. These tags could be for business use case, connectors etc. "A String", ], "templateBundle": { # Define the bundle of the template. # Required. Bundle which is part of the templates. The template entities in the bundle would be converted to an actual entity. "integrationVersionTemplate": { # Define the template of IntegrationVersion. # Required. Main integration templates of the template bundle. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, "subIntegrationVersionTemplates": [ # Optional. Sub integration templates which would be added along with main integration. { # Define the template of IntegrationVersion. "integrationVersion": { # The integration version definition. # Required. Templatized version of integration. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "key": "A String", # Required. Unique Key of the IntegrationVersion. }, ], }, "updateTime": "A String", # Output only. Auto-generated "usageCount": "A String", # Optional. Number of template usages. "usageInfo": "A String", # Optional. Information on how to use the template. This should contain detailed information about usage of the template. "visibility": "A String", # Required. Visibility of the template. }, }
use(name, body=None, x__xgafv=None)
Use the template to create integration. This api would keep track of usage_count and last_used_time. PERMISSION_DENIED would be thrown if template is not accessible by client. Args: name: string, Required. The name that is associated with the Template. (required) body: object, The request body. The object takes the form of: { # Request to Use template "integrationDetails": { # Sub Integration which would be created via templates. # Required. Integration details which would be created via templates. "integration": "A String", # Required. Name of the sub integration which would be created via templates. "integrationDescription": "A String", # Optional. Description of the sub integration which would be created via templates. }, "integrationRegion": "A String", # Required. The region of the Integration to be created. "subIntegrations": { # Optional. Sub Integration which would be created via templates. "a_key": { # Sub Integration which would be created via templates. "integration": "A String", # Required. Name of the sub integration which would be created via templates. "integrationDescription": "A String", # Optional. Description of the sub integration which would be created via templates. }, }, } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response for use template "integrationVersion": { # The integration version definition. # IntegrationVersion which is created. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, "subIntegrationVersions": [ # Sub integration versions which are created. { # The integration version definition. "cloudLoggingDetails": { # Cloud Logging details for execution info # Optional. Cloud Logging details for the integration version "cloudLoggingSeverity": "A String", # Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. "enableCloudLogging": True or False, # Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. }, "createTime": "A String", # Output only. Auto-generated. "createdFromTemplate": "A String", # Optional. Optional. The resource name of the template from which the integration is created. "databasePersistencePolicy": "A String", # Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. "description": "A String", # Optional. The integration description. "enableVariableMasking": True or False, # Optional. True if variable masking feature should be turned on for this version "errorCatcherConfigs": [ # Optional. Error Catch Task configuration for the integration. It's optional. { # Configuration detail of a error catch task "description": "A String", # Optional. User-provided description intended to give more business context about the error catcher config. "errorCatcherId": "A String", # Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow "errorCatcherNumber": "A String", # Required. A number to uniquely identify each error catcher config within the workflow on UI. "label": "A String", # Optional. The user created label for a particular error catcher. Optional. "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "startErrorTasks": [ # Required. The set of start tasks that are to be executed for the error catch flow { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], }, ], "integrationConfigParameters": [ # Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. { # Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. "parameter": { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. # Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, ], "integrationParameters": [ # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # Type of the parameter. "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, "description": "A String", # Optional. Description of the parameter. "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "inputOutputType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "searchable": True or False, # Searchable in the execution log or not. }, ], "integrationParametersInternal": { # LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. # Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. "parameters": [ # Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. { "attributes": { # Attributes are additional options that can be associated with each event property. For more information, see # Metadata information about the parameters. "dataType": "A String", # Things like URL, Email, Currency, Timestamp (rather than string, int64...) "defaultValue": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Used to define defaults. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, "isRequired": True or False, # Required for event execution. The validation will be done by the event bus when the event is triggered. "isSearchable": True or False, # Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. "logSettings": { # The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. # See "logFieldName": "A String", # The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. "seedPeriod": "A String", "seedScope": "A String", }, "masked": True or False, # True if this workflow parameter should be masked in the logs "readOnly": True or False, # Used to indicate if the ParameterEntry is a read only field or not. "searchable": "A String", "taskVisibility": [ # List of tasks that can view this property, if empty then all. "A String", ], }, "children": [ # Child parameters nested within this parameter. This field only applies to protobuf parameters # Object with schema name: EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry ], "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "description": "A String", # Optional. The description about the parameter "inOutType": "A String", # Specifies the input/output type for the parameter. "isTransient": True or False, # Whether this parameter is a transient parameter. "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "name": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". "producedBy": { # Represents a node identifier (type + id). Next highest id: 3 # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. "elementIdentifier": "A String", # Configuration of the edge. "elementType": "A String", # Destination node where the edge ends. It can only be a task config. }, "producer": "A String", "protoDefName": "A String", # The name of the protobuf type if the parameter has a protobuf data type. "protoDefPath": "A String", # If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". "required": True or False, }, ], }, "lastModifierEmail": "A String", # Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "lockHolder": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. "name": "A String", # Output only. Auto-generated primary key. "origin": "A String", # Optional. The origin that indicates where this integration is coming from. "parentTemplateId": "A String", # Optional. The id of the template which was used to create this integration_version. "runAsServiceAccount": "A String", # Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. "snapshotNumber": "A String", # Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. "state": "A String", # Output only. User should not set it as an input. "status": "A String", # Output only. Generated by eventbus. User should not set it as an input. "taskConfigs": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "conditionalFailurePolicies": { # Conditional task failur retry strategies # Optional. The list of conditional failure policies that will be applied to the task in order. "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches. "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "displayName": "A String", # Optional. User-provided label that is attached to this TaskConfig in the UI. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", # Optional. External task type of the task "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "jsonValidationOption": "A String", # Optional. If set, overrides the option configured in the Task implementation class. "nextTasks": [ # Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # Optional. The policy dictating the execution of the next set of tasks for the current task. "parameters": { # Optional. The customized parameters the user can pass to this task. "a_key": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { # This message only contains a field of boolean array. # Boolean Array. "booleanValues": [ # Boolean array. True or False, ], }, "booleanValue": True or False, # Boolean. "doubleArray": { # This message only contains a field of double number array. # Double Number Array. "doubleValues": [ # Double number array. 3.14, ], }, "doubleValue": 3.14, # Double Number. "intArray": { # This message only contains a field of integer array. # Integer Array. "intValues": [ # Integer array. "A String", ], }, "intValue": "A String", # Integer. "jsonValue": "A String", # Json. "stringArray": { # This message only contains a field of string array. # String Array. "stringValues": [ # String array. "A String", ], }, "stringValue": "A String", # String. }, }, }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Optional. Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "condition": "A String", # Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. "intervalTime": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. "maxRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "task": "A String", # Optional. The name for the task. "taskExecutionStrategy": "A String", # Optional. The policy dictating the execution strategy of this task. "taskId": "A String", # Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). "taskTemplate": "A String", # Optional. Used to define task-template name if task is of type task-template }, ], "taskConfigsInternal": [ # Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. { # The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. "alertConfigs": [ # Alert configurations on error rate, warning rate, number of runs, durations, etc. { # Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. "clientId": "A String", # Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. "durationThresholdMs": "A String", # Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # Only count final task attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "conditionalFailurePolicies": { # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "defaultFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # The default failure policy to be applied if no conditional failure policy matches "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "failurePolicies": [ # The list of failure policies that will be applied to the task in order. { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, ], }, "createTime": "A String", # Auto-generated. "creatorEmail": "A String", # The creator's email address. Auto-generated from the user's email. "description": "A String", # User-provided description intended to give more business context about the task. "disableStrictTypeValidation": True or False, # If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "externalTaskType": "A String", "failurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "incomingEdgeCount": 42, # The number of edges leading into this TaskConfig. "jsonValidationOption": "A String", # If set, overrides the option configured in the Task implementation class. "label": "A String", # User-provided label that is attached to this TaskConfig in the UI. "lastModifiedTime": "A String", # Auto-generated. "nextTasks": [ # The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "nextTasksExecutionPolicy": "A String", # The policy dictating the execution of the next set of tasks for the current task. "parameters": { # The customized parameters the user can pass to this task. "a_key": { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, }, "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this task config on the UI. "x": 42, "y": 42, }, "precondition": "A String", # Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. "preconditionLabel": "A String", # Optional. User-provided label that is attached to precondition in the UI. "rollbackStrategy": { # Next available id: 4 # Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. The customized parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. { # Key-value pair of EventBus parameters. "dataType": "A String", # Explicitly getting the type of the parameter. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "rollbackTaskImplementationClassName": "A String", # Required. This is the name of the task that needs to be executed upon rollback of this task. "taskNumbersToRollback": [ # Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. "A String", ], }, "successPolicy": { # Policy that dictates the behavior for the task after it completes successfully. # Determines what action to take upon successful task completion. "finalState": "A String", # State to which the execution snapshot status will be set if the task succeeds. }, "synchronousCallFailurePolicy": { # Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). # Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). "intervalInSeconds": "A String", # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. "maxNumRetries": 42, # Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. "retryCondition": "A String", # Optional. The retry condition that will be evaluated for this failure policy with the corresponding retry strategy. "retryStrategy": "A String", # Defines what happens to the task upon failure. }, "taskEntity": { # Contains a task's metadata and associated information. Next available id: 7 # Copy of the task entity that this task config is an instance of. "disabledForVpcSc": True or False, # True if the task has conflict with vpcsc "metadata": { # TaskMetadata are attributes that are associated to every common Task we have. # Metadata inclueds the task name, author and so on. "activeTaskName": "A String", # The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. "admins": [ { # Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. "googleGroupEmail": "A String", "userEmail": "A String", }, ], "category": "A String", "codeSearchLink": "A String", # The Code Search link to the Task Java file. "defaultJsonValidationOption": "A String", # Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. "defaultSpec": "A String", # Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. "description": "A String", # In a few sentences, describe the purpose and usage of the task. "descriptiveName": "A String", # The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") "docMarkdown": "A String", # Snippet of markdown documentation to embed in the RHP for this task. "externalCategory": "A String", "externalCategorySequence": 42, # Sequence with which the task in specific category to be displayed in task discovery panel for external users. "externalDocHtml": "A String", # External-facing documention embedded in the RHP for this task. "externalDocLink": "A String", # Doc link for external-facing documentation (separate from g3doc). "externalDocMarkdown": "A String", # DEPRECATED: Use external_doc_html. "g3DocLink": "A String", # URL to the associated G3 Doc for the task if available "iconLink": "A String", # URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. "isDeprecated": True or False, # The deprecation status of the current task. Default value is false; "name": "A String", # The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. "standaloneExternalDocHtml": "A String", # External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html "status": "A String", # Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. "system": "A String", "tags": [ # A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. "A String", ], }, "paramSpecs": { # Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. "parameters": [ { # Key-value pair of EventBus task parameters. Next id: 13 "className": "A String", # The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. "collectionElementClassName": "A String", # If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. "config": { # Optional fields, such as help text and other useful info. "descriptivePhrase": "A String", # A short phrase to describe what this parameter contains. "helpText": "A String", # Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. "hideDefaultValue": True or False, # Whether the default value is hidden in the UI. "inputDisplayOption": "A String", "isHidden": True or False, # Whether this field is hidden in the UI. "label": "A String", # A user-friendly label for the parameter. "parameterNameOption": "A String", "subSectionLabel": "A String", # A user-friendly label for subSection under which the parameter will be displayed. "uiPlaceholderText": "A String", # Placeholder text which will appear in the UI input form for this parameter. }, "dataType": "A String", # The data type of the parameter. "defaultValue": { # To support various types of parameter values. Next available id: 14 # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "jsonValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, "isDeprecated": True or False, # If set, this entry is deprecated, so further use of this parameter should be prohibited. "isOutput": True or False, "jsonSchema": "A String", # If the data_type is JSON_VALUE, then this will define its schema. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. "protoDef": { # Populated if this represents a proto or proto array. "fullName": "A String", # The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". "path": "A String", # Path to the proto file that contains the message type's definition. }, "required": True or False, # If set, the user must provide an input value for this parameter. "validationRule": { # Rule used to validate inputs (individual values and collection elements) for this parameter. "doubleRange": { # Range used to validate doubles and floats. "max": 3.14, # The inclusive maximum of the acceptable range. "min": 3.14, # The inclusive minimum of the acceptable range. }, "intRange": { # Range used to validate longs and ints. "max": "A String", # The inclusive maximum of the acceptable range. "min": "A String", # The inclusive minimum of the acceptable range. }, "stringRegex": { # Rule used to validate strings. "exclusive": True or False, # Whether the regex matcher is applied exclusively (if true, matching values will be rejected). "regex": "A String", # The regex applied to the input value(s). }, }, }, ], }, "stats": { # Stats for the requested dimensions: QPS, duration, and error/warning rate # Deprecated - statistics from the Monarch query. "dimensions": { # Dimensions that these stats have been aggregated on. "clientId": "A String", "enumFilterType": "A String", # Whether to include or exclude the enums matching the regex. "errorEnumString": "A String", "retryAttempt": "A String", "taskName": "A String", "taskNumber": "A String", "triggerId": "A String", # Stats have been or will be aggregated on set fields for any semantically-meaningful combination. "warningEnumString": "A String", "workflowId": "A String", "workflowName": "A String", }, "durationInSeconds": 3.14, # Average duration in seconds. "errorRate": 3.14, # Average error rate. "qps": 3.14, # Queries per second. "warningRate": 3.14, # Average warning rate. }, "taskType": "A String", # Defines the type of the task "uiConfig": { # Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: # UI configuration for this task Also associated with the METADATA mask. "taskUiModuleConfigs": [ # Configurations of included config modules. { # Task author would use this type to configure a config module. "moduleId": "A String", # ID of the config module. }, ], }, }, "taskExecutionStrategy": "A String", # The policy dictating the execution strategy of this task. "taskName": "A String", # The name for the task. "taskNumber": "A String", # REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). "taskSpec": "A String", # A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. "taskTemplateName": "A String", # Used to define task-template name if task is of type task-template "taskType": "A String", # Defines the type of the task }, ], "teardown": { # Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. "teardownTaskConfigs": [ # Required. { "creatorEmail": "A String", # The creator's email address. "name": "A String", # Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. "nextTeardownTask": { # The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). "name": "A String", # Required. Name of the next teardown task. }, "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # The parameters the user can pass to this task. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "properties": { # LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. "properties": [ # An unordered list of property entries. { # Key-value pair of EventBus property. "key": "A String", # Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "teardownTaskImplementationClassName": "A String", # Required. Implementation class name. }, ], }, "triggerConfigs": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. "alertConfig": [ # Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertThreshold": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "disableAlert": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. "displayName": "A String", # Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. "durationThreshold": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "metricType": "A String", # The type of metric. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", # Absolute value threshold. "percentage": 42, # Percentage threshold. }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration # Optional. Cloud Scheduler Trigger related metadata "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # Optional. User-provided description intended to give additional business context about the task. "errorCatcherId": "A String", # Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # Optional. The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Optional. Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "position": { # Configuration detail of coordinate, it used for UI # Optional. Informs the front-end application where to draw this error catcher config on the UI. "x": 42, # Required. X axis of the coordinate "y": 42, # Required. Y axis of the coordinate }, "properties": { # Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. "a_key": "A String", }, "startTasks": [ # Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give additional business context about the task. "displayName": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskId": "A String", # Task number of the next task. }, ], "trigger": "A String", # Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. "triggerId": "A String", # Optional. Auto-generated trigger ID. The ID is based on the properties that you define in the trigger config. For example, for an API trigger, the trigger ID follows the format: api_trigger/TRIGGER_NAME Where trigger config has properties with value {"Trigger name": TRIGGER_NAME} "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the integration on UI. "triggerType": "A String", # Optional. Type of trigger }, ], "triggerConfigsInternal": [ # Optional. Trigger configurations. { # Configuration detail of a trigger. Next available id: 22 "alertConfig": [ # An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. { # Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. "aggregationPeriod": "A String", # For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. "alertDisabled": True or False, # Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. "alertName": "A String", # A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. "clientId": "A String", # Client associated with this alert configuration. "durationThresholdMs": "A String", # Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. "errorEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, "metricType": "A String", "numAggregationPeriods": 42, # For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. "onlyFinalAttempt": True or False, # For either events or tasks, depending on the type of alert, count only final attempts, not retries. "playbookUrl": "A String", # Link to a playbook for resolving the issue that triggered this alert. "thresholdType": "A String", # The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. "thresholdValue": { # The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. # The metric value, above or below which the alert should be triggered. "absolute": "A String", "percentage": 42, }, "warningEnumList": { # List of error enums for alerts. "enumStrings": [ "A String", ], "filterType": "A String", }, }, ], "cloudSchedulerConfig": { # Cloud Scheduler Trigger configuration "cronTab": "A String", # Required. The cron tab of cloud scheduler trigger. "errorMessage": "A String", # Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations "location": "A String", # Required. The location where associated cloud scheduler job will be created "serviceAccountEmail": "A String", # Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time }, "description": "A String", # User-provided description intended to give more business context about the task. "enabledClients": [ # Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. "A String", ], "errorCatcherId": "A String", # Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task "inputVariables": { # Variables names mapped to api trigger. # Optional. List of input variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "label": "A String", # The user created label for a particular trigger. "nextTasksExecutionPolicy": "A String", # Dictates how next tasks will be executed. "outputVariables": { # Variables names mapped to api trigger. # Optional. List of output variables for the api trigger. "names": [ # Optional. List of variable names. "A String", ], }, "pauseWorkflowExecutions": True or False, # Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. "position": { # Represents two-dimensional positions. # Optional. Informs the front-end application where to draw this trigger config on the UI. "x": 42, "y": 42, }, "properties": { # Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. "a_key": "A String", }, "startTasks": [ # Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). { # The task that is next in line to be executed, if the condition specified evaluated to true. "combinedConditions": [ # Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` { # This message recursively combines constituent conditions using logical AND. "conditions": [ # A set of individual constituent conditions. { # Condition that uses `operator` to evaluate the key against the value. "eventPropertyKey": "A String", # Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. "operator": "A String", # Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. "value": { # Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. # Value that's checked for the key. "booleanValue": True or False, "doubleArray": { "values": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "values": [ "A String", ], }, "intValue": "A String", "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "stringArray": { "values": [ "A String", ], }, "stringValue": "A String", }, }, ], }, ], "condition": "A String", # Standard filter expression for this task to become an eligible next task. "description": "A String", # User-provided description intended to give more business context about the next task edge or condition. "label": "A String", # User-provided label that is attached to this edge in the UI. "taskConfigId": "A String", # ID of the next task. "taskNumber": "A String", # Task number of the next task. }, ], "triggerCriteria": { # Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. "condition": "A String", # Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. "parameters": { # LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see # Optional. To be used in TaskConfig for the implementation class. "parameters": [ # Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. { # Key-value pair of EventBus parameters. "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. "masked": True or False, # True if this parameter should be masked in the logs "value": { # LINT.IfChange To support various types of parameter values. Next available id: 14 # Values for the defined keys. Each value can either be string, int, double or any proto message. "booleanArray": { "booleanValues": [ True or False, ], }, "booleanValue": True or False, "doubleArray": { "doubleValues": [ 3.14, ], }, "doubleValue": 3.14, "intArray": { "intValues": [ "A String", ], }, "intValue": "A String", "protoArray": { "protoValues": [ { "a_key": "", # Properties of the object. Contains field @type with type URL. }, ], }, "protoValue": { "a_key": "", # Properties of the object. Contains field @type with type URL. }, "serializedObjectValue": { "objectValue": "A String", }, "stringArray": { "stringValues": [ "A String", ], }, "stringValue": "A String", }, }, ], }, "triggerCriteriaTaskImplementationClassName": "A String", # Optional. Implementation class name. The class should implement the “TypedTask” interface. }, "triggerId": "A String", # The backend trigger ID. "triggerName": "A String", # Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. "triggerNumber": "A String", # Required. A number to uniquely identify each trigger config within the workflow on UI. "triggerType": "A String", }, ], "updateTime": "A String", # Output only. Auto-generated. "userLabel": "A String", # Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. }, ], }