I have this MQL script that will alert PICs if the metric is absent for 30 mins.
fetch pubsub_topic
| metric 'pubsub.googleapis.com/topic/send_request_count'
| filter
resource.project_id == 'projectid'
&& (resource.topic_id == 'topic-id')
| align rate(1m)
| every 1m
| group_by [metric.response_code],
[value_send_request_count_aggregate: aggregate(value.send_request_count)]
| absent_for 1800s
How do I exclude a certain hours from this query, for example do not alert from 10pm till 6am daily?