pub struct TelemetryUsageExtractor;Expand description
Holds telemetry usage extractor application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Implementations§
Source§impl TelemetryUsageExtractor
impl TelemetryUsageExtractor
Sourcepub fn extract_from_event(
input: TelemetryUsageExtractionInput,
) -> Result<TelemetryProjection, AgentError>
pub fn extract_from_event( input: TelemetryUsageExtractionInput, ) -> Result<TelemetryProjection, AgentError>
Returns extract from event derived from the supplied state. This uses only local coordinator state and performs no hidden host work.
Sourcepub fn usage_record(
projection: &TelemetryProjection,
usage_record_id: impl Into<String>,
) -> TelemetryRecord
pub fn usage_record( projection: &TelemetryProjection, usage_record_id: impl Into<String>, ) -> TelemetryRecord
Builds the usage record record for this contract. This builds a telemetry usage record from already redacted accounting data without exporting it.
Auto Trait Implementations§
impl Freeze for TelemetryUsageExtractor
impl RefUnwindSafe for TelemetryUsageExtractor
impl Send for TelemetryUsageExtractor
impl Sync for TelemetryUsageExtractor
impl Unpin for TelemetryUsageExtractor
impl UnsafeUnpin for TelemetryUsageExtractor
impl UnwindSafe for TelemetryUsageExtractor
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