Create and edit presets
To change the current preset, perform the following actions:
-
Press the Alarms button (
) in the views panel. -
In the dropdown at the top of the screen, select "Active alarms".
-
Right-click the table header:
Select displayed columns in the active alarms table -
In the context menu, select the names of the tables, that should be displayed in the table.
-
Drag-and-drop to change the order of the columns.
To save the preset, perform the following actions:
-
In the top panel, enter the name of the preset in the input field:
Save preset -
Press the
button to save a preset. -
Press the
button to see all saved presets.
REST API
Create new preset
You can create a preset via the REST API with the Create preset request.
Request example via curl
login=<...>
password=<...>
saymon_hostname=<...>
url=https://$saymon_hostname/node/api/presets
curl -X POST $url -u $login:$password \
-H "Content-Type: application/json" \
-d @- <<EOF
{
"name": "New preset",
"key": "incident-page-preset-picker",
"data": {
"sortData": {
"column": "entity",
"direction": "asc"
},
"visibleHeaderIds": [
[
"severity",
false
],
[
"occurredTime",
false
],
[
"clearedTime",
false
],
[
"registeredTime",
false
]
],
"columnOrder": [
"clearedTime",
"entity",
"registeredTime",
"text",
"acknowledgedBy",
"comment",
"data.mediaUrl"
]
}
}
EOF
Update existing preset
You can update a preset via the REST API with the Update preset request.
You need a preset ID for this request.
Request example via curl
login=<...>
password=<...>
saymon_hostname=<...>
preset_id=<...>
url=https://$saymon_hostname/node/api/presets/$preset_id
curl -X PUT $url -u $login:$password \
-H "Content-Type: application/json" \
--data '{"name": "Updated preset", "key": "Updated key"}'