Skip to main content

api_run_diff

Function api_run_diff 

Source
pub fn api_run_diff(
    corpus: &str,
    service: &str,
    previous: Option<&str>,
    current: Option<&str>,
    pool: &State<DbPool>,
) -> Result<Json<RunDiffDto>, Status>
Expand description

Compares two task-status snapshots of a (corpus, service) (the agent twin of the diff-summary screen). previous/current are snapshot timestamps from available_dates; omit them to use the most recent saved pair. 400 on a malformed date, 404 if the corpus/service is unknown.