Automation Execution Nodes

Show Automation Run Node

SDK Method

automationrun.FindNode()

Return Object

AutomationExecutionNode

Authorization Requirement

Available to all authenticated keys or sessions.

AutomationRunFindNodeParams Fields

FieldDescription
Id
int64
Required
Automation Run ID.
NodeId
string
Required
Node ID from the pinned Automation definition.

Example Request

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    automation_run "github.com/Files-com/files-sdk-go/v3/automationrun"
)

automationExecutionNode, err := automation_run.FindNode(files_sdk.AutomationRunFindNodeParams{
  Id: 1,
  NodeId: "node_id"
})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

The AutomationExecutionNode Object

Some of the methods above return a AutomationExecutionNode object. The attributes of this object are listed below.

AttributeDescription
NodeId
string
Node ID from the pinned Automation definition.
NodeType
string
Node type.
Status
string
Node status.
RunStage
string
Current node execution stage.
Reused
boolean
Whether this node reused persisted output from an earlier run.
SuccessfulOperations
int64
Count of successful operations in this node.
FailedOperations
int64
Count of failed operations in this node.
StartedAt
date-time
When this node started.
CompletedAt
date-time
When this node completed.
DurationMs
int64
Node runtime in milliseconds.
Inputs
array(object)
Ordered inbound edge references.
Outputs
object
Output counts, item kinds, and typed-error summaries by outlet.
InputItems
object
Materialized input items currently available, grouped by inlet.
OutputItems
object
Materialized output items grouped by outlet.