Pipe: Basic Concepts
Description
Pipe is an element that performs one action. For example, the log pipe writes a log, and the http_request pipe executes an http request. A pipe has an entrance and may have several exits. Exits are not required. If the pipeline does not have them, then the event will exit the pipeline.
Each pipe in the pipeline is an array of workers, the number of which is configured in the configuration file in the PIPE_WORKER_SIZE parameter.
General structure
| Field | Example | Required | Description | | ------ | ---------- | -------- | ------------------------- | ------ | --- | --- | ------------------------------ | | id | 5 | yes | Id of a pipe. It's output | | type | "log" | yes | A type of a pipe | | params | | no | | params | | no | Specific parameters for a type | | | | outs | OutsObject | no | Outputs of a pipe |
| OutsObject | |||
|---|---|---|---|
| Field | Example | Required | Description |
| success | 3 | no | Output of a pipe if there is no mistake |
| error | 4 | no | Output of a pipe if there is a mistake |
Template language
Fields with this label support templating . The templating language is described in this article.