pub struct TriggerCondition {
pub event_type: Option<String>,
pub event_pattern: Option<HashMap<String, Value>>,
pub cron_expression: Option<String>,
pub interval_seconds: Option<u64>,
pub metric_name: Option<String>,
pub threshold_value: Option<f64>,
pub threshold_operator: Option<ThresholdOperator>,
}Expand description
TriggerCondition - When the trigger should fire @see packages/enact-schemas/src/execution.schemas.ts - triggerConditionSchema
Fields§
§event_type: Option<String>Event type to match (for event triggers)
event_pattern: Option<HashMap<String, Value>>Pattern to match against event data
cron_expression: Option<String>Cron expression (for schedule triggers)
interval_seconds: Option<u64>Interval in seconds (for schedule triggers)
metric_name: Option<String>Metric name (for threshold triggers)
threshold_value: Option<f64>Threshold value (for threshold triggers)
threshold_operator: Option<ThresholdOperator>Threshold operator
Trait Implementations§
Source§impl Clone for TriggerCondition
impl Clone for TriggerCondition
Source§fn clone(&self) -> TriggerCondition
fn clone(&self) -> TriggerCondition
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 TriggerCondition
impl Debug for TriggerCondition
Source§impl Default for TriggerCondition
impl Default for TriggerCondition
Source§fn default() -> TriggerCondition
fn default() -> TriggerCondition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TriggerCondition
impl<'de> Deserialize<'de> for TriggerCondition
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 TriggerCondition
impl RefUnwindSafe for TriggerCondition
impl Send for TriggerCondition
impl Sync for TriggerCondition
impl Unpin for TriggerCondition
impl UnsafeUnpin for TriggerCondition
impl UnwindSafe for TriggerCondition
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