Replace fixed DSL fields with parameterized metric expressions
This commit is contained in:
@@ -22,15 +22,8 @@ for key, label in (("grade", "Smoothed grade"), ("grade_variability", "Grade var
|
||||
metric(key, label, "%", "Recording-derived percentage; missing observations stay missing.")
|
||||
metric("matched_windows", "Matched windows", "windows", "Usable continuous recording windows.")
|
||||
metric("sessions", "Sessions", "runs", "Number of recorded running sessions on this local day.")
|
||||
metric("days_since_run", "Days since running", "days", "Local days since the latest recorded run.")
|
||||
metric("days_since_long_run", "Days since long run", "days",
|
||||
"Local days since a recorded run meeting the query's long-run distance threshold.")
|
||||
metric("effort_time", "Best effort time", "time", "Elapsed recorded best-effort window, in seconds.",
|
||||
{"s": 1, "min": 60})
|
||||
for km in (1, 2, 5, 10):
|
||||
metric(f"best_{km}km", f"Best {km} km", "time",
|
||||
"Fastest elapsed window within this run, not a standardized race result.",
|
||||
{"s": 1, "min": 60})
|
||||
for key, label, unit in (("resting_hr", "Resting HR", "bpm"),
|
||||
("hrv", "Overnight HRV", "ms"),
|
||||
("sleep_hours", "Sleep", "h"),
|
||||
|
||||
Reference in New Issue
Block a user