pub struct ProjectConfig {
pub project_id: u32,
pub poll_rate_sec: i64,
pub metrics: Vec<MetricConfig>,
/* private fields */
}
Expand description
Configuration for a single project to map Inspect data to its Cobalt metrics.
Fields§
§project_id: u32
Project ID that metrics are being sampled and forwarded on behalf of.
poll_rate_sec: i64
The frequency with which metrics are sampled, in seconds.
metrics: Vec<MetricConfig>
The collection of mappings from Inspect to Cobalt.
Implementations§
Source§impl ProjectConfig
impl ProjectConfig
Sourcepub fn customer_id(&self) -> u32
pub fn customer_id(&self) -> u32
Customer ID that metrics are being sampled and forwarded on behalf of. This will default to 1 if not specified.
Trait Implementations§
Source§impl Debug for ProjectConfig
impl Debug for ProjectConfig
Source§impl<'de> Deserialize<'de> for ProjectConfig
impl<'de> Deserialize<'de> for ProjectConfig
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 PartialEq for ProjectConfig
impl PartialEq for ProjectConfig
impl StructuralPartialEq for ProjectConfig
Auto Trait Implementations§
impl Freeze for ProjectConfig
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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