![]() |
TSDuck v3.43-4480
MPEG Transport Stream Toolkit
|
Command line arguments for InfluxDB connection. More...
#include <tsInfluxArgs.h>

Public Member Functions | |
| InfluxArgs (bool use_prefix=false, bool use_short_options=false) | |
| Constructor. | |
| void | defineArgs (Args &args) |
| Add command line option definitions in an Args. | |
| bool | loadArgs (Args &args, bool required) |
| Load arguments from command line. | |
Public Attributes | |
| UStringVector | additional_tags {} |
| --tag | |
| UString | bucket {} |
| --bucket (-b) [INFLUX_BUCKET_NAME] | |
| UString | bucket_id {} |
| --bucket-id [INFLUX_BUCKET_ID] | |
| fs::path | config_file {} |
| --configs-path [INFLUX_CONFIGS_PATH] | |
| UString | config_name {} |
| --active-config (-c) [INFLUX_ACTIVE_CONFIG] | |
| UString | host_url {} |
| --host-url (-h) [INFLUX_HOST], URL or host name | |
| UString | org {} |
| --org (-o) [INFLUX_ORG] | |
| UString | org_id {} |
| --org-id [INFLUX_ORG_ID] | |
| size_t | queue_size = DEFAULT_QUEUE_SIZE |
| --queue-size | |
| UString | token {} |
| --token (-t) [INFLUX_TOKEN] | |
Static Public Attributes | |
| static constexpr size_t | DEFAULT_QUEUE_SIZE = 10 |
| Default maximum queued metrics messages. | |
Command line arguments for InfluxDB connection.
Same options and resolution of defaults as InfluxDB CLI.
| ts::InfluxArgs::InfluxArgs | ( | bool | use_prefix = false, |
| bool | use_short_options = false |
||
| ) |
Constructor.
| [in] | use_prefix | Use a prefix for all long options (e.g. '–influx-token' for '–token'). |
| [in] | use_short_options | Define short options (eg.g. '-t' for '–token'). |
| void ts::InfluxArgs::defineArgs | ( | Args & | args | ) |
Add command line option definitions in an Args.
| [in,out] | args | Command line arguments to update. |
| bool ts::InfluxArgs::loadArgs | ( | Args & | args, |
| bool | required | ||
| ) |
Load arguments from command line.
Apply defaults from environment variables and Influx configurations file. Args error indicator is set in case of incorrect arguments.
| [in,out] | args | Command line arguments. |
| [in] | required | If true, all arguments to connect to InfluuxDB are required. When false, the arguments are optional. |