So I am working on a backend service which is consumed by other backend services. The consumers need to acquire an authentication token before they can call our API. Now, I want to make periodic requests to dummy products (on live, deployed instances) to observe if everything is working fine.
Is that possible with uptime checks? It seems they only support Basic Authentication, you cannot execute actual code (to retrieve tokens or generate random request identifiers) before execution. Right?
I see there is the option to create uptime checks by code https://cloud.google.com/monitoring/uptime-checks/#node.js but since await client.createUptimeCheckConfig(request) uses static config (request object), I guess you cannot inject functions there?
Can I use any other tool in GCP for what I want or do I need to deploy a middleman service (or function) to forward the uptime checks?