feat: add activity history, insights, and cat usage events

- Add activity history collection for cat usage events
- Add insight metrics (total cycles, average cycles, cycles today)
- Add cat usage events with weight for LR4
- Add intermediate state events (cycle started, cycle complete, etc.)
- Add pet visits_24h metric from weight history
- Add new LR4 metrics: lifetime_cycles, dfi_trigger_count, cat_detected
- Add configurable activity lookback window to prevent duplicate events
- Add API call delays to avoid rate limiting
- Update default poll interval to 5 minutes
- Update documentation with new metrics and events
This commit is contained in:
Tanishq Dubey
2025-12-16 15:37:34 -05:00
parent bbce85fa31
commit f126202410
6 changed files with 421 additions and 57 deletions

View File

@@ -15,6 +15,10 @@ datadog:
# Collector settings
collector:
poll_interval_seconds: 120 # How often to collect metrics (default: 2 minutes)
poll_interval_seconds: 300 # How often to collect metrics (default: 5 minutes)
include_pets: true # Include pet profile metrics
emit_events: true # Emit Datadog events for state changes
collect_activity_history: true # Fetch activity history for cat usage events
collect_insights: true # Fetch insight data (cycle counts, averages)
api_call_delay_seconds: 1.0 # Delay between API calls to avoid rate limits
activity_lookback_minutes: 10 # Only emit events for activities within this window