pub struct AnalyticsBuilder { /* private fields */ }Expand description
Analytics builder that processes event timelines
Implementations§
Source§impl AnalyticsBuilder
impl AnalyticsBuilder
Sourcepub fn new(
workflow_id: WorkflowId,
workflow_name: String,
period_start: DateTime<Utc>,
period_end: DateTime<Utc>,
period_type: PeriodType,
) -> Self
pub fn new( workflow_id: WorkflowId, workflow_name: String, period_start: DateTime<Utc>, period_end: DateTime<Utc>, period_type: PeriodType, ) -> Self
Create a new analytics builder
Sourcepub fn add_timeline(&mut self, timeline: EventTimeline)
pub fn add_timeline(&mut self, timeline: EventTimeline)
Add an event timeline for analysis
Sourcepub fn build(self) -> WorkflowAnalytics
pub fn build(self) -> WorkflowAnalytics
Build the analytics report
Auto Trait Implementations§
impl Freeze for AnalyticsBuilder
impl RefUnwindSafe for AnalyticsBuilder
impl Send for AnalyticsBuilder
impl Sync for AnalyticsBuilder
impl Unpin for AnalyticsBuilder
impl UnwindSafe for AnalyticsBuilder
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