# Get only maneuversmaneuvers = client.list_patterns( satellite_id="STARLINK-1234", type="maneuver", lookback_days=90)for m in maneuvers: print(f"{m['timestamp']}: {m['subtype']}") print(f" Delta-V: {m['details']['delta_v_estimated_m_s']} m/s")
# Get anomaliesanomalies = client.list_patterns( satellite_id="DEBRIS-12345", type="anomaly", lookback_days=7)for a in anomalies: if a['subtype'] == "fragmentation": print(f"ALERT: Possible fragmentation at {a['timestamp']}")
# Set up anomaly monitoring via webhook# See /intelligence/webhooks for full webhook setupimport requestsrequests.post( "https://api.rotastellar.com/v1/patterns/monitor", headers={"Authorization": "Bearer rs_your_api_key"}, json={ "satellites": ["CRITICAL-SAT-1", "CRITICAL-SAT-2"], "types": ["anomaly", "proximity"], "min_confidence": 0.8, "webhook_url": "https://your-app.com/pattern-alerts" })
# Get 1-year pattern historyhistory = client.list_patterns( satellite_id="GEO-SAT-1", lookback_days=365)# Analyze maneuver frequencymaneuvers = [p for p in history if p['type'] == "maneuver"]print(f"Total maneuvers: {len(maneuvers)}")print(f"Station-keeping: {sum(1 for m in maneuvers if m['subtype'] == 'station_keeping')}")