pub struct RuntimeDiagnosticsViewV2 {Show 13 fields
pub schema_version: String,
pub observed_at: DateTime<Utc>,
pub component: RuntimeComponent,
pub lifecycle_state: RuntimeLifecycleStateV1,
pub tasks: RuntimeTaskSectionV2,
pub blocking: RuntimeBlockingSectionV2,
pub schedule: Option<RuntimeScheduleSectionV2>,
pub metadata: Option<RuntimeMetadataSectionV2>,
pub shutdown: Option<RuntimeShutdownSectionV2>,
pub details: Vec<RuntimeTaskDetailV2>,
pub detail_scan_budget: usize,
pub details_scanned: usize,
pub truncated: bool,
}Expand description
Versioned, bounded, and sanitized runtime diagnostics with explicit scopes.
Unlike RuntimeDiagnosticsViewV1, every section states the population it
covers, the payload separates a section that has no input from a section that
is empty, and a bounded detail list reports how much of the tree it examined
instead of presenting a partial list as the whole runtime.
Fields§
§schema_version: StringSchema identifier for this serialized diagnostics view.
observed_at: DateTime<Utc>UTC timestamp at which the snapshot was observed.
component: RuntimeComponentBounded component category that owns the runtime.
lifecycle_state: RuntimeLifecycleStateV1Current lifecycle state of the root task group.
tasks: RuntimeTaskSectionV2Bounded task counts and their scope.
blocking: RuntimeBlockingSectionV2Bounded blocking state and its scope.
schedule: Option<RuntimeScheduleSectionV2>Bounded scheduled-work aggregates, absent when the caller owns none.
metadata: Option<RuntimeMetadataSectionV2>Bounded retained-metadata state, absent when the caller owns no actor.
shutdown: Option<RuntimeShutdownSectionV2>The most recent shutdown result, absent until shutdown was attempted.
details: Vec<RuntimeTaskDetailV2>Bounded task details, empty unless a detail list was requested.
detail_scan_budget: usizeThe scan budget applied while collecting details.
details_scanned: usizeNumber of tasks examined while collecting details.
truncated: boolWhether any section, including the detail list, was cut short.
Implementations§
Source§impl RuntimeDiagnosticsViewV2
impl RuntimeDiagnosticsViewV2
Sourcepub const SCHEMA_VERSION: &'static str = "rocketmq.runtime-diagnostics.v2"
pub const SCHEMA_VERSION: &'static str = "rocketmq.runtime-diagnostics.v2"
Stable schema identifier emitted by RuntimeDiagnostics::view_v2.