sensu / sensu-go

Simple. Scalable. Multi-cloud monitoring.
https://sensu.io
MIT License
1.03k stars 174 forks source link

Fix Adhoc Check Scheduling #5023

Closed c-kruse closed 1 year ago

c-kruse commented 1 year ago

The adhoc check scheduling api currently returns an error.

Error: error resolving the resource type described in the request body: api not found is indicating that the standard apid request Resource unmarshaling logic used by the /execute handler expected to find AdhocRequest registered as a Resource (with sensu-api-tools), but it was not. This is because AdhocRequest doesn't implement the core/v2.Resource interface (yet it implements core/v3.Resource).

Either register AdhocRequest as a resource, or use one-off logic to unmarshal the request body for execute.