MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / emit_policy_decision

Function emit_policy_decision

crates/openshell-core/src/telemetry.rs:536–553  ·  view source on GitHub ↗
(
    operation: PolicyDecisionOperation,
    outcome: TelemetryOutcome,
    rule_count: u64,
)

Source from the content-addressed store, hash-verified

534}
535
536pub fn emit_policy_decision(
537 operation: PolicyDecisionOperation,
538 outcome: TelemetryOutcome,
539 rule_count: u64,
540) {
541 if !valid_count(rule_count) {
542 return;
543 }
544 emit_event(
545 "openshell_policy_decision_event",
546 json!({
547 "nvidiaSource": SOURCE.as_str(),
548 "operation": operation.as_str(),
549 "outcome": outcome.as_str(),
550 "ruleCount": rule_count,
551 }),
552 );
553}
554
555pub fn emit_sandbox_activity_summary<I>(
556 network_activity_count: u64,

Calls 2

valid_countFunction · 0.85
emit_eventFunction · 0.85