Skip to content

Commit c8f913b

Browse files
committed
Collapse SolarWinds curl example to a single line
The Execute an external program alert action takes one command line, so the ^ continuations were unnecessary.
1 parent d4b30e7 commit c8f913b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

docs/configuration/exporting/send-events/solarwinds.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,11 @@ Webhook URL
2121
Configure SolarWinds
2222
--------------------
2323

24-
SolarWinds does not ship a native bearer-token webhook action. Use the **Execute an external program** action with ``curl``:
24+
SolarWinds does not ship a native bearer-token webhook action. Use the **Execute an external program** alert action to invoke ``curl`` (bundled with Windows 10+ and Windows Server 2019+):
2525

2626
.. code-block::
2727
28-
curl -sS -X POST ^
29-
-H "Authorization: Bearer <ROBUSTA_API_KEY>" ^
30-
-H "Content-Type: application/json" ^
31-
--data "{ \"alertName\": \"${N=Alerting;M=AlertName}\", \"node\": \"${N=SwisEntity;M=Caption}\", \"severity\": \"${N=Alerting;M=Severity}\", \"message\": \"${N=Alerting;M=AlertMessage}\" }" ^
32-
"https://api.robusta.dev/webhooks?type=alert&origin=solarwinds&account_id=<ACCOUNT_ID>"
28+
curl -sS -X POST -H "Authorization: Bearer <ROBUSTA_API_KEY>" -H "Content-Type: application/json" --data "{ \"alertName\": \"${N=Alerting;M=AlertName}\", \"node\": \"${N=SwisEntity;M=Caption}\", \"severity\": \"${N=Alerting;M=Severity}\", \"message\": \"${N=Alerting;M=AlertMessage}\" }" "https://api.robusta.dev/webhooks?type=alert&origin=solarwinds&account_id=<ACCOUNT_ID>"
3329
3430
Save the action and attach it to the alerts you want forwarded.
3531

0 commit comments

Comments
 (0)