{"uid":"cap_Rqu_5CtMZYlBCEQTVa3qg","slug":"dataset-storage-trailing-mean-series-secondary-measure-weighted-mean-69e4a37e","name":"Dataset Storage — Trailing Mean Series + Secondary-Measure Weighted Mean","description":"Dataset storage — Trailing mean series + Secondary-measure weighted mean: Trailing mean series + Secondary-measure weighted mean for supplied dataset storage records (used_mb, row_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-18-151?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","used_mb","row_count"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"used_mb":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"row_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","used_mb":10,"row_count":1,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","used_mb":20,"row_count":2,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","used_mb":15,"row_count":3,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","used_mb":30,"row_count":4,"dataset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["used_mb","row_count"],"type":"string","default":"used_mb"},"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_ORHLF16pv5OaclTWlFOSX","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 moving average series and a secondary-measure weighted mean for dataset storage records (used_mb, row_count) supplied by the caller.","exampleAgentPrompt":"Can you run a trailing mean series with a window of 3 and a secondary-measure weighted mean on my storage records — the field I care about is used_mb — here are my rows: group-a on 2026-10-01 used 10 MB with 1 row, group-b on 2026-10-02 used 20 MB with 2 rows, group-a on 2026-10-03 used 15 MB with 3 rows?","exampleUseCases":[{"title":"Storage growth trend smoothing","prompt":"I have daily storage snapshots for two dataset groups over the past month — can you compute a trailing mean series with a window of 7 days on used_mb so I can see a smoothed growth trend, and also give me the row_count weighted mean using used_mb as the weight?"},{"title":"Capacity planning analytics report","prompt":"We track used_mb and row_count for our data warehouse partitions daily. Can you run both a trailing mean (window of 5) on used_mb and a secondary-measure weighted mean across our last 100 records so I can use these in our capacity planning dashboard?"},{"title":"Dataset group comparison via weighted mean","prompt":"I've got storage records split across three dataset groups and I want to understand the weighted average row_count, with used_mb as the weighting factor. Can you also give me the trailing mean series with a window of 4 for used_mb so I can see how each group's usage is trending?"}],"resultDescription":"Returns two analytical reports: (1) a trailing moving average series computed over the selected field (used_mb or row_count) using the specified window size, and (2) a secondary-measure weighted mean where one storage metric weights the average of the other — all computed locally from the supplied rows with no external lookups.","failureModes":["Fewer rows than window size makes trailing mean undefined for early entries","Missing required fields (row_id, date, dataset_group, used_mb, row_count) cause validation errors","Exceeding 200 rows returns an error or truncation","Null values in used_mb or row_count may produce partial or undefined weighted means","Invalid date format (not YYYY-MM-DD) causes schema validation failure","Supplying an unsupported field enum value causes rejection"],"whenToPreferThis":"Choose this endpoint when you need both a rolling/trailing moving average time series and a weighted mean statistic on dataset storage metrics (used_mb and row_count) from your own supplied data, in a single call. It is ideal for offline or batch analytics on stored datasets without requiring an external database connection. Prefer this over generic stats APIs when you specifically want two bundled storage-domain reports at low cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:46:41.747Z","isFirstParty":false,"canonicalSlug":"dataset-storage-trailing-mean-series-secondary-measure-weighted-mean-69e4a37e"}