我正在嘗試uptime check在 Google Cloud Monitoring 中創建警報。該TARGET是HTTPS URL。這URL需要一些標題和正文資料。在HEADER data下添加"MORE TARGET OPTIONS"。但是在哪里Body data添加呢?
請求的 curl 命令就像
curl --location --request POST 'https://<url>' \
--header 'TOKEN': 'token' \
--header 'Content-Type: application/json' \
--data-raw '[ {<test-json-data>} ]'
如何在谷歌正常運行時間檢查中發送 --data-raw(正文資料)?
uj5u.com熱心網友回復:
https://cloud.google.com/monitoring/uptime-checks#create
要發出 HTTP POST 請求以進行正常運行時間檢查,您必須使用 Cloud Monitoring API 創建正常運行時間檢查。
用戶界面不會讓你這樣做。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/378708.html
