pub trait AsyncConnectionBootstrapperService {
// Required method
fn populate_series(
&self,
auth_: BearerToken,
rid: ConnectionRid,
request: PopulateSeriesRequest,
) -> impl Future<Output = Result<(), Error>> + Send;
}
Expand description
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).
Required Methods§
Sourcefn populate_series(
&self,
auth_: BearerToken,
rid: ConnectionRid,
request: PopulateSeriesRequest,
) -> impl Future<Output = Result<(), Error>> + Send
fn populate_series( &self, auth_: BearerToken, rid: ConnectionRid, request: PopulateSeriesRequest, ) -> impl Future<Output = Result<(), Error>> + Send
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.
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.