pub struct Cogs {
pub max_queue_size: u64,
pub relay_resource_id: String,
}
Expand description
COGS configuration.
Fields§
§max_queue_size: u64
Maximium amount of COGS measurements allowed to backlog.
Any additional COGS measurements recorded will be dropped.
Defaults to 10_000
.
relay_resource_id: String
Relay COGS resource id.
All Relay related COGS measurements are emitted with this resource id.
Defaults to relay_service
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cogs
impl<'de> Deserialize<'de> for Cogs
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 Cogs
impl RefUnwindSafe for Cogs
impl Send for Cogs
impl Sync for Cogs
impl Unpin for Cogs
impl UnwindSafe for Cogs
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