{"uid":"cap_bYn7VZhHGib57eGUciYD-","slug":"pipeline-durations-secondary-measure-weighted-mean-date-by-category-b4d293ff","name":"Pipeline Durations — Secondary-Measure Weighted Mean + Date by Category Pivot","description":"Pipeline durations — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot for supplied pipeline durations records (run_seconds, processed_rows). 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-05-185?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","run_seconds","processed_rows"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"run_seconds":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80},"processed_rows":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","run_seconds":10,"dataset_group":"group-a","processed_rows":1},{"date":"2026-10-02","row_id":"row-2","run_seconds":20,"dataset_group":"group-b","processed_rows":2},{"date":"2026-10-03","row_id":"row-3","run_seconds":15,"dataset_group":"group-a","processed_rows":3},{"date":"2026-10-04","row_id":"row-4","run_seconds":30,"dataset_group":"group-b","processed_rows":4}],"maxItems":200,"minItems":1},"field":{"enum":["run_seconds","processed_rows"],"type":"string","default":"run_seconds"}}},"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_Px6pmyQseCd76zrl1ukto","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 secondary-measure weighted mean and a date-by-category pivot table for supplied pipeline duration records (run_seconds, processed_rows), returning two analytical reports for up to 200 rows.","exampleAgentPrompt":"I have a batch of pipeline run records — each with a row_id, date, dataset_group, run_seconds, and processed_rows — can you compute the weighted mean of run_seconds (weighted by processed_rows) and also generate a date-by-category pivot table from this data?","exampleUseCases":[{"title":"ETL job duration weighted analysis","prompt":"Here are 150 pipeline run records with run_seconds and processed_rows for groups 'ingest', 'transform', and 'load' across the past month — calculate the weighted mean of run_seconds using processed_rows as the weight, and pivot the results by date and dataset_group."},{"title":"Data team daily pipeline reporting","prompt":"I need two reports on our daily pipeline performance: a weighted mean of processed_rows across our dataset groups, and a pivot showing processed_rows by date and group — here's the data for October, up to 200 rows."},{"title":"Pipeline capacity planning by group","prompt":"Can you analyze these pipeline duration records for groups 'group-a' and 'group-b' — give me the secondary-measure weighted mean of run_seconds and a date-by-category pivot so I can spot which groups are slowest on which days?"}],"resultDescription":"Two analytical reports derived from the supplied records: (1) a secondary-measure weighted mean of the selected field (run_seconds or processed_rows), weighted by the other measure; and (2) a date-by-category pivot table cross-tabulating the selected field by date and dataset_group. No external data is fetched; all computation is performed on the submitted rows.","failureModes":["Missing required fields (row_id, date, dataset_group, run_seconds, processed_rows) cause validation errors","More than 200 rows submitted exceeds the maxItems limit and will be rejected","Invalid date format (not YYYY-MM-DD) causes schema validation failure","Null values in run_seconds or processed_rows may affect weighted mean computation","Payment of 0.01 USDC not completed results in 402 response and no computation"],"whenToPreferThis":"Choose this endpoint when you have pipeline duration records with both run_seconds and processed_rows and need two specific computations — a secondary-measure weighted mean and a date-by-category pivot — in a single paid call. It is ideal for data engineering teams doing batch analytics on up to 200 ETL job records without needing an external database or BI tool.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:15.984Z","isFirstParty":false,"canonicalSlug":"pipeline-durations-secondary-measure-weighted-mean-date-by-category-b4d293ff"}