{"uid":"cap_ZqF_jcdv5E3kR8XwKJyw_","slug":"validation-rule-results-duplicate-key-report-trailing-mean-series-3a5bb96e","name":"Validation Rule Results — Duplicate Key Report + Trailing Mean Series","description":"Validation rule results — Duplicate key report + Trailing mean series: Duplicate key report + Trailing mean series for supplied validation rule results records (passed_rules, total_rules). Up to 200 …","url":"https://market.datapackvibe.com/x402/assistant-ib26-analytics-08-061?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","passed_rules","total_rules"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"total_rules":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"passed_rules":{"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","total_rules":1,"passed_rules":10,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","total_rules":2,"passed_rules":20,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","total_rules":3,"passed_rules":15,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","total_rules":4,"passed_rules":30,"dataset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["passed_rules","total_rules"],"type":"string","default":"passed_rules"},"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_KcErzs8ae9rGZcC2cABDq","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":"Analyzes validation rule result records to detect duplicate keys and compute a trailing mean time series for passed_rules or total_rules metrics.","exampleAgentPrompt":"Check my validation rule results for duplicate keys and compute a trailing mean for passed_rules with a window of 3 — here are my records: row-1 on 2026-10-01 in group-a with 10 passed out of 1 total, row-2 on 2026-10-02 in group-b with 20 passed out of 2 total, row-3 on 2026-10-03 in group-a with 15 passed out of 3 total.","exampleUseCases":[{"title":"Monitor data pipeline validation health","prompt":"I have daily validation rule results from two dataset groups — can you flag any duplicate row IDs and show me a trailing mean of passed_rules with a window of 5 so I can spot quality regressions over time?"},{"title":"Audit rule compliance for a regulatory report","prompt":"Run a duplicate key check and compute a 7-day trailing mean of total_rules for my validation records across group-a and group-b, covering the last two weeks of October 2026."},{"title":"Detect anomalies in ETL validation output","prompt":"My ETL job produces validation rule result rows daily — can you scan them for duplicate keys and give me a smoothed trailing mean of passed_rules with window size 4 to help me spot anomalies?"}],"resultDescription":"Returns a duplicate key report identifying any row_id values that appear more than once in the input, plus a trailing mean time series for the selected field (passed_rules or total_rules) computed over the specified rolling window across the submitted records.","failureModes":["Fewer than 1 row submitted — validation error","More than 200 rows submitted — exceeds maxItems limit","Invalid date format (not YYYY-MM-DD) — schema validation failure","Window size below 2 or above 200 — rejected input","Unknown field value outside enum ['passed_rules','total_rules'] — schema error","Null numeric values may affect trailing mean computation"],"whenToPreferThis":"Choose this endpoint when you need to simultaneously detect duplicate key issues and compute smoothed rolling averages in validation rule result datasets. It is purpose-built for data quality monitoring workflows where both data integrity (duplicates) and trend analysis (trailing mean) on rule pass/fail counts are needed together. Prefer it over generic analytics endpoints when your data follows the row_id + dataset_group + date + passed_rules + total_rules schema.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T00:37:13.521Z","isFirstParty":false,"canonicalSlug":"validation-rule-results-duplicate-key-report-trailing-mean-series-3a5bb96e"}