pub struct TelemetryData {
pub function_name: String,
pub duration_ms: Option<f64>,
pub timestamp: Option<f64>,
pub props: Option<HashMap<String, Value>>,
pub source: Option<SourceData>,
pub metadata: Option<Metadata>,
pub error: Option<ErrorData>,
}Expand description
Telemetry data structure
Fields§
§function_name: StringThe name of the function that was invoked
duration_ms: Option<f64>The duration of the function invocation in milliseconds
timestamp: Option<f64>The timestamp of the function invocation in epoch seconds
props: Option<HashMap<String, Value>>The properties of the function invocation
source: Option<SourceData>Source of the metric
metadata: Option<Metadata>Runtime metadata
error: Option<ErrorData>Error data
Trait Implementations§
Source§impl Clone for TelemetryData
impl Clone for TelemetryData
Source§fn clone(&self) -> TelemetryData
fn clone(&self) -> TelemetryData
Returns a duplicate of the value. Read more
1.0.0 · 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 TelemetryData
impl Debug for TelemetryData
Source§impl Default for TelemetryData
impl Default for TelemetryData
Source§fn default() -> TelemetryData
fn default() -> TelemetryData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelemetryData
impl<'de> Deserialize<'de> for TelemetryData
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 TelemetryData
impl RefUnwindSafe for TelemetryData
impl Send for TelemetryData
impl Sync for TelemetryData
impl Unpin for TelemetryData
impl UnsafeUnpin for TelemetryData
impl UnwindSafe for TelemetryData
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