{"uid":"cap_LIDbvzo3f02azqI6VJz_F","slug":"batch-job-resources-secondary-measure-weighted-mean-b32ba99d","name":"Batch Job Resources – Secondary-Measure Weighted Mean","description":"Batch job resources - Secondary-measure weighted mean: Secondary-measure weighted mean for Batch job resources. Up to 200 supplied typed records. Local descriptive analytics; no enrichment or forecast. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded secondary-measure weighted mean report.","url":"https://market.datapackvibe.com/x402/assistant-ar-analytics-batch-job-resources-weighted-average?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","job","date","duration_seconds","peak_memory_mb"],"properties":{"job":{"type":"string","default":"","maxLength":80},"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"peak_memory_mb":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"duration_seconds":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"job":"group-a","date":"2026-10-01","row_id":"row-1","peak_memory_mb":1,"duration_seconds":10},{"job":"group-b","date":"2026-10-02","row_id":"row-2","peak_memory_mb":2,"duration_seconds":20},{"job":"group-a","date":"2026-10-03","row_id":"row-3","peak_memory_mb":3,"duration_seconds":15},{"job":"group-b","date":"2026-10-04","row_id":"row-4","peak_memory_mb":4,"duration_seconds":30}],"maxItems":200,"minItems":1},"field":{"enum":["duration_seconds","peak_memory_mb"],"type":"string","default":"duration_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_I81la17poTM6McQIL9_dP","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 over a batch of batch-job resource records (up to 200 rows), weighting one numeric field by another.","exampleAgentPrompt":"I have 50 batch job records with job names, dates, duration_seconds, and peak_memory_mb — can you compute the duration_seconds weighted mean using peak_memory_mb as the secondary weight measure and give me a summary report?","exampleUseCases":[{"title":"Memory-weighted runtime analysis","prompt":"Here are 120 batch job records from last month with job names, dates, durations in seconds, and peak memory usage in MB — compute the duration_seconds weighted mean using peak_memory_mb as the weight so I can see which jobs consume disproportionate runtime relative to their memory footprint."},{"title":"Job group resource comparison","prompt":"I've got two groups of batch jobs, group-a and group-b, each with about 80 rows of dates, duration_seconds, and peak_memory_mb data — can you compute the peak_memory_mb weighted mean using duration_seconds as the weight so I can compare resource intensity across the two groups?"},{"title":"Weekly job performance summary","prompt":"Pull together a secondary-measure weighted mean report for our 150 weekly batch job runs — the records have row IDs, job names, dates, duration in seconds, and peak memory in MB, and I want the weighted average for duration_seconds weighted by peak_memory_mb."}],"resultDescription":"A bounded descriptive analytics report containing the secondary-measure weighted mean of the chosen field (duration_seconds or peak_memory_mb), computed across all submitted batch job resource rows. No enrichment, forecasting, or external data is involved — purely local aggregation over the supplied records.","failureModes":["Exceeding 200 rows returns a validation error","Missing required fields (row_id, job, date, duration_seconds, peak_memory_mb) causes a schema rejection","Invalid date format (non-YYYY-MM-DD) fails pattern validation","Both numeric fields null for all rows may produce undefined/null result","Payment failure via x402 returns 402 with no computation performed"],"whenToPreferThis":"Choose this endpoint when you have up to 200 batch job resource records and need a secondary-measure weighted mean — specifically when one numeric metric (e.g. memory) should weight the average of another (e.g. duration). Prefer it over generic statistics APIs when your data fits the batch-job domain schema (job name, date, duration_seconds, peak_memory_mb) and you want a low-cost ($0.01 USDC), self-contained local computation with no external data enrichment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:01:12.205Z","isFirstParty":false,"canonicalSlug":"batch-job-resources-secondary-measure-weighted-mean-b32ba99d"}