Replace fixed DSL fields with parameterized metric expressions
This commit is contained in:
@@ -23,11 +23,10 @@ def signal_queries(pace_low="6:30", pace_high="7:00", long_run=10, route_id=None
|
||||
'summarize sum(distance) as "Weekly km", count() as "Sessions"\nby week\ncompare none\nchart bar\ndisplay overlay',
|
||||
"half", "Weeks start Monday. The current week is incomplete. Recorded running only; other training or unimported runs may explain gaps."),
|
||||
("Performance ladder", "runs\n" + common +
|
||||
'summarize min(best_5km) as "Best 5 km", min(best_10km) as "Best 10 km"\nby month\ncompare none\nchart line\ndisplay overlay',
|
||||
'summarize min(best_time(5 km)) as "Best 5 km", min(best_time(10 km)) as "Best 10 km"\nby month\ncompare none\nchart line\ndisplay overlay',
|
||||
"half", "Fastest recorded elapsed windows inside each month's activities. Missing distances stay missing. These are not standardized races or terrain-matched performances."),
|
||||
("Long-run continuity", "days\n" + common +
|
||||
f"long run distance >= {long_run:g} km\n" +
|
||||
'summarize latest(days_since_long_run) as "Days since long run", latest(rolling_28d_distance) as "28-day km"\nby day\ncompare none\nchart line\ndisplay overlay',
|
||||
f'summarize latest(days_since_run(distance >= {long_run:g} km)) as "Days since long run", latest(rolling_sum(distance, 28 days)) as "28-day km"\nby day\ncompare none\nchart line\ndisplay overlay',
|
||||
"half", f"Long run means at least {long_run:g} km; edit this threshold. Daily values advance on rest days. No earlier qualifying run is missing rather than a fabricated gap. The 28-day window includes today and the preceding 27 local days."),
|
||||
("Endurance fade", "intervals\n" + common +
|
||||
"reduce by run min 20 min\nwhere elapsed >= 10 min\nand duration >= 25 s\n"
|
||||
@@ -37,13 +36,13 @@ def signal_queries(pace_low="6:30", pace_high="7:00", long_run=10, route_id=None
|
||||
'summarize heart_rate_drift as "Post-warm-up decoupling"\nby run\nsort by date asc\ncompare none\nchart line\nreference heart_rate_drift = 0 %',
|
||||
"half", "Matched moving-time halves after warm-up, with at least ten minutes of usable HR and terrain in each half. Hidden when halves differ more than 10% in speed or one percentage point in mean grade. Filtered windows need not be adjacent; the result remains descriptive."),
|
||||
("Daily workload and consistency", "days\n" + common +
|
||||
'summarize latest(rolling_7d_distance), latest(rolling_28d_distance), latest(run_day_streak)\nby day\ncompare none\nchart line\ndisplay overlay',
|
||||
'summarize latest(rolling_sum(distance, 7 days)), latest(rolling_sum(distance, 28 days)), latest(run_day_streak)\nby day\ncompare none\nchart line\ndisplay overlay',
|
||||
"half", "Daily workload includes rest days, uses local calendar windows and includes all recorded runs before filters. Streak returns to zero on a rest day."),
|
||||
("Longest run each week", "runs\n" + common +
|
||||
'summarize max(distance), count()\nby week\ncompare none\nchart bar',
|
||||
"half", "Weekly longest recorded distance and session count; inspect the full week's volume for concentration."),
|
||||
("Short-distance performance", "runs\n" + common +
|
||||
'summarize min(best_1km), min(best_2km)\nby month\ncompare none\nchart line\ndisplay overlay',
|
||||
'summarize min(best_time(1 km)), min(best_time(2 km))\nby month\ncompare none\nchart line\ndisplay overlay',
|
||||
"half", "Fastest recorded 1 km and 2 km elapsed windows; effort and terrain may differ."),
|
||||
("Recovery context", "health\n" + common +
|
||||
'summarize resting_hr, hrv, sleep_hours, stress\nby day\ncompare none\nchart line',
|
||||
|
||||
Reference in New Issue
Block a user