pub struct ProjectTemplate {
pub project_id: ProjectId,
pub customer_id: CustomerId,
pub poll_rate_sec: i64,
pub metrics: Vec<MetricTemplate>,
}
Expand description
Configuration for a single FIRE project template to map Inspect data to its Cobalt metrics for all components in the ComponentIdInfo. Just like ProjectConfig except it uses MetricTemplate instead of MetricConfig.
Fields§
§project_id: ProjectId
Project ID that metrics are being sampled and forwarded on behalf of.
customer_id: CustomerId
Customer ID that metrics are being sampled and forwarded on behalf of. This will default to 1 if not specified.
poll_rate_sec: i64
The frequency with which metrics are sampled, in seconds.
metrics: Vec<MetricTemplate>
The collection of mappings from Inspect to Cobalt.
Implementations§
Source§impl ProjectTemplate
impl ProjectTemplate
pub fn expand( self, components: &ComponentIdInfoList, ) -> Result<ProjectConfig, Error>
Trait Implementations§
Source§impl Debug for ProjectTemplate
impl Debug for ProjectTemplate
Source§impl<'de> Deserialize<'de> for ProjectTemplate
impl<'de> Deserialize<'de> for ProjectTemplate
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 ProjectTemplate
impl PartialEq for ProjectTemplate
Source§impl Serialize for ProjectTemplate
impl Serialize for ProjectTemplate
impl Eq for ProjectTemplate
impl StructuralPartialEq for ProjectTemplate
Auto Trait Implementations§
impl Freeze for ProjectTemplate
impl RefUnwindSafe for ProjectTemplate
impl Send for ProjectTemplate
impl Sync for ProjectTemplate
impl Unpin for ProjectTemplate
impl UnwindSafe for ProjectTemplate
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more