AsyncSeriesArchetypeService

Trait AsyncSeriesArchetypeService 

Source
pub trait AsyncSeriesArchetypeService {
    // Required methods
    fn batch_get(
        &self,
        auth_: BearerToken,
        request: BatchGetSeriesArchetypeRequest,
    ) -> impl Future<Output = Result<BatchGetSeriesArchetypeResponse, Error>> + Send;
    fn create(
        &self,
        auth_: BearerToken,
        request: CreateSeriesArchetypeRequest,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn batch_create(
        &self,
        auth_: BearerToken,
        request: BatchCreateSeriesArchetypeRequest,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn get(
        &self,
        auth_: BearerToken,
        rid: SeriesArchetypeRid,
    ) -> impl Future<Output = Result<SeriesArchetype, Error>> + Send;
    fn update_metadata(
        &self,
        auth_: BearerToken,
        rid: SeriesArchetypeRid,
        request: UpdateSeriesArchetypeMetadataRequest,
    ) -> impl Future<Output = Result<SeriesArchetype, Error>> + Send;
}
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.

Required Methods§

Source

fn batch_get( &self, auth_: BearerToken, request: BatchGetSeriesArchetypeRequest, ) -> impl Future<Output = Result<BatchGetSeriesArchetypeResponse, Error>> + Send

Batch get series archetypes by DataSourceRid.

Source

fn create( &self, auth_: BearerToken, request: CreateSeriesArchetypeRequest, ) -> impl Future<Output = Result<(), Error>> + Send

Create a new series archetype.

Source

fn batch_create( &self, auth_: BearerToken, request: BatchCreateSeriesArchetypeRequest, ) -> impl Future<Output = Result<(), Error>> + Send

Idempotently creates series archetypes.

Source

fn get( &self, auth_: BearerToken, rid: SeriesArchetypeRid, ) -> impl Future<Output = Result<SeriesArchetype, Error>> + Send

Get a series archetype from its series archetype rid.

Source

fn update_metadata( &self, auth_: BearerToken, rid: SeriesArchetypeRid, request: UpdateSeriesArchetypeMetadataRequest, ) -> impl Future<Output = Result<SeriesArchetype, Error>> + Send

Update the metadata on an existing series archetype. Throws SeriesArchetypeNotFound if the series archetype does not exist.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§