Instream v0.18.0 Instream.Query.URL View Source

URL Utility.

Link to this section Summary

Functions

Appends authentication credentials to a URL

Appends a database to a URL

Appends an epoch value to a URL

Appends a precision value to a URL

Appends a query to a URL

Appends a retention policy to a URL

Returns the proper URL for a :ping request

Returns the proper URL for a :query request

Returns the proper URL for a :status request

Returns the proper URL for a :write request

Link to this section Functions

Link to this function append_auth(url, auth) View Source
append_auth(String.t(), Keyword.t()) :: String.t()

Appends authentication credentials to a URL.

Link to this function append_database(url, database) View Source
append_database(String.t(), String.t()) :: String.t()

Appends a database to a URL.

Appends an epoch value to a URL.

The allowed values are identical to the precision parameters of write queries.

Link to this function append_precision(url, precision) View Source
append_precision(String.t(), Instream.Encoder.Precision.t()) :: String.t()

Appends a precision value to a URL.

Link to this function append_query(url, query) View Source
append_query(String.t(), String.t()) :: String.t()

Appends a query to a URL.

Link to this function append_retention_policy(url, policy) View Source
append_retention_policy(String.t(), String.t()) :: String.t()

Appends a retention policy to a URL.

Link to this function ping(config, host \\ nil) View Source
ping(Keyword.t(), String.t() | nil) :: String.t()

Returns the proper URL for a :ping request.

Returns the proper URL for a :query request.

Link to this function status(config, host \\ nil) View Source
status(Keyword.t(), String.t() | nil) :: String.t()

Returns the proper URL for a :status request.

Returns the proper URL for a :write request.