snapshot_diff
Compute differences between two OpenSIPS snapshots to surface changes in statistics, processes, dispatcher states, and cluster-node status, omitting unchanged keys for a compact diff.
Instructions
Diff two snapshots and surface the deltas.
Computes per-stat deltas (after - before), flags processes that appeared or disappeared, dispatcher / load_balancer state changes, and cluster-node status flips. Unchanged keys are omitted by default.
Parameters
before_path:
Path to the baseline snapshot JSON.
after_path:
Path to the comparison snapshot JSON.
show_unchanged:
If True, include keys whose values did not change. Default
False — diff output stays compact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before_path | Yes | ||
| after_path | Yes | ||
| show_unchanged | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||