Package com.influxdb.client
Interface SourcesApi
@ThreadSafe
public interface SourcesApi
The client of the InfluxDB 2.x that implement Source HTTP API endpoint.
- Author:
- Jakub Bednar (bednar@github) (18/09/2018 09:01)
-
Method Summary
Modifier and TypeMethodDescriptioncloneSource
(String clonedName, Source source) Clone a source.cloneSource
(String clonedName, String sourceID) Clone a source.createSource
(Source source) Creates a Source, sets the sources ID and stores it.void
deleteSource
(Source source) Delete a source.void
deleteSource
(String sourceID) Delete a source.findBucketsBySource
(Source source) Get a sources buckets (will return dbrps in the form of buckets if it is a v1 source).findBucketsBySourceID
(String sourceID) Get a sources buckets (will return dbrps in the form of buckets if it is a v1 source).findSourceByID
(String sourceID) Retrieve a source.Get all sources.Get a sources health.Get a sources health.updateSource
(Source source) Update the source.
-
Method Details
-
createSource
Creates a Source, sets the sources ID and stores it.- Parameters:
source
- to create- Returns:
- created source
-
updateSource
Update the source.- Parameters:
source
- to update- Returns:
- updated source
-
deleteSource
Delete a source.- Parameters:
source
- source to delete
-
deleteSource
Delete a source.- Parameters:
sourceID
- ID of source to delete
-
cloneSource
Clone a source.- Parameters:
clonedName
- name of cloned sourcesourceID
- ID of source to clone- Returns:
- cloned source
-
cloneSource
Clone a source.- Parameters:
clonedName
- name of cloned sourcesource
- source to clone- Returns:
- cloned source
-
findSourceByID
Retrieve a source.- Parameters:
sourceID
- ID of source to get- Returns:
- source details
-
findSources
Get all sources.- Returns:
- A list of sources
-
findBucketsBySource
Get a sources buckets (will return dbrps in the form of buckets if it is a v1 source).- Parameters:
source
- filter buckets to a specific source- Returns:
- buckets for source. If source does not exist than return null.
-
findBucketsBySourceID
Get a sources buckets (will return dbrps in the form of buckets if it is a v1 source).- Parameters:
sourceID
- filter buckets to a specific source ID- Returns:
- buckets for source. If source does not exist than return null.
-
health
Get a sources health.- Parameters:
source
- to check health- Returns:
- health of source
-
health
Get a sources health.- Parameters:
sourceID
- to check health- Returns:
- health of source
-