Interface IRulesService
Represents a collection of functions to interact with the API endpoints
Namespace: InfluxDB.Client.Api.Service
Assembly: InfluxDB.Client.dll
Syntax
public interface IRulesService : IApiAccessor
Methods
GetNotificationRulesIDQuery(String, String)
Retrieve a notification rule query
Declaration
FluxResponse GetNotificationRulesIDQuery(string ruleID, string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
ruleID | The notification rule ID. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Flux |
FluxResponse |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetNotificationRulesIDQueryAsync(String, String, CancellationToken)
Retrieve a notification rule query
Declaration
System.Threading.Tasks.Task<FluxResponse> GetNotificationRulesIDQueryAsync(string ruleID, string zapTraceSpan = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
ruleID | The notification rule ID. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of FluxResponse |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetNotificationRulesIDQueryAsyncWithHttpInfo(String, String, CancellationToken)
Retrieve a notification rule query
Declaration
System.Threading.Tasks.Task<ApiResponse<FluxResponse>> GetNotificationRulesIDQueryAsyncWithHttpInfo(string ruleID, string zapTraceSpan = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
ruleID | The notification rule ID. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of ApiResponse (FluxResponse) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetNotificationRulesIDQueryWithHttpInfo(String, String)
Retrieve a notification rule query
Declaration
ApiResponse<FluxResponse> GetNotificationRulesIDQueryWithHttpInfo(string ruleID, string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
ruleID | The notification rule ID. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Influx |
ApiResponse of FluxResponse |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |