InfluxDB PHP Client
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
InfluxDB2\DefaultApi Class Reference
Inheritance diagram for InfluxDB2\DefaultApi:
InfluxDB2\HealthApi InfluxDB2\InvokableScriptsApi InfluxDB2\QueryApi InfluxDB2\WriteApi

Public Member Functions

 __construct (array $options)
 
 post ($payload, $uriPath, $queryParams, $timeout=null, bool $stream=false)
 
 get ($payload, $uriPath, $queryParams, $timeout=null)
 

Static Public Member Functions

static log (string $level, string $message, array $options)
 

Public Attributes

const DEFAULT_TIMEOUT = 10
 
 $options
 
 $http
 

Protected Member Functions

 check ($key, $value)
 

Constructor & Destructor Documentation

◆ __construct()

InfluxDB2\DefaultApi::__construct ( array  $options)

DefaultApi constructor.

Parameters
array$options

Reimplemented in InfluxDB2\HealthApi, and InfluxDB2\QueryApi.

Member Function Documentation

◆ log()

static InfluxDB2\DefaultApi::log ( string  $level,
string  $message,
array  $options 
)
static

Log the message with required severity.

Parameters
string$levelLOG level
string$messageMessage to log
array$optionsClient options with logFile.
Returns
void

◆ post()

InfluxDB2\DefaultApi::post (   $payload,
  $uriPath,
  $queryParams,
  $timeout = null,
bool  $stream = false 
)
Parameters
$payload
$uriPath
$queryParams
int$timeout- Float describing the timeout of the request in seconds. Use 0 to wait indefinitely (the default behavior).
bool$stream- use streaming
Returns
ResponseInterface

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