Create GCP alerting policy for uptime check using terraform

Is there any way to create GCP alerting policy for uptime check using terraform? Provided examples in the terraform docs show only alerting policy for metrics not uptime check so I’m not sure if that is even possible with the terraform.

I’m stuck on how to get metric.label.check_id from already deployed resources to the alerting policy for the uptime check