|
|
@ -59,7 +59,7 @@ impl Default for MetricResult { |
|
|
|
#[async_trait] |
|
|
|
#[async_trait] |
|
|
|
pub trait Metric { |
|
|
|
pub trait Metric { |
|
|
|
|
|
|
|
|
|
|
|
fn boxed_clone(&self) -> Box<dyn Metric>; |
|
|
|
fn boxed_clone(&self) -> Box<dyn Metric + Sync>; |
|
|
|
|
|
|
|
|
|
|
|
// (to - from) / step < 10000
|
|
|
|
// (to - from) / step < 10000
|
|
|
|
async fn query_chunk(&self, from: u64, to: u64, step: u64) -> types::Result<MetricResult>; |
|
|
|
async fn query_chunk(&self, from: u64, to: u64, step: u64) -> types::Result<MetricResult>; |
|
|
|