pub struct CostTrackerStreamConfig {
pub shared_resource_id: String,
pub sample_rate: f64,
}Expand description
What a single backend reports for cost tracking, and how much of it.
A backend without one reports nothing.
§Example
storage_cogs:
shared_resource_id: bigtable_objectstore
sample_rate: 1.0Fields§
Identifies the storage backend resource.
This is meant to correspond to a shared_resource_id label on a provisioned
storage resource so that change stream data can be joined with other data about
the storage resource.
sample_rate: f64Proportion of records to report, in [0, 1].
1.0 reports every change. It can be lowered if the stream is under too much load
but beware: when the sample rate decreases, records that used to be tracked will
no longer be tracked. Stream consumers may have inconsistent state for them until
they expire.
Trait Implementations§
Source§impl Clone for CostTrackerStreamConfig
impl Clone for CostTrackerStreamConfig
Source§fn clone(&self) -> CostTrackerStreamConfig
fn clone(&self) -> CostTrackerStreamConfig
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 CostTrackerStreamConfig
impl Debug for CostTrackerStreamConfig
Source§impl<'de> Deserialize<'de> for CostTrackerStreamConfig
impl<'de> Deserialize<'de> for CostTrackerStreamConfig
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 CostTrackerStreamConfig
impl RefUnwindSafe for CostTrackerStreamConfig
impl Send for CostTrackerStreamConfig
impl Sync for CostTrackerStreamConfig
impl Unpin for CostTrackerStreamConfig
impl UnsafeUnpin for CostTrackerStreamConfig
impl UnwindSafe for CostTrackerStreamConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].