InfluxDB PHP Client
Loading...
Searching...
No Matches
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)
 
 get ($payload, $uriPath, $queryParams)
 
 configuredClient (ClientInterface $client)
 
 createRequest (string $method, string $uriPath, string $payload, array $headers, array $queryParams)
 
 sendRequest (RequestInterface $request)
 

Static Public Member Functions

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

Public Attributes

 $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

◆ configuredClient()

InfluxDB2\DefaultApi::configuredClient ( ClientInterface $client)

Configure client with defaults - UserAgent, Token, Redirects...

Parameters
ClientInterface$clientto configure
Returns
ClientInterface

◆ createRequest()

InfluxDB2\DefaultApi::createRequest ( string $method,
string $uriPath,
string $payload,
array $headers,
array $queryParams )

Create HTTP request.

Parameters
string$methodThe HTTP method associated with the request.
string$uriPathThe URI associated with the request.
string$payloadString content with which to populate the stream.
array<string,string>$headers Request headers
array<string,string>$queryParams The query string to use with the new instance.
Returns
RequestInterface

◆ 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 )
Parameters
$payload
$uriPath
$queryParams
Returns
ResponseInterface

◆ sendRequest()

InfluxDB2\DefaultApi::sendRequest ( RequestInterface $request)

Sends a HTTP request and returns a HTTP response.

Parameters
RequestInterface$request
Returns
ResponseInterface

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