Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
Description
If we need to send alert status and/or alert timestamp as numerical value, we must not use quotes (as in example below). But in this case template validation fails, since it treats the template as a normal JSON.
{
|
"ALERT_STATUS": %ALERT_STATUS%, |
"ALERT_UNIXTIME": %ALERT_UNIXTIME%, |
}
|
Attachments
Activity
Resolution | New: Fixed [ 1 ] | |
Status | Original: Pending Response [ 10000 ] | New: Resolved [ 5 ] |
Component/s | New: Default [ 10900 ] |
Assignee | Original: Adam Armstrong [ adama ] | New: Mike Stupalov [ landy ] |
Status | Original: Open [ 1 ] | New: Pending Response [ 10000 ] |
Improved in r13027.
But your json still incorrect (extra comma at end):
{
"ALERT_STATUS": %ALERT_STATUS%,
"ALERT_UNIXTIME": %ALERT_UNIXTIME%
}