DataReviewService

Trait DataReviewService 

Source
pub trait DataReviewService {
Show 21 methods // Required methods fn batch_initiate( &self, auth_: BearerToken, request: BatchInitiateDataReviewRequest, ) -> Result<BatchInitiateDataReviewResponse, Error>; fn rerun_failed_automatic_checks( &self, auth_: BearerToken, request: RerunFailedAutomaticChecksRequest, ) -> Result<(), Error>; fn find_data_reviews( &self, auth_: BearerToken, request: FindDataReviewsRequest, ) -> Result<DataReviewPage, Error>; fn get( &self, auth_: BearerToken, data_review_rid: DataReviewRid, ) -> Result<DataReview, Error>; fn get_check_alert( &self, auth_: BearerToken, check_alert_rid: CheckAlertRid, ) -> Result<CheckAlert, Error>; fn get_check_alerts_for_data_review( &self, auth_: BearerToken, data_review_rid: DataReviewRid, ) -> Result<BTreeSet<CheckAlert>, Error>; fn get_check_alerts_histogram( &self, auth_: BearerToken, request: CheckAlertsHistogramRequest, ) -> Result<CheckAlertsHistogramResponse, Error>; fn search_check_alerts( &self, auth_: BearerToken, request: SearchCheckAlertsRequest, ) -> Result<SearchCheckAlertsResponse, Error>; fn get_check_alert_action_log( &self, auth_: BearerToken, check_alert_rid: CheckAlertRid, ) -> Result<CheckAlertActionLog, Error>; fn get_check_alert_counts_for_notebooks( &self, auth_: BearerToken, rids: BTreeSet<NotebookRid>, ) -> Result<BTreeMap<NotebookRid, i32>, Error>; fn get_check_alert_status_for_notebooks( &self, auth_: BearerToken, rids: BTreeSet<NotebookRid>, ) -> Result<BTreeMap<NotebookRid, Option<CheckAlertStatus>>, Error>; fn perform_check_alert_action( &self, auth_: BearerToken, check_alert_rid: CheckAlertRid, request: CheckAlertAction, ) -> Result<CheckAlert, Error>; fn batch_perform_check_alert_action( &self, auth_: BearerToken, request: BatchCheckAlertActionRequest, ) -> Result<BatchCheckAlertActionResponse, Error>; fn batch_perform_automatic_check_evaluation_review_action( &self, auth_: BearerToken, request: BatchAutomaticCheckEvaluationActionRequest, ) -> Result<BatchAutomaticCheckEvaluationActionResponse, Error>; fn get_automatic_check_evaluation_action_log( &self, auth_: BearerToken, rid: AutomaticCheckEvaluationRid, ) -> Result<AutomaticCheckEvaluationActionLog, Error>; fn batch_perform_manual_check_alert_action( &self, auth_: BearerToken, request: BatchManualCheckEvaluationActionRequest, ) -> Result<(), Error>; fn get_manual_check_evaluation_action_log( &self, auth_: BearerToken, rid: ManualCheckEvaluationRid, ) -> Result<ManualCheckEvaluationActionLog, Error>; fn archive_data_review( &self, auth_: BearerToken, data_review_rid: DataReviewRid, ) -> Result<bool, Error>; fn batch_archive_data_review( &self, auth_: BearerToken, rids: BTreeSet<DataReviewRid>, ) -> Result<(), Error>; fn unarchive_data_review( &self, auth_: BearerToken, data_review_rid: DataReviewRid, ) -> Result<(), Error>; fn get_data_review_check_metrics( &self, auth_: BearerToken, request: GetDataReviewCheckMetricsRequest, ) -> Result<GetDataReviewCheckMetricsResponse, Error>;
}
Expand description

The data review service manages the evaluation, disposition, and historical record of checks alerts.

Required Methods§

Source

fn batch_initiate( &self, auth_: BearerToken, request: BatchInitiateDataReviewRequest, ) -> Result<BatchInitiateDataReviewResponse, Error>

For each request, initiates data review for the requested run and checklist and executes the automatic checks against the run.

Source

fn rerun_failed_automatic_checks( &self, auth_: BearerToken, request: RerunFailedAutomaticChecksRequest, ) -> Result<(), Error>

Re-executes the most recent failed automatic checks for the data review.

Source

fn find_data_reviews( &self, auth_: BearerToken, request: FindDataReviewsRequest, ) -> Result<DataReviewPage, Error>

