Flow related data objects

flow

A flow

Items:

Name Type Doc Constraints
id string the id of the flow [null]
name string the name of the flow [not null]
owner string the UID of the flow owner
isPublic bool public state flag
config flowConfig the configuration of the flow [not null]
peer controlPeer the controlPeer running the flow
running bool the flow's run state

flowConfig

A flowConfig

Items:

Name Type Doc Constraints
id string the id of the flow config [null]
name string the name of the flow [not null]
bricks list of brick a list of bricks used in the flow [not null]
connections list of connection a list of connections between the bricks [not null]
autoscaleQueueLevel integer Output queue level (number of data packets) that triggers autoscaling
autoscaleMaxInstances integer Maximum number of instances for autoscaling
exitAfterIdleSeconds integer Idle time after which automatic teardown is triggered

controlPeer

The control peer running the flow (set by the Grid Manager)

Items:

Name Type Doc Constraints
address string IP address of the control peer
state int State of the control peer (0 registered, 1 active)

brick

A brick

Items:

Name Type Doc Constraints
id string id of the brick type (see availabe brick) [not null]
instanceID string id of the brick instance [not null]
family string brick family [not null]
name string brick name [not null]
parameters list of parameter parameters of the brick
autoscaleQueueLevel integer Output queue level that triggers autoscaling
autoscaleMaxInstances integer Maximum number of instances for autoscaling
exitAfterIdleSeconds integer Idle time after which automatic teardown is triggered
location location relative location on the canvas in the UI
portsdescription portsdescription short description of the ports [not null]
inputPorts list of port input ports
outputPorts list of port output ports

portsdescription

Description of brick ports

Items:

Name Type Doc Constraints
schemaFile string file name of file with UJOschema port description
input map input port names: datatype Names
output map input port names: datatype Names

port

A brick ports

Items:

Name Type Doc Constraints
schema string UJOschema port description
name string port name
typeName string port type name in UJOSchema
BinarySchema bytes binary representation of schema

parameter

Brick parameters

Items:

Name Type Doc Constraints
key string parameter key [not null]
value string parameter value
type string data type of the parameter

location

Relative location of a brick in x/y direction.

Items:

Name Type Doc Constraints
x float64 Relative location on Canvas x-direction [not null, in [0, 1]]
y float64 Relative location on Canvas y-direction [not null, in [0, 1]]

connection

Connection between bricks in a flow

Items:

Name Type Doc Constraints
source string source brick [not null]
target string target brick [not null]
ports list of port source and target ports used to connect [not null]

port

Source and target port identification for a connection

Items:

Name Type Doc Constraints
source string source port identification [not null]
target string target port identification [not null]