pub struct BenchmarkEvent {
pub run_id: Uuid,
pub task_id: String,
pub step_id: Uuid,
pub ts: DateTime<Utc>,
pub policy_id: String,
pub cfg_hash: String,
pub env_hash: String,
pub seed: u64,
pub event_type: BenchmarkEventType,
pub data: Value,
}Expand description
Core benchmark event with required tracking fields
Fields§
§run_id: Uuid§task_id: String§step_id: Uuid§ts: DateTime<Utc>§policy_id: String§cfg_hash: String§env_hash: String§seed: u64§event_type: BenchmarkEventType§data: ValueImplementations§
Source§impl BenchmarkEvent
impl BenchmarkEvent
Sourcepub fn new(
run_id: Uuid,
task_id: String,
step_id: Uuid,
policy_id: String,
cfg_hash: String,
env_hash: String,
seed: u64,
event_type: BenchmarkEventType,
) -> Self
pub fn new( run_id: Uuid, task_id: String, step_id: Uuid, policy_id: String, cfg_hash: String, env_hash: String, seed: u64, event_type: BenchmarkEventType, ) -> Self
Create a new benchmark event with automatic timestamp
Sourcepub fn event_type_name(&self) -> &'static str
pub fn event_type_name(&self) -> &'static str
Get string representation of event type for ClickHouse
Trait Implementations§
Source§impl Clone for BenchmarkEvent
impl Clone for BenchmarkEvent
Source§fn clone(&self) -> BenchmarkEvent
fn clone(&self) -> BenchmarkEvent
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 BenchmarkEvent
impl Debug for BenchmarkEvent
Source§impl<'de> Deserialize<'de> for BenchmarkEvent
impl<'de> Deserialize<'de> for BenchmarkEvent
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 BenchmarkEvent
impl RefUnwindSafe for BenchmarkEvent
impl Send for BenchmarkEvent
impl Sync for BenchmarkEvent
impl Unpin for BenchmarkEvent
impl UnsafeUnpin for BenchmarkEvent
impl UnwindSafe for BenchmarkEvent
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