{"slug":"api-zfinia-com-x402-v1-telemetry-attribute-contract-audit-b4ac70","title":"Audit telemetry attributes against a contract, and against the thing a schema ca","host":"api.zfinia.com","method":"POST","resource":"https://api.zfinia.com/x402/v1/telemetry-attribute-contract-audit","category":"code","description":"Audit telemetry attributes against a contract, and against the thing a schema cannot see: cardinality. Reports missing required attributes, undeclared attributes, an attribute appearing as two types across the batch, and an attribute whose distinct values exceed your limit - because in a metrics bac","price_listed":0.12,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"attribute_pointer":"/attributes","cardinality_limit":3,"contract":{"optional":["region"],"required":["service","environment"],"types":{"environment":"string","latency_ms":"number","service":"string"}},"records":[{"attributes":{"environment":"prod","latency_ms":31.2,"region":"ap-southeast-2","request_id":"r-1","service":"checkout"},"name":"http.request"},{"attributes":{"environment":"prod","latency_ms":44,"region":"ap-southeast-2","request_id":"r-2","service":"checkout"},"name":"http.request"},{"attributes":{"environment":"prod","latency_ms":"51","request_id":"r-3","service":"checkout"},"name":"http.request"},{"attributes":{"environment":"prod","latency_ms":28,"request_id":"r-4","service":"checkout"},"name":"http.request"},{"name":"http.request"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"attribute_pointer":{"maxLength":512,"type":"string"},"cardinality_limit":{"minimum":1,"type":"integer"},"contract":{"additionalProperties":false,"properties":{"allow_undeclared":{"type":"boolean"},"optional":{"items":{"maxLength":256,"type":"string"},"maxItems":500,"minItems":1,"type":"array"},"required":{"items":{"maxLength":256,"type":"string"},"maxItems":500,"minItems":1,"type":"array"},"types":{"type":"object"}},"type":"object"},"records":{"items":{"type":"object"},"maxItems":2000,"minItems":1,"type":"array"}},"required":["records","contract"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Audit telemetry attributes against a contract, and against the thing a schema cannot see: cardinality. Reports missing required attributes, undeclared attributes, an attribute appearing as two types across the batch, and an attribute whose distinct values exceed your limit - because in a metrics backend each distinct value is a separate series, and that is how an index or a bill explodes.","last_updated":"2026-10-04T07:59:43.768Z","schemes":["exact"]}