pub struct WatchRule {
pub id: String,
pub domain: String,
pub model_type: Option<String>,
pub feature_dim: u8,
pub condition: WatchCondition,
pub notify: NotifyTarget,
pub active: bool,
pub created_at: DateTime<Utc>,
pub last_triggered: Option<DateTime<Utc>>,
}Expand description
A watch rule that monitors a temporal query for conditions.
Fields§
§id: StringUnique rule ID.
domain: StringDomain to watch.
model_type: Option<String>Model type to watch (e.g., “Product”).
feature_dim: u8Feature dimension to monitor.
condition: WatchConditionCondition that triggers the alert.
notify: NotifyTargetWhere to send notifications.
active: boolWhether this rule is active.
created_at: DateTime<Utc>When this rule was created.
last_triggered: Option<DateTime<Utc>>When this rule last triggered.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WatchRule
impl<'de> Deserialize<'de> for WatchRule
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
Auto Trait Implementations§
impl Freeze for WatchRule
impl RefUnwindSafe for WatchRule
impl Send for WatchRule
impl Sync for WatchRule
impl Unpin for WatchRule
impl UnsafeUnpin for WatchRule
impl UnwindSafe for WatchRule
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