![]() |
TSDuck v3.43-4441
MPEG Transport Stream Toolkit
|
Command line arguments for InfluxDB connection. More...
#include <tsInfluxArgs.h>
Public Member Functions | |
InfluxArgs ()=default | |
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 | |
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] | |
UString | token {} |
--token (-t) [INFLUX_TOKEN] | |
Command line arguments for InfluxDB connection.
Same options and resolution of defaults as InfluxDB CLI.
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. |