echoing-animal-62858
07/24/2023, 4:36 PMDiagnostics:
datadog:index:Monitor (pul_Release Draft Deploy Error):
error: diffing urn:pulumi:staging::core-api::datadog:index/monitor:Monitor::pul_Release Draft Deploy Error: error validating monitor from <https://api.datadoghq.com/api/v1/monitor/124561428/validate>: 400 Bad Request: {"errors":["The value provided for parameter 'query' is invalid"]}
The output of pulumi diff
puts Diagnostics including a 400 Bad Request.
However I can't really understand how to unpack this better, I'd really like to see the full HTTP request and HTTP response for this 400 to understand what JSON payload did I send, and what part of query
could be invalid, in fact there should be two query
fields in the JSON payload so unclear which one it is.
There's a lot of steps to reverse engineer how I can generate the correct raw JSON for datadog.Monitor
from the @pulumi/datadog
class.stocky-restaurant-98004
07/24/2023, 6:55 PMechoing-animal-62858
07/24/2023, 6:58 PMYou need to create a composite query, using Datadog's formula and function queries. This topic is currently under-documented and would require trial and error to get right. It might involve creating a variable with yourIt's just that when i attempt to pass in aquery as arum
, then using that variable in the query for your monitor, which would incorporate theformula
call.default_zero()
variable
and run pulumi preview
I get back a 400 and am now stuck without being able to introspect the raw HTTP request JSON that lead to the 400I apologize for any confusion, but as of my last update and knowledge, the functionality of creating aor aformula
using thevariable
function in Pulumi's TypeScript SDK is not supported directly. The Pulumi's Datadog package which might be used for this kind of operation doesn't appear to support complex or composite functions likedefault_zero
directly.default_zero()