Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/event_type_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ use std::collections::HashMap;
use std::sync::LazyLock;
use utoipa::ToSchema;

/// Metadata for a single telemetry event type.
/// One JIP-3 telemetry event type.
#[derive(Debug, Clone, Serialize, ToSchema)]
pub struct EventTypeMeta {
/// Numeric event type ID
/// Numeric event type ID as defined in JIP-3
pub id: i16,
/// Human-readable event name (e.g. "Authored", "WorkPackageFailed")
/// Canonical event name (e.g. "Authored", "WorkPackageFailed")
pub name: &'static str,
/// Event group (e.g. "blocks", "wp_pipeline", "failures")
/// Event group this type belongs to (e.g. "blocks", "wp_pipeline", "failures")
pub group: &'static str,
}

Expand Down
Loading
Loading