Trait AsyncRunService

Source
pub trait AsyncRunService {
Show 19 methods // Required methods fn create_run( &self, auth_: BearerToken, details: CreateRunRequest, ) -> impl Future<Output = Result<Run, Error>> + Send; fn update_run( &self, auth_: BearerToken, rid: RunRid, details: UpdateRunRequest, ) -> impl Future<Output = Result<Run, Error>> + Send; fn add_data_sources_to_run( &self, auth_: BearerToken, run_rid: RunRid, request: BTreeMap<DataSourceRefName, CreateRunDataSource>, ) -> impl Future<Output = Result<Run, Error>> + Send; fn create_or_update_run( &self, auth_: BearerToken, details: CreateOrUpdateRunRequest, ) -> impl Future<Output = Result<Run, Error>> + Send; fn get_run( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<Run, Error>> + Send; fn get_run_with_data_review_metrics( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<RunWithDataReviewMetrics, Error>> + Send; fn get_run_with_data_review_summary( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<RunWithDataReviewSummary, Error>> + Send; fn get_run_by_id( &self, auth_: BearerToken, get_run_by_id_request: GetRunByIdRequest, ) -> impl Future<Output = Result<Run, Error>> + Send; fn get_runs( &self, auth_: BearerToken, rids: BTreeSet<RunRid>, ) -> impl Future<Output = Result<BTreeMap<RunRid, Run>, Error>> + Send; fn get_runs_by_asset( &self, auth_: BearerToken, request: GetRunsByAssetRequest, ) -> impl Future<Output = Result<GetRunsByAssetResponse, Error>> + Send; fn get_all_runs_properties_and_labels( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> impl Future<Output = Result<AllRunsPropertiesAndLabelsResponse, Error>> + Send; fn search_runs( &self, auth_: BearerToken, request: SearchRunsRequest, ) -> impl Future<Output = Result<SearchRunsResponse, Error>> + Send; fn search_runs_with_data_review_metrics( &self, auth_: BearerToken, request: SearchRunsRequest, ) -> impl Future<Output = Result<SearchRunsWithDataReviewMetricsResponse, Error>> + Send; fn search_runs_with_data_review_summary( &self, auth_: BearerToken, request: SearchRunsRequest, ) -> impl Future<Output = Result<SearchRunsWithDataReviewSummaryResponse, Error>> + Send; fn archive_run( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<bool, Error>> + Send; fn unarchive_run( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<bool, Error>> + Send; fn get_data_source_ref_name_and_type_list( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> impl Future<Output = Result<Vec<RefNameAndType>, Error>> + Send; fn search_channels( &self, auth_: BearerToken, rid: RunRid, request: SearchRunChannelsRequest, ) -> impl Future<Output = Result<SearchRunChannelsResponse, Error>> + Send; fn update_run_attachment( &self, auth_: BearerToken, rid: RunRid, request: UpdateAttachmentsRequest, ) -> impl Future<Output = Result<(), Error>> + Send;
}
Expand description

Runs are collections of channels and metadata from one or more data sources, synchronized over a range of real time, which represents a test event or simulation. These API endpoints let you manage runs in the Nominal app.

Required Methods§

Source

fn create_run( &self, auth_: BearerToken, details: CreateRunRequest, ) -> impl Future<Output = Result<Run, Error>> + Send

Create a new run in Nominal.

Throws if start is equal to or after end.

Source

fn update_run( &self, auth_: BearerToken, rid: RunRid, details: UpdateRunRequest, ) -> impl Future<Output = Result<Run, Error>> + Send

Updates an existing run based on its RID.

Throws if start is equal to or after end.

Source

fn add_data_sources_to_run( &self, auth_: BearerToken, run_rid: RunRid, request: BTreeMap<DataSourceRefName, CreateRunDataSource>, ) -> impl Future<Output = Result<Run, Error>> + Send

Adds datasources to the run in question.

Throws if any of the ref names conflict with existing data sources or each other.

Source

fn create_or_update_run( &self, auth_: BearerToken, details: CreateOrUpdateRunRequest, ) -> impl Future<Output = Result<Run, Error>> + Send

Updates a run if it exists, otherwise it’s created from scratch. Will throw if the workspace of an existing run is different from the workspace of the request.

Source

fn get_run( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<Run, Error>> + Send

Fetches details about the run in question based on its RID.

Source

fn get_run_with_data_review_metrics( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<RunWithDataReviewMetrics, Error>> + Send

Fetches details about the run in question based on its RID, including metrics for check and violation review status.

Source

fn get_run_with_data_review_summary( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<RunWithDataReviewSummary, Error>> + Send

Fetches details about the run in question based on its RID, including a summary of the data review status.

Source

fn get_run_by_id( &self, auth_: BearerToken, get_run_by_id_request: GetRunByIdRequest, ) -> impl Future<Output = Result<Run, Error>> + Send

Fetches a run based on the run number, rather than RID.

Source

fn get_runs( &self, auth_: BearerToken, rids: BTreeSet<RunRid>, ) -> impl Future<Output = Result<BTreeMap<RunRid, Run>, Error>> + Send

Fetches a list of run details based on a list of RIDs.

Source

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

Fetches the runs with the given asset.

Source

fn get_all_runs_properties_and_labels( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> impl Future<Output = Result<AllRunsPropertiesAndLabelsResponse, Error>> + Send

Source

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

Searches for runs that match the given filters.

Source

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

Searches for runs that match the given filters and includes metrics for check and violation review status.

Source

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

Searches for runs that match the given filters and includes a summary of the data review status.

Source

fn archive_run( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<bool, Error>> + Send

Soft-deletes a run. Runs still exist in the database but are no longer visible.

Source

fn unarchive_run( &self, auth_: BearerToken, rid: RunRid, ) -> impl Future<Output = Result<bool, Error>> + Send

Source

fn get_data_source_ref_name_and_type_list( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> impl Future<Output = Result<Vec<RefNameAndType>, Error>> + Send

Returns the list of ref names that are in use across specified and authorized workspaces.

Source

fn search_channels( &self, auth_: BearerToken, rid: RunRid, request: SearchRunChannelsRequest, ) -> impl Future<Output = Result<SearchRunChannelsResponse, Error>> + Send

Source

fn update_run_attachment( &self, auth_: BearerToken, rid: RunRid, request: UpdateAttachmentsRequest, ) -> impl Future<Output = Result<(), Error>> + Send

Updates the attachments associated with a run.

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§