Interface IMetricsService
Represents a collection of functions to interact with the API endpoints
Namespace: InfluxDB.Client.Api.Service
Assembly: InfluxDB.Client.dll
Syntax
public interface IMetricsService : IApiAccessor
Methods
GetMetrics(String)
Get metrics of an instance
Declaration
string GetMetrics(string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
System. |
string |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetMetricsAsync(String, CancellationToken)
Get metrics of an instance
Declaration
System.Threading.Tasks.Task<string> GetMetricsAsync(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 string |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetMetricsAsyncWithHttpInfo(String, CancellationToken)
Get metrics of an instance
Declaration
System.Threading.Tasks.Task<ApiResponse<string>> GetMetricsAsyncWithHttpInfo(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 (string) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetMetricsWithHttpInfo(String)
Get metrics of an instance
Declaration
ApiResponse<string> GetMetricsWithHttpInfo(string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Influx |
ApiResponse of string |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |