(
operation: PolicyDecisionOperation,
outcome: TelemetryOutcome,
rule_count: u64,
)
| 534 | } |
| 535 | |
| 536 | pub 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 | |
| 555 | pub fn emit_sandbox_activity_summary<I>( |
| 556 | network_activity_count: u64, |