Returns the data reviews under the provided search parameters.

Source

fn get( &self, auth_: BearerToken, data_review_rid: DataReviewRid, ) -> Result<DataReview, Error>

Throws if not found.

Source

fn get_check_alert( &self, auth_: BearerToken, check_alert_rid: CheckAlertRid, ) -> Result<CheckAlert, Error>

Throws if not found.

Source

fn get_check_alerts_for_data_review( &self, auth_: BearerToken, data_review_rid: DataReviewRid, ) -> Result<BTreeSet<CheckAlert>, Error>

Gets all check alerts from the provided data review.

Source

fn get_check_alerts_histogram( &self, auth_: BearerToken, request: CheckAlertsHistogramRequest, ) -> Result<CheckAlertsHistogramResponse, Error>

Returns a histogram of alerts that occur across the provided runs or assets. At least one run or asset must be specified.

Source

fn search_check_alerts( &self, auth_: BearerToken, request: SearchCheckAlertsRequest, ) -> Result<SearchCheckAlertsResponse, Error>

Returns the check alerts under the provided search parameters. At least one run or asset must be specified.

Source

fn get_check_alert_action_log( &self, auth_: BearerToken, check_alert_rid: CheckAlertRid, ) -> Result<CheckAlertActionLog, Error>

Returns a record of the historical actions taken on the provided check alert.

Source

fn get_check_alert_counts_for_notebooks( &self, auth_: BearerToken, rids: BTreeSet<NotebookRid>, ) -> Result<BTreeMap<NotebookRid, i32>, Error>

Returns the number of alerts attached to each provided notebook.

Source

fn get_check_alert_status_for_notebooks( &self, auth_: BearerToken, rids: BTreeSet<NotebookRid>, ) -> Result<BTreeMap<NotebookRid, Option<CheckAlertStatus>>, Error>

Returns the check alert status of any linked violations for the provided notebooks. If none exist, an empty optional is returned.

Source

fn perform_check_alert_action( &self, auth_: BearerToken, check_alert_rid: CheckAlertRid, request: CheckAlertAction, ) -> Result<CheckAlert, Error>

Applies a check alert action to the specified check alert RID.

Source

fn batch_perform_check_alert_action( &self, auth_: BearerToken, request: BatchCheckAlertActionRequest, ) -> Result<BatchCheckAlertActionResponse, Error>

Applies a check alert action to the specified check alert RIDs. If any of the check actions fail, then none of the check actions will be applied.

Source

fn batch_perform_automatic_check_evaluation_review_action( &self, auth_: BearerToken, request: BatchAutomaticCheckEvaluationActionRequest, ) -> Result<BatchAutomaticCheckEvaluationActionResponse, Error>

Applies an action to the specified check evaluation RIDs. If any of the check actions fail, then none of the actions will be applied.

Source

fn get_automatic_check_evaluation_action_log( &self, auth_: BearerToken, rid: AutomaticCheckEvaluationRid, ) -> Result<AutomaticCheckEvaluationActionLog, Error>

Source

fn batch_perform_manual_check_alert_action( &self, auth_: BearerToken, request: BatchManualCheckEvaluationActionRequest, ) -> Result<(), Error>

Applies an action to the specified check evaluation RIDs. If any of the check actions fail, then none of the actions will be applied.

Source

fn get_manual_check_evaluation_action_log( &self, auth_: BearerToken, rid: ManualCheckEvaluationRid, ) -> Result<ManualCheckEvaluationActionLog, Error>

Returns a record of the historical manual actions taken on the provided check evaluation.

Source

fn archive_data_review( &self, auth_: BearerToken, data_review_rid: DataReviewRid, ) -> Result<bool, Error>

Archives the data review with the given rid.

Source

fn batch_archive_data_review( &self, auth_: BearerToken, rids: BTreeSet<DataReviewRid>, ) -> Result<(), Error>

Batch archives the data reviews with the given rids.

Source

fn unarchive_data_review( &self, auth_: BearerToken, data_review_rid: DataReviewRid, ) -> Result<(), Error>

Unarchives the data review with the given rid.

Source

fn get_data_review_check_metrics( &self, auth_: BearerToken, request: GetDataReviewCheckMetricsRequest, ) -> Result<GetDataReviewCheckMetricsResponse, Error>

Implementors§