TSDuck v3.43-4441
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::InfluxArgs Class Reference

Command line arguments for InfluxDB connection. More...

#include <tsInfluxArgs.h>

Collaboration diagram for ts::InfluxArgs:

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]
 

Detailed Description

Command line arguments for InfluxDB connection.

Same options and resolution of defaults as InfluxDB CLI.

See also
https://docs.influxdata.com/influxdb/v2/reference/cli/influx/

Member Function Documentation

◆ defineArgs()

void ts::InfluxArgs::defineArgs ( Args args)

Add command line option definitions in an Args.

Parameters
[in,out]argsCommand line arguments to update.

◆ loadArgs()

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.

Parameters
[in,out]argsCommand line arguments.
[in]requiredIf true, all arguments to connect to InfluuxDB are required. When false, the arguments are optional.
Returns
True on success, false on error in argument line.

The documentation for this class was generated from the following file: