pub struct RedisMetricsSample {
pub connected_clients: Option<f64>,
pub evictions: Option<f64>,
pub memory_used_percent: Option<f64>,
pub replication_lag_seconds: Option<f64>,
}Expand description
One sample of the numbers that matter for a Redis server. A field is None
when the cloud did not return that metric in the window.
JSON schema
{
"description": "One sample of the numbers that matter for a Redis server. A field is `None`\nwhen the cloud did not return that metric in the window.",
"type": "object",
"properties": {
"connectedClients": {
"description": "Connected clients at the end of the window.",
"type": [
"number",
"null"
],
"format": "double"
},
"evictions": {
"description": "Keys evicted during the sampled window.",
"type": [
"number",
"null"
],
"format": "double"
},
"memoryUsedPercent": {
"description": "Memory used as a percentage of the configured maximum (0-100).",
"type": [
"number",
"null"
],
"format": "double"
},
"replicationLagSeconds": {
"description": "Replication lag in seconds, when a replica exists.",
"type": [
"number",
"null"
],
"format": "double"
}
}
}Fields§
§connected_clients: Option<f64>Connected clients at the end of the window.
evictions: Option<f64>Keys evicted during the sampled window.
memory_used_percent: Option<f64>Memory used as a percentage of the configured maximum (0-100).
replication_lag_seconds: Option<f64>Replication lag in seconds, when a replica exists.
Implementations§
Source§impl RedisMetricsSample
impl RedisMetricsSample
pub fn builder() -> RedisMetricsSample
Trait Implementations§
Source§impl Clone for RedisMetricsSample
impl Clone for RedisMetricsSample
Source§impl Debug for RedisMetricsSample
impl Debug for RedisMetricsSample
Source§impl Default for RedisMetricsSample
impl Default for RedisMetricsSample
Source§impl<'de> Deserialize<'de> for RedisMetricsSample
impl<'de> Deserialize<'de> for RedisMetricsSample
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<&RedisMetricsSample> for RedisMetricsSample
impl From<&RedisMetricsSample> for RedisMetricsSample
Source§fn from(value: &RedisMetricsSample) -> Self
fn from(value: &RedisMetricsSample) -> Self
Converts to this type from the input type.
Source§impl From<RedisMetricsSample> for RedisMetricsSample
impl From<RedisMetricsSample> for RedisMetricsSample
Source§fn from(value: RedisMetricsSample) -> Self
fn from(value: RedisMetricsSample) -> Self
Converts to this type from the input type.
Source§impl Serialize for RedisMetricsSample
impl Serialize for RedisMetricsSample
Source§impl TryFrom<RedisMetricsSample> for RedisMetricsSample
impl TryFrom<RedisMetricsSample> for RedisMetricsSample
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RedisMetricsSample) -> Result<Self, ConversionError>
fn try_from(value: RedisMetricsSample) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for RedisMetricsSample
impl Freeze for RedisMetricsSample
impl RefUnwindSafe for RedisMetricsSample
impl Send for RedisMetricsSample
impl Sync for RedisMetricsSample
impl Unpin for RedisMetricsSample
impl UnsafeUnpin for RedisMetricsSample
impl UnwindSafe for RedisMetricsSample
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