Interface IConfigService
Represents a collection of functions to interact with the API endpoints
Namespace: InfluxDB.Client.Api.Service
Assembly: InfluxDB.Client.dll
Syntax
public interface IConfigService : IApiAccessor
Methods
GetConfig(String)
Get the run-time configuration of the instance
Declaration
Config GetConfig(string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Config | Config |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetConfigAsync(String, CancellationToken)
Get the run-time configuration of the instance
Declaration
System.Threading.Tasks.Task<Config> GetConfigAsync(string zapTraceSpan = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of Config |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetConfigAsyncWithHttpInfo(String, CancellationToken)
Get the run-time configuration of the instance
Declaration
System.Threading.Tasks.Task<ApiResponse<Config>> GetConfigAsyncWithHttpInfo(string zapTraceSpan = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of ApiResponse (Config) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetConfigWithHttpInfo(String)
Get the run-time configuration of the instance
Declaration
ApiResponse<Config> GetConfigWithHttpInfo(string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Influx |
ApiResponse of Config |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |