pub struct ComplianceDashboardEngine { /* private fields */ }Expand description
Compliance dashboard engine
Aggregates data from various security systems to provide real-time compliance monitoring and reporting.
Implementations§
Source§impl ComplianceDashboardEngine
impl ComplianceDashboardEngine
Sourcepub fn new(config: ComplianceDashboardConfig) -> Self
pub fn new(config: ComplianceDashboardConfig) -> Self
Create a new compliance dashboard engine
Sourcepub async fn get_dashboard_data(&self) -> Result<ComplianceDashboardData, Error>
pub async fn get_dashboard_data(&self) -> Result<ComplianceDashboardData, Error>
Get dashboard data
Aggregates data from all security systems to provide comprehensive compliance status.
Sourcepub async fn add_gap(
&self,
gap_id: String,
description: String,
severity: GapSeverity,
standard: ComplianceStandard,
control_id: Option<String>,
target_remediation_date: Option<DateTime<Utc>>,
) -> Result<(), Error>
pub async fn add_gap( &self, gap_id: String, description: String, severity: GapSeverity, standard: ComplianceStandard, control_id: Option<String>, target_remediation_date: Option<DateTime<Utc>>, ) -> Result<(), Error>
Add a compliance gap
Sourcepub async fn update_gap_status(
&self,
gap_id: &str,
status: GapStatus,
) -> Result<(), Error>
pub async fn update_gap_status( &self, gap_id: &str, status: GapStatus, ) -> Result<(), Error>
Update gap status
Sourcepub async fn add_alert(
&self,
alert_id: String,
alert_type: AlertType,
severity: GapSeverity,
message: String,
standard: Option<ComplianceStandard>,
control_id: Option<String>,
) -> Result<(), Error>
pub async fn add_alert( &self, alert_id: String, alert_type: AlertType, severity: GapSeverity, message: String, standard: Option<ComplianceStandard>, control_id: Option<String>, ) -> Result<(), Error>
Add a compliance alert
Sourcepub async fn get_all_gaps(&self) -> Result<Vec<ComplianceGap>, Error>
pub async fn get_all_gaps(&self) -> Result<Vec<ComplianceGap>, Error>
Get all gaps
Sourcepub async fn get_all_alerts(&self) -> Result<Vec<ComplianceAlert>, Error>
pub async fn get_all_alerts(&self) -> Result<Vec<ComplianceAlert>, Error>
Get all alerts
Sourcepub async fn get_gaps_by_severity(
&self,
severity: GapSeverity,
) -> Result<Vec<ComplianceGap>, Error>
pub async fn get_gaps_by_severity( &self, severity: GapSeverity, ) -> Result<Vec<ComplianceGap>, Error>
Get gaps by severity
Sourcepub async fn get_alerts_by_severity(
&self,
severity: GapSeverity,
) -> Result<Vec<ComplianceAlert>, Error>
pub async fn get_alerts_by_severity( &self, severity: GapSeverity, ) -> Result<Vec<ComplianceAlert>, Error>
Get alerts by severity
Auto Trait Implementations§
impl Freeze for ComplianceDashboardEngine
impl !RefUnwindSafe for ComplianceDashboardEngine
impl Send for ComplianceDashboardEngine
impl Sync for ComplianceDashboardEngine
impl Unpin for ComplianceDashboardEngine
impl !UnwindSafe for ComplianceDashboardEngine
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more