pub struct Alert {Show 13 fields
pub uid: String,
pub name: String,
pub severity: String,
pub state: String,
pub entity_type: Option<String>,
pub entity_name: Option<String>,
pub entity_uid: Option<String>,
pub threshold: Option<Value>,
pub change_time: Option<String>,
pub change_value: Option<Value>,
pub description: Option<String>,
pub error_code: Option<String>,
pub extra: Value,
}
Expand description
Alert information Represents an alert state for a cluster object (database, node, or cluster)
Fields§
§uid: String
Unique identifier for the alert
name: String
Name/type of the alert
severity: String
Alert severity level: DEBUG, INFO, WARNING, ERROR, CRITICAL
state: String
Current alert state - true if alert is currently triggered
entity_type: Option<String>
Type of entity this alert is associated with (e.g., “bdb”, “node”, “cluster”)
entity_name: Option<String>
Name of the entity this alert is associated with
entity_uid: Option<String>
UID of the entity this alert is associated with
threshold: Option<Value>
String representing an alert threshold when applicable
change_time: Option<String>
ISO 8601 timestamp when alert state last changed
change_value: Option<Value>
Object containing data relevant to the evaluation time when the alert went on/off (thresholds/sampled values/etc.)
description: Option<String>
Human-readable description of the alert
error_code: Option<String>
Error code associated with the alert
extra: Value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alert
impl<'de> Deserialize<'de> for Alert
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 Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnwindSafe for Alert
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