{"uid":"cap_W4YsLLe1D7RK6vfHfaMoV","slug":"delx-commerce-sla-breach-count-f189c216","name":"Delx Commerce SLA Breach Count","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/sla-breach-count?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sla_ms":{"type":"number","description":"SLA latency threshold in milliseconds."},"samples_ms":{"type":"array","description":"Latency samples in milliseconds to count SLA breaches."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-sla-breach-count/v1","sla_ms":500,"breach_count":1,"sample_count":3,"breach_percent":33.3333}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wEZKaI2EAfaAV3oxlk43v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts how many latency samples exceed a given SLA threshold and returns the breach count and percentage.","exampleAgentPrompt":"I have these latency samples in milliseconds — 120, 450, 620, 310, 870 — and my SLA threshold is 500ms. How many of those samples breach the SLA and what's the breach percentage?","exampleUseCases":[{"title":"API performance SLA audit","prompt":"I ran 10 requests to my payment service and got these response times in ms: 200, 480, 550, 620, 190, 700, 310, 490, 810, 250. My SLA says responses must be under 500ms — how many breaches do I have and what percentage is that?"},{"title":"Agent fleet latency compliance check","prompt":"My agent fleet logged these execution times in milliseconds: 340, 510, 290, 670, 480, 720, 350. Can you tell me how many of those exceed a 500ms SLA and what fraction that represents?"},{"title":"Post-deploy regression check","prompt":"After our latest deploy, I collected these API latency samples: 150, 900, 430, 560, 210, 770, 320, 480. Our SLA threshold is 600ms — how many breaches occurred and what's the breach rate?"}],"resultDescription":"Returns a JSON object containing the SLA threshold used, total number of samples, count of samples that breached the threshold, and breach percentage (e.g. {schema: 'delx/util-sla-breach-count/v1', sla_ms: 500, breach_count: 1, sample_count: 3, breach_percent: 33.33}).","failureModes":["Missing sla_ms or samples_ms fields returns a validation error","Empty samples array may return zero counts or an error","Non-numeric values in samples_ms array may cause a parse or computation error","Payment failure via x402 protocol returns 402 and no result"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-use computation of SLA breach counts and percentages from raw latency samples, without setting up your own monitoring infrastructure. Ideal for agents that need on-demand SLA compliance checks as part of an automated observability or alerting workflow, especially when no persistent monitoring service is warranted.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:53.466Z","isFirstParty":false,"canonicalSlug":"delx-commerce-sla-breach-count-f189c216"}