pub struct AppsListAlertsResponse {
pub alerts: Vec<AppsListAlertsResponseAlertsItem>,
}Expand description
AppsListAlertsResponse
JSON schema
{
"type": "object",
"properties": {
"alerts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"component_name": {
"title": "Name of component the alert belongs to",
"examples": [
"backend"
],
"type": "string"
},
"emails": {
"title": "Emails for alerts to go to",
"examples": [
[
"sammy@digitalocean.com"
]
],
"type": "array",
"items": {
"default": "",
"examples": [
"sammy@digitalocean.com"
],
"type": "string"
}
},
"id": {
"title": "The ID of the alert",
"readOnly": true,
"examples": [
"4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf"
],
"type": "string"
},
"phase": {
"default": "UNKNOWN",
"examples": [
"ACTIVE"
],
"type": "string",
"enum": [
"UNKNOWN",
"PENDING",
"CONFIGURING",
"ACTIVE",
"ERROR"
]
},
"progress": {
"type": "object",
"properties": {
"steps": {
"title": "Steps of an alert's progress.",
"type": "array",
"items": {
"type": "object",
"properties": {
"ended_at": {
"title": "The start time of this step",
"examples": [
"2020-11-19T20:27:18Z"
],
"type": "string",
"format": "date-time"
},
"name": {
"title": "The name of this step",
"examples": [
"example_step"
],
"type": "string"
},
"reason": {
"type": "object",
"properties": {
"code": {
"title": "The error code",
"examples": [
"Title of Error"
],
"type": "string"
},
"message": {
"title": "The error message",
"examples": [
"This is an error"
],
"type": "string"
}
}
},
"started_at": {
"title": "The start time of this step",
"examples": [
"2020-11-19T20:27:18Z"
],
"type": "string",
"format": "date-time"
},
"status": {
"default": "UNKNOWN",
"examples": [
"SUCCESS"
],
"type": "string",
"enum": [
"UNKNOWN",
"PENDING",
"RUNNING",
"ERROR",
"SUCCESS"
]
}
}
}
}
}
},
"slack_webhooks": {
"title": "Slack Webhooks to send alerts to",
"type": "array",
"items": {
"type": "object",
"properties": {
"channel": {
"title": "Name of the Slack Webhook Channel",
"examples": [
"Channel Name"
],
"type": "string"
},
"url": {
"title": "URL of the Slack webhook",
"examples": [
"https://hooks.slack.com/services/REDACTED/EXAMPLE/WEBHOOK"
],
"type": "string"
}
}
}
},
"spec": {
"type": "object",
"properties": {
"disabled": {
"description": "Is the alert disabled?",
"examples": [
false
],
"type": "boolean"
},
"operator": {
"default": "UNSPECIFIED_OPERATOR",
"examples": [
"GREATER_THAN"
],
"type": "string",
"enum": [
"UNSPECIFIED_OPERATOR",
"GREATER_THAN",
"LESS_THAN"
]
},
"rule": {
"default": "UNSPECIFIED_RULE",
"examples": [
"CPU_UTILIZATION"
],
"type": "string",
"enum": [
"UNSPECIFIED_RULE",
"CPU_UTILIZATION",
"MEM_UTILIZATION",
"RESTART_COUNT",
"DEPLOYMENT_FAILED",
"DEPLOYMENT_LIVE",
"DOMAIN_FAILED",
"DOMAIN_LIVE",
"AUTOSCALE_FAILED",
"AUTOSCALE_SUCCEEDED",
"FUNCTIONS_ACTIVATION_COUNT",
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
"FUNCTIONS_ERROR_COUNT",
"FUNCTIONS_GB_RATE_PER_SECOND",
"REQUESTS_PER_SECOND",
"REQUEST_DURATION_P95_MS"
]
},
"value": {
"description": "Threshold value for alert",
"examples": [
2.32
],
"type": "number",
"format": "float"
},
"window": {
"default": "UNSPECIFIED_WINDOW",
"examples": [
"FIVE_MINUTES"
],
"type": "string",
"enum": [
"UNSPECIFIED_WINDOW",
"FIVE_MINUTES",
"TEN_MINUTES",
"THIRTY_MINUTES",
"ONE_HOUR"
]
}
}
}
}
}
}
}
}Fields§
§alerts: Vec<AppsListAlertsResponseAlertsItem>Trait Implementations§
Source§impl Clone for AppsListAlertsResponse
impl Clone for AppsListAlertsResponse
Source§fn clone(&self) -> AppsListAlertsResponse
fn clone(&self) -> AppsListAlertsResponse
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 AppsListAlertsResponse
impl Debug for AppsListAlertsResponse
Source§impl Default for AppsListAlertsResponse
impl Default for AppsListAlertsResponse
Source§impl<'de> Deserialize<'de> for AppsListAlertsResponse
impl<'de> Deserialize<'de> for AppsListAlertsResponse
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<&AppsListAlertsResponse> for AppsListAlertsResponse
impl From<&AppsListAlertsResponse> for AppsListAlertsResponse
Source§fn from(value: &AppsListAlertsResponse) -> Self
fn from(value: &AppsListAlertsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppsListAlertsResponse
impl RefUnwindSafe for AppsListAlertsResponse
impl Send for AppsListAlertsResponse
impl Sync for AppsListAlertsResponse
impl Unpin for AppsListAlertsResponse
impl UnsafeUnpin for AppsListAlertsResponse
impl UnwindSafe for AppsListAlertsResponse
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