您正在查看 Apigee Edge 說明文件。
查看 Apigee X 說明文件。 資訊
我們在 2020 年 2 月 27 日星期四開始為公有雲推出新版 Apigee API 監控版本。
新功能
這個版本加入了下列新功能,
Webhook 通知物件的新格式
如果您使用 Webhook 網址做為快訊通知的目的地,傳送至該網址的物件會包含新的屬性:thresholdViolationsFormatted
。thresholdViolationsFormatted
屬性包含用於說明快訊的物件。
這項新屬性不屬於現有的 thresholdViolations
屬性。
thresholdViolations
屬性包含含有快訊詳細資料的單一字串。一般而言,我們會使用 thresholdViolationsFormatted
屬性,因為解碼更為簡單。
例如,在快訊中,thresholdViolations
屬性包含以下形式的字串:
"thresholdViolations":{ "Count0": "Duration=5 minutes Region=us-east1 Status Code=2xx Proxy=test-app Violation=sustained above 1.0" }
雖然新的 thresholdViolationsFormatted
屬性包含下列物件:
"thresholdViolations": [ { "metric": "count", "duration": "5 minutes", "region": "us-east1", "statusCode": "2xx", "proxy": "test-app", "violation": "sustained above 1.0" }
如需物件的完整說明,請參閱 Webhook 物件格式一文。