Change Detection
How Knowledge Tree tracks infrastructure changes between discovery runs and surfaces them in a change feed.
How It Works
After each discovery run, Knowledge Tree compares the current state of resources against the previous snapshot. Differences are recorded aschanges in a change feed, with severity ratings and affected resource counts.
Configuration
Enable change detection in your config:
change_detection:
enabled: true
snapshot_interval: 15m
retention_count: 10Change Types
| Type | Description |
|---|---|
created | New resource discovered |
updated | Resource properties changed |
deleted | Resource no longer present |
relationship_added | New edge between resources |
relationship_removed | Edge no longer exists |
Change Feed API
# List recent changes
curl http://localhost:8080/api/v1/changes/
# Get change statistics
curl http://localhost:8080/api/v1/changes/statsThe change feed returns paginated results with the resource ID, change type, old and new values, and a timestamp.