Create and edit presets

To change the current preset, perform the following actions:

  1. Press the Alarms button () in the views panel.

  2. In the dropdown at the top of the screen, select "Active alarms".

  3. Right-click the table header:

    extracted-media/media/image115
    Select displayed columns in the active alarms table
  4. In the context menu, select the names of the tables, that should be displayed in the table.

  5. Drag-and-drop to change the order of the columns.

To save the preset, perform the following actions:

  1. In the top panel, enter the name of the preset in the input field:

    extracted-media/media/image115
    Save preset
  2. Press the button to save a preset.

  3. 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"}'