Class DeleteService
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 DeleteService : object, IDeleteService, IApiAccessor
Constructors
DeleteService(Configuration)
Initializes a new instance of the Delete
Declaration
public DeleteService(Configuration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
Influx |
configuration | An instance of Configuration |
DeleteService(String)
Initializes a new instance of the Delete
Declaration
public DeleteService(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 |
PostDelete(DeletePredicateRequest, String, String, String, String, String)
Delete data
Declaration
public void PostDelete(DeletePredicateRequest deletePredicateRequest, string zapTraceSpan = null, string org = null, string bucket = null, string orgID = null, string bucketID = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deletePredicateRequest | Deletes data from an InfluxDB bucket. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
System. |
org | Specifies the organization to delete data from. (optional) |
System. |
bucket | Specifies the bucket to delete data from. (optional) |
System. |
orgID | Specifies the organization ID of the resource. (optional) |
System. |
bucketID | Specifies the bucket ID to delete data from. (optional) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
PostDeleteAsync(DeletePredicateRequest, String, String, String, String, String, CancellationToken)
Delete data
Declaration
public System.Threading.Tasks.Task PostDeleteAsync(DeletePredicateRequest deletePredicateRequest, string zapTraceSpan = null, string org = null, string bucket = null, string orgID = null, string bucketID = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deletePredicateRequest | Deletes data from an InfluxDB bucket. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
System. |
org | Specifies the organization to delete data from. (optional) |
System. |
bucket | Specifies the bucket to delete data from. (optional) |
System. |
orgID | Specifies the organization ID of the resource. (optional) |
System. |
bucketID | Specifies the bucket ID to delete data from. (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of void |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
PostDeleteAsyncWithHttpInfo(DeletePredicateRequest, String, String, String, String, String, CancellationToken)
Delete data
Declaration
public async System.Threading.Tasks.Task<ApiResponse<object>> PostDeleteAsyncWithHttpInfo(DeletePredicateRequest deletePredicateRequest, string zapTraceSpan = null, string org = null, string bucket = null, string orgID = null, string bucketID = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deletePredicateRequest | Deletes data from an InfluxDB bucket. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
System. |
org | Specifies the organization to delete data from. (optional) |
System. |
bucket | Specifies the bucket to delete data from. (optional) |
System. |
orgID | Specifies the organization ID of the resource. (optional) |
System. |
bucketID | Specifies the bucket ID to delete data from. (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of ApiResponse |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
PostDeleteAsyncWithIRestResponse(DeletePredicateRequest, String, String, String, String, String, CancellationToken)
Delete data
Declaration
public async System.Threading.Tasks.Task<RestResponse> PostDeleteAsyncWithIRestResponse(DeletePredicateRequest deletePredicateRequest, string zapTraceSpan = null, string org = null, string bucket = null, string orgID = null, string bucketID = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deletePredicateRequest | Deletes data from an InfluxDB bucket. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
System. |
org | Specifies the organization to delete data from. (optional) |
System. |
bucket | Specifies the bucket to delete data from. (optional) |
System. |
orgID | Specifies the organization ID of the resource. (optional) |
System. |
bucketID | Specifies the bucket ID to delete data from. (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
Task of RestResponse |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
PostDeleteWithHttpInfo(DeletePredicateRequest, String, String, String, String, String)
Delete data
Declaration
public ApiResponse<object> PostDeleteWithHttpInfo(DeletePredicateRequest deletePredicateRequest, string zapTraceSpan = null, string org = null, string bucket = null, string orgID = null, string bucketID = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deletePredicateRequest | Deletes data from an InfluxDB bucket. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
System. |
org | Specifies the organization to delete data from. (optional) |
System. |
bucket | Specifies the bucket to delete data from. (optional) |
System. |
orgID | Specifies the organization ID of the resource. (optional) |
System. |
bucketID | Specifies the bucket ID to delete data from. (optional) |
Returns
Type | Description |
---|---|
Influx |
ApiResponse of Object(void) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
PostDeleteWithIRestResponse(DeletePredicateRequest, String, String, String, String, String)
Delete data
Declaration
public RestResponse PostDeleteWithIRestResponse(DeletePredicateRequest deletePredicateRequest, string zapTraceSpan = null, string org = null, string bucket = null, string orgID = null, string bucketID = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deletePredicateRequest | Deletes data from an InfluxDB bucket. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
System. |
org | Specifies the organization to delete data from. (optional) |
System. |
bucket | Specifies the bucket to delete data from. (optional) |
System. |
orgID | Specifies the organization ID of the resource. (optional) |
System. |
bucketID | Specifies the bucket ID to delete data from. (optional) |
Returns
Type | Description |
---|---|
Rest |
ApiResponse of Object(void) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
PostDeleteWithIRestResponseAsync(DeletePredicateRequest, String, String, String, String, String, CancellationToken)
Delete data
Declaration
public async System.Threading.Tasks.Task<RestResponse> PostDeleteWithIRestResponseAsync(DeletePredicateRequest deletePredicateRequest, string zapTraceSpan = null, string org = null, string bucket = null, string orgID = null, string bucketID = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deletePredicateRequest | Deletes data from an InfluxDB bucket. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
System. |
org | Specifies the organization to delete data from. (optional) |
System. |
bucket | Specifies the bucket to delete data from. (optional) |
System. |
orgID | Specifies the organization ID of the resource. (optional) |
System. |
bucketID | Specifies the bucket ID to delete data from. (optional) |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
ApiResponse of Object(void) |
Exceptions
Type | Condition |
---|---|
Influx |
Thrown when fails to make API call |
PostDeleteWithRestRequest(DeletePredicateRequest, String, String, String, String, String)
Delete data
Declaration
public RestRequest PostDeleteWithRestRequest(DeletePredicateRequest deletePredicateRequest, string zapTraceSpan = null, string org = null, string bucket = null, string orgID = null, string bucketID = null)
Parameters
Type | Name | Description |
---|---|---|
Delete |
deletePredicateRequest | Deletes data from an InfluxDB bucket. |
System. |
zapTraceSpan | OpenTracing span context (optional) |
System. |
org | Specifies the organization to delete data from. (optional) |
System. |
bucket | Specifies the bucket to delete data from. (optional) |
System. |
orgID | Specifies the organization ID of the resource. (optional) |
System. |
bucketID | Specifies the bucket ID to delete data from. (optional) |
Returns
Type | Description |
---|---|
Rest |
ApiResponse of Object(void) |
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 |