pub struct WebhookAlert {
pub alert_id: Option<String>,
pub name: Option<String>,
pub query_type: Option<String>,
pub filters: Option<Value>,
pub frequency: Option<String>,
pub cron_expression: Option<String>,
pub status: Option<String>,
pub created_at: Option<String>,
pub last_checked_at: Option<String>,
pub match_count: Option<i64>,
pub extra: HashMap<String, Value>,
}Expand description
A filter-based webhook subscription.
The alerts API uses name + filters (whereas the canonical subscriptions
API uses subscription_name + filter_definition).
Fields§
§alert_id: Option<String>Alert UUID.
name: Option<String>Human-readable name.
query_type: Option<String>Resource type the alert filters ("contract", "opportunity", …; singular).
filters: Option<Value>Filter map applied against new resources.
frequency: Option<String>"realtime", "hourly", etc.
cron_expression: Option<String>Cron expression when frequency = "custom".
status: Option<String>Lifecycle status ("active", "paused", …).
created_at: Option<String>ISO timestamp the alert was created.
last_checked_at: Option<String>ISO timestamp the alert was last checked.
match_count: Option<i64>Number of resources the alert has matched.
extra: HashMap<String, Value>Forward-compatible bucket.
Trait Implementations§
Source§impl Clone for WebhookAlert
impl Clone for WebhookAlert
Source§fn clone(&self) -> WebhookAlert
fn clone(&self) -> WebhookAlert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookAlert
impl Debug for WebhookAlert
Source§impl Default for WebhookAlert
impl Default for WebhookAlert
Source§fn default() -> WebhookAlert
fn default() -> WebhookAlert
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookAlert
impl<'de> Deserialize<'de> for WebhookAlert
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 PartialEq for WebhookAlert
impl PartialEq for WebhookAlert
Source§fn eq(&self, other: &WebhookAlert) -> bool
fn eq(&self, other: &WebhookAlert) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebhookAlert
impl Serialize for WebhookAlert
impl StructuralPartialEq for WebhookAlert
Auto Trait Implementations§
impl Freeze for WebhookAlert
impl RefUnwindSafe for WebhookAlert
impl Send for WebhookAlert
impl Sync for WebhookAlert
impl Unpin for WebhookAlert
impl UnsafeUnpin for WebhookAlert
impl UnwindSafe for WebhookAlert
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