-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.4.2, 6.4.3
1 Request:
{
"jsonrpc": "2.0",
"method": "trigger.get",
"params": \{
"triggerids": "1725417",
"output": [
"comments",
"description"
],
"expandComment": true
},
"id": 1
}
1 Response:
{
"jsonrpc": "2.0",
"result": [
\{
"triggerid": "1725417",
"comments": "OID Value for globalSystemStatus: *UNKNOWN*\r\nLogs:\r\n*UNKNOWN* : *UNKNOWN*\r\n*UNKNOWN* : *UNKNOWN*\r\n*UNKNOWN* : *UNKNOWN*",
"description": "Problem with S/N:{$SN} | globalSystemStatus failed"
}
],
"id": 1
}
Macros not expand in the trigger description (comments) and the trigger name (description).
**
2 Request:
{
"jsonrpc": "2.0",
"method": "trigger.get",
"params": {
"triggerids": "1725417",
"output": [
"comments",
"description"
],
"expandComment": true,
"expandDescription": false
},
"id": 1
}
2 Response:
**
{
"jsonrpc": "2.0",
"result": [
{
"triggerid": "1725417",
"comments": "OID Value for globalSystemStatus: failed (5)\r\nLogs:\r\n20230613104058 : An OEM diagnostic event occurred.\r\n20230613104058 : An OEM diagnostic event occurred.\r\n20230613104058 : An OEM diagnostic event occurred.",
"description": "Problem with S/N:FZZDPS3 | globalSystemStatus failed"
}
],
"id": 1
}
Macros expanded in the trigger description (comments) and the trigger name (description). However, since "expandDescription": false is specified, macros should not be expanded in the trigger name (description).{}
3 Request:
{
"jsonrpc": "2.0",
"method": "trigger.get",
"params": {
"triggerids": "1725417",
"output": "extend",
"expandComment": true
},
"id": 1
}
3 Response:
**
{
"jsonrpc": "2.0",
"result": [
{
"triggerid": "1725417",
"expression": "{27072734}=9 and\r\nlength({27072733}) and\r\nlength({27072732}) and\r\nlength({27072731}) and\r\nlength({27072730}) and\r\nlength({27072729}) and\r\nlength({27072728})",
"description": "Problem with S/N:{$SN} | globalSystemStatus failed",
...
"comments": "OID Value for globalSystemStatus: failed (5)\r\nLogs:\r\n20230613104058 : An OEM diagnostic event occurred.\r\n20230613104058 : An OEM diagnostic event occurred.\r\n20230613104058 : An OEM diagnostic event occurred.",
...
"opdata": "{ITEM.LASTVALUE1}",
"event_name": "",
"uuid": "",
"url_name": "Confluence URL"
}
],
"id": 1
}
Macros expanded in the trigger description (comments) if "output": "extend" is specified.{}