Skip to content

How It Works

The Double Agent Connector runs inside the Seeq Agent, on the agent's host. It answers requests from Seeq with work done there, by installed plugins. This page explains the moving parts and what you see in Seeq.

The parts

Part Where it lives What it does
Seeq server Wherever your Seeq runs Where people work; where requests are made and results appear
Seeq Agent Inside the protected network Already connects out to the Seeq server; hosts the connector
Double Agent Connector In the Seeq Agent Receives each request, reads what it needs from Seeq, runs the selected action, returns the result
Plugins A folder on the agent's host, or built into the connector Provide the actions: the work itself. See Plugins
License A file on the agent's host Sets how many datasources and how many plugins the connector may use

A request, step by step

  1. A request is created in Seeq as a signal or a condition belonging to the connector's datasource. Its definition carries the request: which Seeq item to work on, which action to run, and that action's parameters. Today requests are set up from a Seeq Data Lab notebook; a form in Seeq Workbench, as a Seeq add-on, is a planned option for end users.
  2. Someone views it, on a trend or in a calculation. Seeq asks the connector for its data, over the agent's existing connection.
  3. The connector reads what the request needs from Seeq, at that moment, through the agent's own Seeq session: the item's properties and, where the action needs them, a signal's samples or a condition's capsules.
  4. The selected action runs on the agent's host, from a plugin, within a time limit.
  5. The answer comes back to Seeq, by the kind of action:
Action Selected by Comes back as
Signal action a signal samples, shown like any other signal
Condition action a condition capsules: the periods that match its rules, each with its own properties. One still in progress is open, and Seeq keeps asking until it ends
Work action a condition work done on the agent's side (a file written, a report produced, another system told), with no data of its own. Each run comes back as a capsule: when it ran, how long it took, whether it succeeded, and what it did

If the request says where its result belongs, the connector files the item in an asset tree under the connector's own root asset.

If something fails, Seeq shows a plain sentence saying what went wrong, for example that an action is not installed, that it is the wrong kind of action for the item, or that a parameter is not valid.

What to expect in Seeq

  • Results are computed on request, and each action decides what Seeq caches. Seeq caches what a connector reports as final and asks again for the rest. An action whose result is final once computed is cached; one whose result keeps changing is asked for again on every view; one whose recent results can still change is cached up to a period before now. An operator can make everything on a connection uncertain, so nothing is cached. How Seeq handles this: Certainty and Caching in Seeq.
  • Changes in Seeq show on the next request. The connector reads context at request time: after changing a property, view a range Seeq does not hold yet, or refresh a result that is not cached.
  • Work runs when the connector decides. A view that includes now can start a run, at most once per minimum interval for each item; a view of the past only shows the runs already made. Seeq decides when it asks, so the connector, not the request, decides when work runs.
  • The asset tree follows the requests. When a request moves its result to another place in the tree, the connector moves it there and tidies up the branch it left. It never removes or rewrites the signals and conditions people created.

Security and control

  • Outbound only. The connector uses the Seeq Agent's existing outbound connection. Nothing new listens for connections on the agent's host.
  • Rules-based work only. A request can only select an action a plugin on the agent provides, of the right kind for the item. The plugins, and so what can run, are decided on the agent's side.
  • Every work run is recorded on the agent's host and in the agent's log: what ran, for whom (as claimed), when, and how it went. The connector gives each work action its own folder on that host to write to; a plugin is not sandboxed, so what it may reach is decided when it is built and installed.
  • Requests are untrusted input. Everything in a request is written by whoever created the item. The connector bounds and escapes what it logs, and each action validates its parameters.
  • The requester is not yet verified. Seeq does not tell a connector who is viewing an item, so the requester named in a request is a claim, recorded as such. Limiting which items a connection serves, verifying who asked, and who may start work are designed per deployment.
  • Plugins run inside the agent's process, with a time limit on each request. Install only plugins you trust.
  • Licensed per host, offline: the license file is bound to the agent's host.

What it needs

  • A Seeq Agent inside the network, at or above the connector's supported Seeq version.
  • The connector and its plugins on the agent's host, and a license file for that host.
  • No inbound firewall change.