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.
Sourcepub async fn get_tag_values_for_data_source(
&self,
auth_: &BearerToken,
data_source_rid: &DataSourceRid,
request: &GetTagValuesForDataSourceRequest,
) -> Result<BTreeMap<TagName, BTreeSet<TagValue>>, Error>
pub async fn get_tag_values_for_data_source( &self, auth_: &BearerToken, data_source_rid: &DataSourceRid, request: &GetTagValuesForDataSourceRequest, ) -> Result<BTreeMap<TagName, BTreeSet<TagValue>>, Error>
Returns available tag values for a given data source for a set of tag keys. For Nominal data sources, a time range can be provided to filter tag values to those present within the months spanned by the range. If no time range is provided, this defaults to the last month. For external data sources, the range must not be specified, as all tag values are returned.
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 moreAuto Trait Implementations§
impl<T> Freeze for DataSourceServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for DataSourceServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for DataSourceServiceAsyncClient<T>where
T: Send,
impl<T> Sync for DataSourceServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for DataSourceServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for DataSourceServiceAsyncClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request