orangeCatDeveloper commented on issue #4319:
URL: https://github.com/apache/hertzbeat/issues/4319#issuecomment-5318195417
Looked into the three points here:
**2 & 3 are bugs — fix submitted in #4331.** The test-send alert carries no
`instance` value, so HertzBeat sends `{"instance":null,...}` as the template
param and Aliyun rejects every test send with exactly the error you quoted
(模板变量JSON格式错误 或 JSON变量属性与模板占位符不一致) — your guess that some attribute had no
value was right. The docs were also wrong: the template example used backticks,
while Aliyun placeholders are `${...}` — the template must declare exactly
`${instance}` `${priority}` `${content}`, no more, no less. Both are fixed in
the PR.
**1 (per-rule SMS template) is a feature request** — today one global
`template-code` serves all rules. Worth its own issue so it does not get lost
when this one closes; feel free to open one (or I can).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org
For additional commands, e-mail: notifications-h...@hertzbeat.apache.org