pub struct SeriesArchetypeServiceClient<T>(/* private fields */);
Expand description
[INTERNAL] A series archetype represents the constant information about data in a series - specifically, the name, units, a description, and the tags. Series archetypes can be used to query points from specific series depending on the tag value selections.
Implementations§
Source§impl<T> SeriesArchetypeServiceClient<T>where
T: Client,
impl<T> SeriesArchetypeServiceClient<T>where
T: Client,
Sourcepub fn batch_get(
&self,
auth_: &BearerToken,
request: &BatchGetSeriesArchetypeRequest,
) -> Result<BatchGetSeriesArchetypeResponse, Error>
pub fn batch_get( &self, auth_: &BearerToken, request: &BatchGetSeriesArchetypeRequest, ) -> Result<BatchGetSeriesArchetypeResponse, Error>
Batch get series archetypes by DataSourceRid.
Sourcepub fn create(
&self,
auth_: &BearerToken,
request: &CreateSeriesArchetypeRequest,
) -> Result<(), Error>
pub fn create( &self, auth_: &BearerToken, request: &CreateSeriesArchetypeRequest, ) -> Result<(), Error>
Create a new series archetype.
Sourcepub fn batch_create(
&self,
auth_: &BearerToken,
request: &BatchCreateSeriesArchetypeRequest,
) -> Result<(), Error>
pub fn batch_create( &self, auth_: &BearerToken, request: &BatchCreateSeriesArchetypeRequest, ) -> Result<(), Error>
Idempotently creates series archetypes.
Sourcepub fn get(
&self,
auth_: &BearerToken,
rid: &SeriesArchetypeRid,
) -> Result<SeriesArchetype, Error>
pub fn get( &self, auth_: &BearerToken, rid: &SeriesArchetypeRid, ) -> Result<SeriesArchetype, Error>
Get a series archetype from its series archetype rid.
Sourcepub fn update_metadata(
&self,
auth_: &BearerToken,
rid: &SeriesArchetypeRid,
request: &UpdateSeriesArchetypeMetadataRequest,
) -> Result<SeriesArchetype, Error>
pub fn update_metadata( &self, auth_: &BearerToken, rid: &SeriesArchetypeRid, request: &UpdateSeriesArchetypeMetadataRequest, ) -> Result<SeriesArchetype, Error>
Update the metadata on an existing series archetype. Throws SeriesArchetypeNotFound if the series archetype does not exist.
Trait Implementations§
Source§impl<T: Clone> Clone for SeriesArchetypeServiceClient<T>
impl<T: Clone> Clone for SeriesArchetypeServiceClient<T>
Source§fn clone(&self) -> SeriesArchetypeServiceClient<T>
fn clone(&self) -> SeriesArchetypeServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for SeriesArchetypeServiceClient<T>
impl<T: Debug> Debug for SeriesArchetypeServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for SeriesArchetypeServiceClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for SeriesArchetypeServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for SeriesArchetypeServiceClient<T>where
T: Send,
impl<T> Sync for SeriesArchetypeServiceClient<T>where
T: Sync,
impl<T> Unpin for SeriesArchetypeServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for SeriesArchetypeServiceClient<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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T
in a tonic::Request