pub struct DashboardIntegrationExample;Expand description
Example: Dashboard integration and monitoring
Demonstrates how to:
- Export metrics to Prometheus
- Integrate with Grafana
- Generate health check endpoints
- Monitor AI operations in real-time
Implementations§
Source§impl DashboardIntegrationExample
impl DashboardIntegrationExample
Sourcepub async fn prometheus_export() -> Result<()>
pub async fn prometheus_export() -> Result<()>
Export metrics to Prometheus format
Sourcepub async fn grafana_integration() -> Result<()>
pub async fn grafana_integration() -> Result<()>
Integrate with Grafana dashboard
Sourcepub async fn health_check_endpoint() -> Result<()>
pub async fn health_check_endpoint() -> Result<()>
Health check endpoint for monitoring
Sourcepub async fn realtime_monitoring() -> Result<()>
pub async fn realtime_monitoring() -> Result<()>
Real-time metrics monitoring
Sourcepub async fn custom_instrumentation() -> Result<()>
pub async fn custom_instrumentation() -> Result<()>
Custom metrics and instrumentation
Auto Trait Implementations§
impl Freeze for DashboardIntegrationExample
impl RefUnwindSafe for DashboardIntegrationExample
impl Send for DashboardIntegrationExample
impl Sync for DashboardIntegrationExample
impl Unpin for DashboardIntegrationExample
impl UnwindSafe for DashboardIntegrationExample
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