{"uid":"cap_L6PbwIpMHxMYDX81NrUv-","slug":"data-freshness-trailing-mean-series-secondary-measure-weighted-mean-d097a622","name":"Data Freshness Trailing Mean Series & Secondary-Measure Weighted Mean","description":"Data freshness — Trailing mean series + Secondary-measure weighted mean: Trailing mean series + Secondary-measure weighted mean for supplied data freshness records (age_minutes, record_count). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-analytics-06-151?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","age_minutes","record_count"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"age_minutes":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"record_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","age_minutes":10,"record_count":1,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","age_minutes":20,"record_count":2,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","age_minutes":15,"record_count":3,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","age_minutes":30,"record_count":4,"dataset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["age_minutes","record_count"],"type":"string","default":"age_minutes"},"window":{"type":"integer","default":2,"maximum":200,"minimum":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8WVtdB4mZX6mnZFzNarPU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a trailing mean series and a record-count-weighted mean for supplied data freshness records (age_minutes, record_count) across up to 200 rows, returning two independent analytical reports.","exampleAgentPrompt":"Can you run a trailing mean series and a record-count-weighted mean on my data freshness records? I have about 50 rows with age_minutes and record_count by dataset group and date, and I want a window size of 7 days focused on the age_minutes field.","exampleUseCases":[{"title":"Pipeline freshness trend monitoring","prompt":"I need to analyze how stale my data pipelines have been getting — I have 120 rows of daily freshness records with age_minutes and record_count per dataset group. Can you run a trailing mean with a window of 5 and also give me the record-count-weighted mean for age_minutes?"},{"title":"Data quality reporting for multiple groups","prompt":"For my weekly data quality report, can you compute both a rolling 10-period trailing mean series and a weighted mean (weighted by record_count) for the age_minutes field across my dataset groups? I'll send you 80 rows of freshness data."},{"title":"Detecting freshness degradation over time","prompt":"I want to see if my data is getting progressively staler — can you calculate a trailing mean series over a window of 3 and a secondary-measure weighted mean for age_minutes using my 40 rows of freshness records with dates, record counts, and dataset group labels?"}],"resultDescription":"Two independent analytical reports: (1) a trailing mean series computed over the specified window for the chosen field (age_minutes or record_count), and (2) a record-count-weighted mean for the supplied data freshness rows — both derived from the user-supplied dataset without any live lookup or external data.","failureModes":["Fewer than 1 or more than 200 rows submitted — request rejected","Invalid date format (not YYYY-MM-DD) — validation error","Window size outside range 2–200 — validation error","Null values in age_minutes or record_count may affect weighted mean calculation","Field value not one of the allowed enum values (age_minutes, record_count) — schema error","Missing required fields (row_id, dataset_group, date) — request rejected"],"whenToPreferThis":"Choose this endpoint when you need both a smoothed rolling/trailing mean time series AND a weighted mean in a single API call for data freshness metrics (age_minutes and record_count). It is purpose-built for data quality and pipeline freshness analytics on batches up to 200 rows, with no external lookups or predictions involved. Prefer this over general-purpose stats APIs when your data is specifically structured around dataset group freshness monitoring.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:12.793Z","isFirstParty":false,"canonicalSlug":"data-freshness-trailing-mean-series-secondary-measure-weighted-mean-d097a622"}