API «Կեսին անցնելու լավագույն ժամ» Online
Տիպիական շաբաթվա վիճակագրություն ստուգիչ կետի համար. 7×24 մատրիցա շաբաթ-օր×ժամ (միջին + p25/p75 շերտ), ամենախաղաղ/ծանրաբեռնված օրը, լավագույն/վատ 2-ժամյա պատուհաններ:
GET https://nakordoni.eu/api/v1/data/day-stats
— քվոտայի դաս: cheap
| Պարամետր | Նկարագրություն |
|---|---|
ppid | Ստուգիչ կետի ID |
lang | Լեզվի կոդ |
Պատասխանի դաշտերը — պատասխանի ծրարի data օբյեկտի ներսում։ []-ը ցույց է տալիս ցուցակ, ուստի data.items[].name-ը յուրաքանչյուր տարրի name դաշտն է։ Դաշտը լինում է null, բացակայում է կամ դատարկ ցուցակ է, երբ արժեք չունենք․ լցոնող արժեք երբեք չենք դնում։
| Դաշտ | Նկարագրություն |
|---|---|
data.matrix | 7×24 median queue: matrix[dayOfWeek][hour], day 0 = Monday, hours in the checkpoint's timezone (data.tz). |
data.lo | Same 7×24 shape — the p25 floor of the band; hi is the p75 ceiling. |
data.counts | Observations behind each cell — a cell with few counts is a weak median. |
data.weekday_avg | Seven averages, one per weekday; best_day and worst_day index into them. |
data.best_slots[] | Quietest 2-hour windows: dow, hour, v (the value). worst_slots is the same for the busiest. |
data.overall_avg | Average across the whole matrix, with overall_max. |
data.samples | Readings the matrix was built from, over period_days; data_quality grades that sample. |
data.generated_at | When the matrix was last recomputed (unix). It is precomputed daily, not per request. |
curl "https://nakordoni.eu/api/v1/data/day-stats?ppid=id_13&lang=en" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Մուտք գործեք որպես ծրագրավորող՝ այս endpoint-ը ուղիղ Sandbox-ում փորձելու համար — օրական 50 անվճար թեստային կանչ։ Մուտք