{"uid":"cap_BK_ke-TtRnEh2HtIQDgYF","slug":"cloudworldmodel-autoscaling-threshold-optimizer-65fda03f","name":"CloudWorldModel Autoscaling Threshold Optimizer","description":"Simulate AWS, GCP, Azure, OCI, and DigitalOcean cloud infrastructure without provisioning real resources. Built for Canvas Cloud AI learners and agents.","url":"https://www.cloudworldmodel.ai/api/predictions/optimize-thresholds","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"testSteps":{"type":"number","description":"Simulation steps to run (default 100)"},"simulationId":{"type":"string"},"trafficForecast":{"type":"object","required":["name","dataPoints"],"properties":{"name":{"type":"string"},"avgRPS":{"type":"number"},"peakRPS":{"type":"number"},"dataPoints":{"type":"array","items":{"type":"object","required":["timestamp","rps"],"properties":{"rps":{"type":"number"},"label":{"type":"string"},"timestamp":{"type":"number"}}}},"description":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"job":{"id":"job-id","type":"optimize_thresholds","status":"pending","createdAt":"2024-01-01T00:00:00.000Z"},"message":"Validation job created and processing started"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U-jPbDlz3KjrTIT4zCVAo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes traffic forecast and simulation results to recommend optimal autoscaling thresholds for cloud infrastructure.","exampleAgentPrompt":"Based on my simulation ID 'sim-20240601' and a traffic forecast peaking at 8500 RPS with an average of 2200 RPS across these hourly data points, run 150 simulation steps and tell me what autoscaling thresholds I should configure.","exampleUseCases":null,"resultDescription":"Returns recommended autoscaling threshold values derived from the simulation run — including scale-up and scale-down trigger points calibrated to the provided traffic forecast and RPS patterns.","failureModes":["Invalid simulationId returns 404 or error indicating simulation not found","Missing required trafficForecast fields (name, dataPoints) returns 400 bad request","Malformed dataPoints array (missing timestamp or rps) causes validation error","Payment not included or insufficient USDC triggers 402 Payment Required","testSteps value out of accepted range may return an error or be clamped to default","Simulation not yet advanced enough to produce meaningful threshold recommendations"],"whenToPreferThis":"Use this endpoint when you have an active cloud simulation and traffic forecast data and need data-driven autoscaling threshold recommendations. It is distinct from static rule-based autoscaling configs because it incorporates simulation dynamics and RL-style optimization from CloudWorldModel's hybrid engine, making it especially useful after running traffic spike or node-kill simulations to stress-test threshold candidates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:49.002Z","isFirstParty":false}