Class RulesService
Represents a collection of functions to interact with the API endpoints
Inheritance
Implements
Namespace: InfluxDB.Client.Api.Service
Assembly: InfluxDB.Client.dll
Syntax
public class RulesService : object, IRulesService, IApiAccessor
Constructors
RulesService(Configuration)
Initializes a new instance of the Rules
Declaration
public RulesService(Configuration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
Influx |
configuration | An instance of Configuration |
RulesService(String)
Initializes a new instance of the Rules
Declaration
public RulesService(string basePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
basePath |
Properties
Configuration
Gets or sets the configuration object
Declaration
public Configuration Configuration { get; set; }
Property Value
Type | Description |
---|---|
Influx |
An instance of the Configuration |
ExceptionFactory
Provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Type | Description |
---|---|
Influx |
Methods
AddDefaultHeader(String, String)
Add default header.
Declaration
public void AddDefaultHeader(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | Header field name. |
System. |
value | Header field value. |
DefaultHeader()
Gets the default header.
Declaration
public IDictionary<string, string> DefaultHeader()
Returns
Type | Description |
---|---|
IDictionary<System. |
Dictionary of HTTP header |
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
Type | Description |
---|---|
System. |
The base path |
GetNotificationRulesIDQuery(String, String)
Retrieve a notification rule query
Declaration
public 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
public async 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
public async 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 |
GetNotificationRulesIDQueryAsyncWithIRestResponse(String, String, CancellationToken)
Retrieve a notification rule query
Declaration
public async System.Threading.Tasks.Task<RestResponse> GetNotificationRulesIDQueryAsyncWithIRestResponse(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 RestResponse (FluxResponse) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetNotificationRulesIDQueryWithHttpInfo(String, String)
Retrieve a notification rule query
Declaration
public 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 |
GetNotificationRulesIDQueryWithIRestResponse(String, String)
Retrieve a notification rule query
Declaration
public RestResponse GetNotificationRulesIDQueryWithIRestResponse(string ruleID, string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
ruleID | The notification rule ID. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Rest |
ApiResponse of FluxResponse |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetNotificationRulesIDQueryWithIRestResponseAsync(String, String, CancellationToken)
Retrieve a notification rule query
Declaration
public async System.Threading.Tasks.Task<RestResponse> GetNotificationRulesIDQueryWithIRestResponseAsync(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. |
ApiResponse of FluxResponse |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
GetNotificationRulesIDQueryWithRestRequest(String, String)
Retrieve a notification rule query
Declaration
public RestRequest GetNotificationRulesIDQueryWithRestRequest(string ruleID, string zapTraceSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
ruleID | The notification rule ID. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
Returns
Type | Description |
---|---|
Rest |
ApiResponse of FluxResponse |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
SetBasePath(String)
Sets the base path of the API client.
Declaration
public void SetBasePath(string basePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
basePath |