I would try Pulumi AI for an issue like this (ask it to generate a valid example): https://www.pulumi.com/ai/
e
echoing-animal-62858
07/24/2023, 6:59 PM
The Pulumi AI is telling me exactly what I am doing
You 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 your
rum
query as a
formula
, then using that variable in the query for your monitor, which would incorporate the
default_zero()
call.
It's just that when i attempt to pass in a
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 400
echoing-animal-62858
07/24/2023, 7:00 PM
I apologize for any confusion, but as of my last update and knowledge, the functionality of creating a
formula
or a
variable
using the
default_zero
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 like
default_zero()
directly.
echoing-animal-62858
07/24/2023, 7:00 PM
Pulumi AI says that this is not supported directly and good luck have fun
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.