How do you assert routes don't exist with synthetics?

Hello,

I’m trying to write a synthetic that verifies that a private endpoint does not return a response. The motivation for this is to confirm that DNS is correctly configured and our private routes are not exposed. It’s pretty easy to verify that the response and body are undefined, but the synthetic complains “Monitor produces no traffic” despite this being the desired and expected behavior.

Is there anyway to assert that a monitor producing no traffic is the expected behavior?

Hi @andrew.austin - this is typical of a synthetic API monitor where not traffic is generated. I have put in a call to google in my API scripts when in maintenance.

Thanks for the response. What you suggest works well enough I suppose.