pub enum PostgresHeartbeatData {
Variant0 {
backend: PostgresHeartbeatDataVariant0Backend,
cluster_identifier: String,
endpoint: Option<String>,
engine_version: Option<String>,
never_pauses: bool,
serverless_capacity: Option<f64>,
status: PostgresHeartbeatStatus,
},
Variant1 {
backend: PostgresHeartbeatDataVariant1Backend,
database_version: Option<String>,
instance_name: String,
state: Option<String>,
status: PostgresHeartbeatStatus,
},
Variant2 {
backend: PostgresHeartbeatDataVariant2Backend,
server_name: String,
state: Option<String>,
status: PostgresHeartbeatStatus,
version: Option<String>,
},
Variant3 {
backend: PostgresHeartbeatDataVariant3Backend,
name: String,
port: Option<i32>,
process_running: bool,
status: PostgresHeartbeatStatus,
version: String,
},
}Expand description
PostgresHeartbeatData
JSON schema
{
"oneOf": [
{
"description": "AWS Aurora Serverless v2 backend.",
"allOf": [
{
"$ref": "#/components/schemas/AuroraPostgresHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"aurora"
]
}
}
}
]
},
{
"description": "GCP Cloud SQL backend.",
"allOf": [
{
"$ref": "#/components/schemas/GcpCloudSqlPostgresHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"cloudSql"
]
}
}
}
]
},
{
"description": "Azure Flexible Server backend.",
"allOf": [
{
"$ref": "#/components/schemas/AzureFlexibleServerPostgresHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"flexibleServer"
]
}
}
}
]
},
{
"description": "Local embedded Postgres backend.",
"allOf": [
{
"$ref": "#/components/schemas/LocalPostgresHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"local"
]
}
}
}
]
}
]
}Variants§
Variant0
Fields
§
never_pauses: boolTrue when a minCapacity: 0 instance has not reached 0 ACU over the observation
window — it is silently paying always-on prices (auto-pause verification).
§
status: PostgresHeartbeatStatusVariant1
Fields
§
status: PostgresHeartbeatStatusVariant2
Fields
§
status: PostgresHeartbeatStatusVariant3
Trait Implementations§
Source§impl Clone for PostgresHeartbeatData
impl Clone for PostgresHeartbeatData
Source§fn clone(&self) -> PostgresHeartbeatData
fn clone(&self) -> PostgresHeartbeatData
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 PostgresHeartbeatData
impl Debug for PostgresHeartbeatData
Source§impl<'de> Deserialize<'de> for PostgresHeartbeatData
impl<'de> Deserialize<'de> for PostgresHeartbeatData
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<&PostgresHeartbeatData> for PostgresHeartbeatData
impl From<&PostgresHeartbeatData> for PostgresHeartbeatData
Source§fn from(value: &PostgresHeartbeatData) -> Self
fn from(value: &PostgresHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl From<PostgresHeartbeatData> for ResourceHeartbeatData
impl From<PostgresHeartbeatData> for ResourceHeartbeatData
Source§fn from(value: PostgresHeartbeatData) -> Self
fn from(value: PostgresHeartbeatData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PostgresHeartbeatData
impl RefUnwindSafe for PostgresHeartbeatData
impl Send for PostgresHeartbeatData
impl Sync for PostgresHeartbeatData
impl Unpin for PostgresHeartbeatData
impl UnsafeUnpin for PostgresHeartbeatData
impl UnwindSafe for PostgresHeartbeatData
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