pub struct AnalyticsDashboard { /* private fields */ }Expand description
Tracks rule adoption and effectiveness metrics
Integrates with ricecoder-learning AnalyticsEngine to track:
- Rule adoption metrics (percentage of team members applying rules)
- Rule effectiveness metrics (positive/negative outcomes from rule application)
- Team analytics reports (comprehensive metrics across all rules)
Implementations§
Source§impl AnalyticsDashboard
impl AnalyticsDashboard
Sourcepub async fn get_adoption_metrics(
&self,
rule_id: &str,
) -> Result<AdoptionMetrics>
pub async fn get_adoption_metrics( &self, rule_id: &str, ) -> Result<AdoptionMetrics>
Get adoption metrics for a rule
Calculates the adoption percentage for a rule by tracking how many team members have applied the rule. Also tracks adoption trends over time.
§Arguments
rule_id- The ID of the rule to get adoption metrics for
§Returns
Result<AdoptionMetrics>- Adoption metrics including percentage and trend
§Requirements
- Requirement 2.5: Track adoption metrics showing percentage of team members applying the rule
Sourcepub async fn get_effectiveness_metrics(
&self,
rule_id: &str,
) -> Result<EffectivenessMetrics>
pub async fn get_effectiveness_metrics( &self, rule_id: &str, ) -> Result<EffectivenessMetrics>
Get effectiveness metrics for a rule
Calculates the effectiveness score for a rule by measuring positive and negative outcomes from rule application. Also tracks impact trends over time.
§Arguments
rule_id- The ID of the rule to get effectiveness metrics for
§Returns
Result<EffectivenessMetrics>- Effectiveness metrics including score and trend
§Requirements
- Requirement 2.6: Track effectiveness metrics measuring positive outcomes from rule application
Sourcepub async fn generate_report(
&self,
team_id: &str,
) -> Result<TeamAnalyticsReport>
pub async fn generate_report( &self, team_id: &str, ) -> Result<TeamAnalyticsReport>
Generate comprehensive team analytics report
Generates a comprehensive report of team analytics including adoption and effectiveness metrics for all rules in the team.
§Arguments
team_id- The ID of the team to generate report for
§Returns
Result<TeamAnalyticsReport>- Comprehensive team analytics report
§Requirements
- Requirement 2.5: Track adoption metrics showing percentage of team members applying the rule
- Requirement 2.6: Track effectiveness metrics measuring positive outcomes from rule application
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnalyticsDashboard
impl RefUnwindSafe for AnalyticsDashboard
impl Send for AnalyticsDashboard
impl Sync for AnalyticsDashboard
impl Unpin for AnalyticsDashboard
impl UnwindSafe for AnalyticsDashboard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more