AnalyticsOptions#
Selects the analytics that a call adds to ScheduleResult::analytics. It's set as the analytics field of SolveOptions, PreviewOptions and AnalyzeOptions. AnalyticsOptions::default() requests nothing.
Declaration#
Fields#
| Field | Type | Default | Description |
|---|---|---|---|
slack |
bool |
false |
Fills Analytics::slack with one TaskSlack entry per active leaf task and milestone. |
critical_path |
bool |
false |
Fills Analytics::critical_path with the critical tasks and links as a Critical. |
When both fields are false, result.analytics is None. When at least one is true, result.analytics is Some, and fields that weren't requested stay None. Check Analytics::status before reading them.
Example#
use ;
Related#
Analytics- the result section these flags fillSolveOptions- carries it forProject::solveProject::analyze- computes analytics without scheduling- Critical path and slack - requesting and reading critical path and slack