@ThreadSafe public interface SourcesApi
| Modifier and Type | Method and Description |
|---|---|
Source |
cloneSource(String clonedName,
Source source)
Clone a source.
|
Source |
cloneSource(String clonedName,
String sourceID)
Clone a source.
|
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.
|
List<Bucket> |
findBucketsBySource(Source source)
Get a sources buckets (will return dbrps in the form of buckets if it is a v1 source).
|
List<Bucket> |
findBucketsBySourceID(String sourceID)
Get a sources buckets (will return dbrps in the form of buckets if it is a v1 source).
|
Source |
findSourceByID(String sourceID)
Retrieve a source.
|
List<Source> |
findSources()
Get all sources.
|
HealthCheck |
health(Source source)
Get a sources health.
|
HealthCheck |
health(String sourceID)
Get a sources health.
|
Source |
updateSource(Source source)
Update the source.
|
@Nonnull Source createSource(@Nonnull Source source)
source - to create@Nonnull Source updateSource(@Nonnull Source source)
source - to updatevoid deleteSource(@Nonnull Source source)
source - source to deletevoid deleteSource(@Nonnull String sourceID)
sourceID - ID of source to delete@Nonnull Source cloneSource(@Nonnull String clonedName, @Nonnull String sourceID)
clonedName - name of cloned sourcesourceID - ID of source to clone@Nonnull Source cloneSource(@Nonnull String clonedName, @Nonnull Source source)
clonedName - name of cloned sourcesource - source to clone@Nonnull Source findSourceByID(@Nonnull String sourceID)
sourceID - ID of source to get@Nullable List<Bucket> findBucketsBySource(@Nonnull Source source)
source - filter buckets to a specific source@Nonnull List<Bucket> findBucketsBySourceID(@Nonnull String sourceID)
sourceID - filter buckets to a specific source ID@Nonnull HealthCheck health(@Nonnull Source source)
source - to check health@Nonnull HealthCheck health(@Nonnull String sourceID)
sourceID - to check healthCopyright © 2018–2021 InfluxData, Inc.. All rights reserved.