use super::{Metric, MetricExporter};
use crate::error::Result;
pub struct CloudWatchExporter {
namespace: String,
}
impl CloudWatchExporter {
pub fn new(namespace: String) -> Self {
Self { namespace }
}
pub fn namespace(&self) -> &str {
&self.namespace
}
}
impl MetricExporter for CloudWatchExporter {
fn export(&self, _metrics: &[Metric]) -> Result<()> {
Ok(())
}
fn flush(&self) -> Result<()> {
Ok(())
}
fn name(&self) -> &str {
"cloudwatch"
}
}