{"uid":"cap_mqGpfDuoKaRrELlWU6vZK","slug":"water-monitoring-trailing-mean-series-84d474b2","name":"Water Monitoring Trailing Mean Series","description":"Water monitoring - Trailing mean series: Trailing mean series for Water monitoring. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded trailing mean series deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-water-monitoring-rolling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","site","date","litres","cost"],"properties":{"cost":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"site":{"type":"string","default":"","maxLength":80},"litres":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1}},"additionalProperties":false},"default":[{"cost":1,"date":"2026-10-01","site":"group-a","litres":10,"row_id":"row-1"},{"cost":2,"date":"2026-10-02","site":"group-b","litres":20,"row_id":"row-2"},{"cost":3,"date":"2026-10-03","site":"group-a","litres":15,"row_id":"row-3"},{"cost":4,"date":"2026-10-04","site":"group-b","litres":30,"row_id":"row-4"}],"maxItems":200,"minItems":1},"field":{"enum":["litres","cost"],"type":"string","default":"litres"},"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_Ej1s8iCw8j9gnIUgptf_v","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 (rolling) mean series over water monitoring records (litres or cost) grouped by site and date, up to 200 rows.","exampleAgentPrompt":"Take my water monitoring records for sites group-a and group-b from October 1–4 and calculate a trailing mean series on the litres field with a window of 3.","exampleUseCases":[{"title":"Smoothing daily site water consumption","prompt":"I have daily water usage readings in litres for three sites over the past 30 days — can you calculate a 7-day trailing mean series so I can see the smoothed consumption trend per site?"},{"title":"Rolling average cost analysis for utilities","prompt":"Here are 60 rows of water cost records by site and date. Compute a trailing mean series on the cost field with a window of 5 so I can spot spend trends without one-off spikes distorting the picture."},{"title":"Detecting anomalies in water usage data","prompt":"I want to compare raw daily litres to a 10-day rolling average for our monitoring sites — can you run a trailing mean series on these 120 water monitoring records using the litres field and a window of 10?"}],"resultDescription":"A series of trailing mean values computed over the specified numeric field (litres or cost), keyed per row, reflecting the rolling average over the chosen window size. Output is bounded to the supplied rows (up to 200) with no external enrichment or forecasting — purely local numeric processing.","failureModes":["Fewer rows supplied than the window size, producing no complete trailing windows","Invalid date format (not YYYY-MM-DD) causing schema validation failure","Null values in the selected field reducing effective window completeness","Exceeding 200 row limit returns a validation error","Invalid field enum value (must be 'litres' or 'cost') causes rejection"],"whenToPreferThis":"Choose this endpoint when you need a fast, inexpensive ($0.01 USDC) local rolling mean computation on typed water monitoring records without needing external data enrichment or forecasting. It is ideal for smoothing daily site-level water usage or cost data, detecting trends, or preparing data for downstream analysis — particularly when working with up to 200 timestamped records across multiple sites.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:29.976Z","isFirstParty":false,"canonicalSlug":"water-monitoring-trailing-mean-series-84d474b2"}