dynamic
A special broker type where the inputs are identified by unique labels and can be created, changed and removed during runtime via a REST HTTP interface.
# Config fields, showing default values
input:
label: ""
dynamic:
inputs: {}
prefix: ""
Fields
inputs
A map of inputs to statically create.
Type: object
Default: {}
prefix
A path prefix for HTTP endpoints that are registered.
Type: string
Default: ""
Examples
- Dynamic Input with stdin & file
Demonstrates a dynamic input composed of a stdin and a file input, identified by 'stdin_input_id' and 'file_input_id'.
input:
dynamic:
inputs:
file_input_id:
file:
paths:
- ./foo/bar.baz
stdin_input_id:
stdin: {}
Endpoints
GET /inputs
Returns a JSON object detailing all dynamic inputs, providing information such as their current uptime and configuration.
GET /inputs/{id}
Returns the configuration of an input.
POST /inputs/{id}
Creates or updates an input with a configuration provided in the request body (in YAML or JSON format).
DELETE /inputs/{id}
Stops and removes an input.
GET /inputs/{id}/uptime
Returns the uptime of an input as a duration string (of the form "72h3m0.5s"), or "stopped" in the case where the input has gracefully terminated.