pub struct ContinuousAggregateDef {
pub name: String,
pub source: String,
pub bucket_interval: String,
pub bucket_interval_ms: i64,
pub group_by: Vec<String>,
pub aggregates: Vec<AggregateExpr>,
pub refresh_policy: RefreshPolicy,
pub retention_period_ms: u64,
pub stale: bool,
}Expand description
Definition of a continuous aggregate.
Fields§
§name: StringName of this aggregate (e.g., “metrics_1m”).
source: StringSource collection or aggregate to read from.
bucket_interval: StringTime bucket interval string (e.g., “1m”, “1h”, “1d”).
bucket_interval_ms: i64Bucket interval in milliseconds (computed from bucket_interval).
group_by: Vec<String>Columns to GROUP BY (tag/symbol columns).
aggregates: Vec<AggregateExpr>Aggregate expressions to compute.
refresh_policy: RefreshPolicyWhen to refresh.
retention_period_ms: u64Retention period in milliseconds (0 = infinite, independent of source).
stale: boolWhether this aggregate is currently stale (schema change invalidation).
Trait Implementations§
Source§impl Clone for ContinuousAggregateDef
impl Clone for ContinuousAggregateDef
Source§fn clone(&self) -> ContinuousAggregateDef
fn clone(&self) -> ContinuousAggregateDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContinuousAggregateDef
impl Debug for ContinuousAggregateDef
Source§impl<'de> Deserialize<'de> for ContinuousAggregateDef
impl<'de> Deserialize<'de> for ContinuousAggregateDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for ContinuousAggregateDef
impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for ContinuousAggregateDef
Source§impl PartialEq for ContinuousAggregateDef
impl PartialEq for ContinuousAggregateDef
Source§impl Serialize for ContinuousAggregateDef
impl Serialize for ContinuousAggregateDef
impl StructuralPartialEq for ContinuousAggregateDef
Auto Trait Implementations§
impl Freeze for ContinuousAggregateDef
impl RefUnwindSafe for ContinuousAggregateDef
impl Send for ContinuousAggregateDef
impl Sync for ContinuousAggregateDef
impl Unpin for ContinuousAggregateDef
impl UnsafeUnpin for ContinuousAggregateDef
impl UnwindSafe for ContinuousAggregateDef
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.