pub struct UptimeGetAlertResponseAlert {
pub comparison: Option<UptimeGetAlertResponseAlertComparison>,
pub id: Option<Uuid>,
pub name: Option<String>,
pub notifications: Map<String, Value>,
pub period: Option<UptimeGetAlertResponseAlertPeriod>,
pub threshold: Option<i64>,
pub type_: Option<UptimeGetAlertResponseAlertType>,
}Expand description
UptimeGetAlertResponseAlert
JSON schema
{
"type": "object",
"allOf": [
{
"type": "object",
"properties": {
"id": {
"description": "A unique ID that can be used to identify and reference the alert.",
"readOnly": true,
"examples": [
"5a4981aa-9653-4bd1-bef5-d6bff52042e4"
],
"type": "string",
"format": "uuid"
}
}
},
{
"type": "object",
"properties": {
"comparison": {
"description": "The comparison operator used against the alert's threshold.",
"examples": [
"greater_than"
],
"type": "string",
"enum": [
"greater_than",
"less_than"
]
},
"name": {
"description": "A human-friendly display name.",
"examples": [
"Landing page degraded performance"
],
"type": "string"
},
"notifications": {
"description": "Fallback schema for missing file reference",
"type": "object",
"additionalProperties": true
},
"period": {
"description": "Period of time the threshold must be exceeded to trigger the alert.",
"examples": [
"2m"
],
"type": "string",
"enum": [
"2m",
"3m",
"5m",
"10m",
"15m",
"30m",
"1h"
]
},
"threshold": {
"description": "The threshold at which the alert will enter a trigger state. The specific threshold is dependent on the alert type.",
"examples": [
300
],
"type": "integer"
},
"type": {
"description": "The type of alert.",
"examples": [
"latency"
],
"type": "string",
"enum": [
"latency",
"down",
"down_global",
"ssl_expiry"
]
}
}
}
]
}Fields§
§comparison: Option<UptimeGetAlertResponseAlertComparison>The comparison operator used against the alert’s threshold.
id: Option<Uuid>A unique ID that can be used to identify and reference the alert.
name: Option<String>A human-friendly display name.
notifications: Map<String, Value>Fallback schema for missing file reference
period: Option<UptimeGetAlertResponseAlertPeriod>Period of time the threshold must be exceeded to trigger the alert.
threshold: Option<i64>The threshold at which the alert will enter a trigger state. The specific threshold is dependent on the alert type.
type_: Option<UptimeGetAlertResponseAlertType>The type of alert.
Trait Implementations§
Source§impl Clone for UptimeGetAlertResponseAlert
impl Clone for UptimeGetAlertResponseAlert
Source§fn clone(&self) -> UptimeGetAlertResponseAlert
fn clone(&self) -> UptimeGetAlertResponseAlert
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 UptimeGetAlertResponseAlert
impl Debug for UptimeGetAlertResponseAlert
Source§impl<'de> Deserialize<'de> for UptimeGetAlertResponseAlert
impl<'de> Deserialize<'de> for UptimeGetAlertResponseAlert
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 From<&UptimeGetAlertResponseAlert> for UptimeGetAlertResponseAlert
impl From<&UptimeGetAlertResponseAlert> for UptimeGetAlertResponseAlert
Source§fn from(value: &UptimeGetAlertResponseAlert) -> Self
fn from(value: &UptimeGetAlertResponseAlert) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UptimeGetAlertResponseAlert
impl RefUnwindSafe for UptimeGetAlertResponseAlert
impl Send for UptimeGetAlertResponseAlert
impl Sync for UptimeGetAlertResponseAlert
impl Unpin for UptimeGetAlertResponseAlert
impl UnsafeUnpin for UptimeGetAlertResponseAlert
impl UnwindSafe for UptimeGetAlertResponseAlert
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