Interface IQueryApiSync
Namespace: InfluxDB.Client
Assembly: InfluxDB.Client.dll
Syntax
public interface IQueryApiSync
Methods
QuerySync(Query, String, CancellationToken)
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to FluxTables.
NOTE: This method is not intended for large query results.
Declaration
List<FluxTable> QuerySync(Query query, string org = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Query | query | the flux query to execute |
System.String | org | specifies the source organization. If the org is not specified then is used config from Org. |
CancellationToken | cancellationToken | Token that enables callers to cancel the request. |
Returns
Type | Description |
---|---|
List<FluxTable> | FluxTables that are matched the query |
QuerySync(String, String, CancellationToken)
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to FluxTables.
NOTE: This method is not intended for large query results.
Declaration
List<FluxTable> QuerySync(string query, string org = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | query | the flux query to execute |
System.String | org | specifies the source organization. If the org is not specified then is used config from Org. |
CancellationToken | cancellationToken | Token that enables callers to cancel the request. |
Returns
Type | Description |
---|---|
List<FluxTable> | FluxTables that are matched the query |
QuerySync<T>(Query, String, CancellationToken)
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.
NOTE: This method is not intended for large query results.
Declaration
List<T> QuerySync<T>(Query query, string org = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Query | query | the flux query to execute |
System.String | org | specifies the source organization. If the org is not specified then is used config from Org. |
CancellationToken | cancellationToken | Token that enables callers to cancel the request. |
Returns
Type | Description |
---|---|
List<T> | Measurements which are matched the query |
Type Parameters
Name | Description |
---|---|
T | the type of measurement |
QuerySync<T>(String, String, CancellationToken)
Executes the Flux query against the InfluxDB 2.x and synchronously map whole response to list of object with given type.
NOTE: This method is not intended for large query results.
Declaration
List<T> QuerySync<T>(string query, string org = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | query | the flux query to execute |
System.String | org | specifies the source organization. If the org is not specified then is used config from Org. |
CancellationToken | cancellationToken | Token that enables callers to cancel the request. |
Returns
Type | Description |
---|---|
List<T> | Measurements which are matched the query |
Type Parameters
Name | Description |
---|---|
T | the type of measurement |