# Batch Job Resources – Secondary-Measure Weighted Mean

> Batch Job Resources – Secondary-Measure Weighted Mean is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Computes a secondary-measure weighted mean over a batch of batch-job resource records (up to 200 rows), weighting one numeric field by another.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-analytics-batch-job-resources-weighted-average?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/batch-job-resources-secondary-measure-weighted-mean-b32ba99d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LIDbvzo3f02azqI6VJz_F

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability batch-job-resources-secondary-measure-weighted-mean-b32ba99d -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/batch-job-resources-secondary-measure-weighted-mean-b32ba99d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
