pub struct Client {
    pub url: String,
    pub org: String,
    /* private fields */
}
Expand description

Client to a server supporting the InfluxData 2.0 API.

Fields

url: String

The base URL this client sends requests to

org: String

The organization tied to this client

Implementations

Create a new bucket in the organization specified by the 16-digit hexadecimal org_id and with the bucket name bucket.

Delete data points from a bucket matching specified parameters.

Get health of an instance

List all Labels

List all Labels by organization ID

Retrieve a label by ID

Create a Label

Update a Label

Delete a Label

List all organizations.

Get Query Suggestions

Query Suggestions with name

Query

Analyze Query

Get Query AST Repsonse

Get the readiness of an instance at startup

Check if database has default user, org, bucket

Set up initial user, org and bucket

Set up a new user, org and bucket

List all tasks.

Create a new task.

Delete a task specified by task_id.

Write line protocol data to the specified organization and bucket.

Write a Stream of DataPoints to the specified organization and bucket.

Create a new client pointing to the URL specified in protocol://server:port format and using the specified token for authorization.

Example
let client = influxdb2::Client::new("http://localhost:8888", "org", "my-token");

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.