nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
use conjure_http::endpoint;
/// Nominal periodically scrapes connected databases (Connections) in order to maintain a database of all
/// series that can be read from that database. This service is responsible for executing the scrape, and can
/// be used manually to trigger a rescrape for any reason (for example, when updating a schema).
#[conjure_http::conjure_endpoints(
    name = "ConnectionBootstrapperService",
    use_legacy_error_serialization
)]
pub trait ConnectionBootstrapperService {
    /// Populates the connection with series, by querying within the requested time range. If start or end are both omitted,
    /// will query the last 7 days by default. If one of start or end is omitted, will query a 7 day range from the provided
    /// start or end. Will throw if the requested range is larger than 30 days.
    #[endpoint(
        method = POST,
        path = "/data-source/connection/v1/{rid}/populateSeries",
        name = "populateSeries"
    )]
    fn populate_series(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "rid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            safe
        )]
        rid: super::super::super::super::super::objects::scout::datasource::connection::api::ConnectionRid,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::super::objects::scout::datasource::connection::api::PopulateSeriesRequest,
    ) -> Result<(), conjure_http::private::Error>;
}
/// Nominal periodically scrapes connected databases (Connections) in order to maintain a database of all
/// series that can be read from that database. This service is responsible for executing the scrape, and can
/// be used manually to trigger a rescrape for any reason (for example, when updating a schema).
#[conjure_http::conjure_endpoints(
    name = "ConnectionBootstrapperService",
    use_legacy_error_serialization
)]
pub trait AsyncConnectionBootstrapperService {
    /// Populates the connection with series, by querying within the requested time range. If start or end are both omitted,
    /// will query the last 7 days by default. If one of start or end is omitted, will query a 7 day range from the provided
    /// start or end. Will throw if the requested range is larger than 30 days.
    #[endpoint(
        method = POST,
        path = "/data-source/connection/v1/{rid}/populateSeries",
        name = "populateSeries"
    )]
    async fn populate_series(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "rid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            safe
        )]
        rid: super::super::super::super::super::objects::scout::datasource::connection::api::ConnectionRid,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::super::objects::scout::datasource::connection::api::PopulateSeriesRequest,
    ) -> Result<(), conjure_http::private::Error>;
}
/// Nominal periodically scrapes connected databases (Connections) in order to maintain a database of all
/// series that can be read from that database. This service is responsible for executing the scrape, and can
/// be used manually to trigger a rescrape for any reason (for example, when updating a schema).
#[conjure_http::conjure_endpoints(
    name = "ConnectionBootstrapperService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncConnectionBootstrapperService {
    /// Populates the connection with series, by querying within the requested time range. If start or end are both omitted,
    /// will query the last 7 days by default. If one of start or end is omitted, will query a 7 day range from the provided
    /// start or end. Will throw if the requested range is larger than 30 days.
    #[endpoint(
        method = POST,
        path = "/data-source/connection/v1/{rid}/populateSeries",
        name = "populateSeries"
    )]
    async fn populate_series(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "rid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            safe
        )]
        rid: super::super::super::super::super::objects::scout::datasource::connection::api::ConnectionRid,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::super::objects::scout::datasource::connection::api::PopulateSeriesRequest,
    ) -> Result<(), conjure_http::private::Error>;
}