pub struct DataSourceServiceAsyncClient<T>(/* private fields */);
Expand description
Data sources are data input to runs, including databases, CSV, video, and streaming data. They contain channels that represent the series data. The DataSource Service is responsible for indexing and searching channels across data sources.
Implementations§
Source§impl<T> DataSourceServiceAsyncClient<T>where
T: AsyncClient,
impl<T> DataSourceServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn search_channels(
&self,
auth_: &BearerToken,
query: &SearchChannelsRequest,
) -> Result<SearchChannelsResponse, Error>
pub async fn search_channels( &self, auth_: &BearerToken, query: &SearchChannelsRequest, ) -> Result<SearchChannelsResponse, Error>
Returns channels that match the search criteria. Results are sorted by similarity score.
Sourcepub async fn search_filtered_channels(
&self,
auth_: &BearerToken,
query: &SearchFilteredChannelsRequest,
) -> Result<SearchFilteredChannelsResponse, Error>
pub async fn search_filtered_channels( &self, auth_: &BearerToken, query: &SearchFilteredChannelsRequest, ) -> Result<SearchFilteredChannelsResponse, Error>
Returns channels that match the search criteria. Results are sorted by similarity score.
Sourcepub async fn search_hierarchical_channels(
&self,
auth_: &BearerToken,
query: &SearchHierarchicalChannelsRequest,
) -> Result<SearchHierarchicalChannelsResponse, Error>
pub async fn search_hierarchical_channels( &self, auth_: &BearerToken, query: &SearchHierarchicalChannelsRequest, ) -> Result<SearchHierarchicalChannelsResponse, Error>
Returns only channels that are direct children of the parent. Returns results sorted alphabetically.
Sourcepub async fn index_channel_prefix_tree(
&self,
auth_: &BearerToken,
request: &IndexChannelPrefixTreeRequest,
) -> Result<ChannelPrefixTree, Error>
pub async fn index_channel_prefix_tree( &self, auth_: &BearerToken, request: &IndexChannelPrefixTreeRequest, ) -> Result<ChannelPrefixTree, Error>
Indexes the channel prefix tree for a specified data source. This operation constructs a prefix tree from the channels available in the data source.
Sourcepub async fn batch_get_channel_prefix_trees(
&self,
auth_: &BearerToken,
request: &BatchGetChannelPrefixTreeRequest,
) -> Result<BatchGetChannelPrefixTreeResponse, Error>
pub async fn batch_get_channel_prefix_trees( &self, auth_: &BearerToken, request: &BatchGetChannelPrefixTreeRequest, ) -> Result<BatchGetChannelPrefixTreeResponse, Error>
Returns the channel prefix tree for each of the specified data sources. If the tree for a data source has not been indexed, it will be omitted from the map.
Returns the the set of all tag keys and their values that are available for the specified channel given an initial set of filters.
Sourcepub async fn get_data_scope_bounds(
&self,
auth_: &BearerToken,
request: &BatchGetDataScopeBoundsRequest,
) -> Result<BatchGetDataScopeBoundsResponse, Error>
pub async fn get_data_scope_bounds( &self, auth_: &BearerToken, request: &BatchGetDataScopeBoundsRequest, ) -> Result<BatchGetDataScopeBoundsResponse, Error>
Returns the maximum data timestamps for the specified data scopes. Responses are returned in the same order as requests.
Trait Implementations§
Source§impl<T> AsyncService<T> for DataSourceServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for DataSourceServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for DataSourceServiceAsyncClient<T>
impl<T: Clone> Clone for DataSourceServiceAsyncClient<T>
Source§fn clone(&self) -> DataSourceServiceAsyncClient<T>
fn clone(&self) -> DataSourceServiceAsyncClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more