{"uid":"cap_YAumUZ3aOBS6wV5ckkKJ-","slug":"detection-rules-analytics-numeric-row-ordering-secondary-measure-a8d841c1","name":"Detection Rules Analytics — Numeric Row Ordering + Secondary-Measure Weighted Mean","description":"Detection rules — Numeric row ordering + Secondary-measure weighted mean: Numeric row ordering + Secondary-measure weighted mean for supplied detection rules records (rule_count, alert_count). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-security-17-121?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","control_group","date","rule_count","alert_count"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"rule_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"alert_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"control_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","rule_count":10,"alert_count":1,"control_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","rule_count":20,"alert_count":2,"control_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","rule_count":15,"alert_count":3,"control_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","rule_count":30,"alert_count":4,"control_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["rule_count","alert_count"],"type":"string","default":"rule_count"}}},"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_23rOfUhFuyztiyF0_j7pl","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":"Performs numeric row ordering and secondary-measure weighted mean analysis on detection rules data (rule_count, alert_count), returning two analytical reports for up to 200 rows.","exampleAgentPrompt":"Can you rank my detection rules records by rule_count and also compute the alert_count weighted mean? I have 4 rows: row-1 on 2026-10-01 with rule_count=10 and alert_count=1 in group-a, row-2 on 2026-10-02 with rule_count=20 and alert_count=2 in group-b, row-3 on 2026-10-03 with rule_count=15 and alert_count=3 in group-a, and row-4 on 2026-10-04 with rule_count=30 and alert_count=4 in group-b.","exampleUseCases":[{"title":"Ranking detection rules by alert volume","prompt":"I have a list of security detection rules with their daily alert counts across two groups — can you numerically rank them by alert_count and compute the weighted mean so I can see which rules are generating the most noise?"},{"title":"Comparing rule counts across control groups","prompt":"We're reviewing our detection rule rollout across group-a and group-b over October. Can you order our 8 detection rule records by rule_count and compute the secondary-measure weighted mean for alert_count to compare group performance?"},{"title":"Weekly security analytics summary","prompt":"Every Monday I need a ranked ordering plus weighted mean analysis of last week's detection rules data — here are 12 rows with rule_count and alert_count per day, can you run both reports using rule_count as the primary field?"}],"resultDescription":"Returns two analytical reports: (1) numeric row ordering of the submitted detection rules records sorted by the selected field (rule_count or alert_count), and (2) a secondary-measure weighted mean calculation across the dataset. Both reports are computed locally from supplied data with no external lookups.","failureModes":["Fewer than 1 row submitted — minItems validation error","More than 200 rows submitted — maxItems exceeded error","Missing required fields (row_id, control_group, date, rule_count, alert_count) — schema validation failure","Invalid date format (not YYYY-MM-DD) — pattern validation error","row_id or control_group exceeds 80 characters — maxLength error","Numeric values outside allowed range (±1,000,000,000,000) — range validation error","Invalid field enum value (not rule_count or alert_count) — enum validation error"],"whenToPreferThis":"Choose this endpoint when you need to statistically analyze a batch of detection rules records (up to 200 rows) and require both a ranked numeric ordering and a weighted mean of a secondary measure in a single call. Ideal for security analysts who want two complementary statistical views of rule_count and alert_count data without building custom analytics. Not suitable for real-time threat detection, live rule lookups, or datasets larger than 200 rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T18:52:00.309Z","isFirstParty":false,"canonicalSlug":"detection-rules-analytics-numeric-row-ordering-secondary-measure-a8d841c1"}