{"uid":"cap_pHNw52WFReUdeqsbfK9aI","slug":"delx-sla-breach-count-f83c8a4d","name":"Delx SLA Breach Count","description":"Count SLA breaches in a latency sample against a millisecond threshold — call when counting latency samples above an SLA. Use for SRE/ops math agents buy from broad utility catalogs: SLA, error budget, success rate, and health scores with zero upstream cost. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media g…","url":"https://api.delx.ai/api/v1/x402/sla-breach-count","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_RX-N2qwR-JwHkE25I1nnM","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 the number of latency samples that exceed a given SLA threshold in milliseconds, returning a deterministic breach count.","exampleAgentPrompt":"Count how many of these latency samples breach my 200ms SLA: [145, 210, 98, 305, 189, 420, 175, 310] — I need the exact breach count.","exampleUseCases":[{"title":"Error budget SLA violation tracking","prompt":"I have these request latencies in milliseconds — [120, 340, 89, 410, 200, 155, 290, 510] — and my SLA threshold is 300ms. Count how many of those samples are SLA breaches so I can update my error budget."},{"title":"Post-incident latency audit","prompt":"After last night's incident, I have 10 latency readings: [180, 220, 450, 390, 110, 600, 175, 280, 500, 95]. My SLA is 250ms. How many breached the SLA?"},{"title":"Automated SLO compliance check","prompt":"Check these p95 latency samples against a 400ms SLA threshold and tell me the breach count: [380, 410, 395, 425, 360, 440, 370, 415]."}],"resultDescription":"Returns a deterministic JSON object containing the count of latency samples that exceed the specified SLA threshold, along with details such as which samples breached and optionally the breach rate, enabling downstream SRE calculations like error budget consumption.","failureModes":["Missing sla_ms field returns validation error","Empty samples_ms array returns breach count of zero","Non-numeric values in samples_ms array cause parsing errors","Negative latency values may be accepted but produce unexpected results","Network timeout results in no response from endpoint"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, zero-cost-upstream computation to count how many latency samples exceed a defined SLA threshold — particularly in SRE pipelines, error budget calculations, or health scoring workflows where deterministic, machine-readable output is required without relying on external data sources or paid upstream services.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:54:05.084Z","isFirstParty":false}