Profiles (Alarms Plus)

Profile is a set of displayed columns, filters and other UI configuration. Each user can have their own set of profiles.

You can add or update a profile in the Profile section of the side menu.

You can remove all created profiles and reset the settings to the default in the user menu.

Internal representation

The extension saves profiles in the user record, in the uiSettings.profiles field.

Record of the user admin with defined profiles
{
    "id": "66ec44b50cdaf6028a68154d",
    "login": "admin",
    "displayName": "ad***",
    ...
    "uiSettings": {
        "theme": "light",
        "language": "en",
        "current_profile": "0",
        "profiles": {
            "0": {
                "id": "0",
                "name": "Default",
                ...
            },
            "d24dc6ed-69a9-490f-835a-876dc700c243": {
                "id": "d24dc6ed-69a9-490f-835a-876dc700c243",
                "name": "New profile",
                "state": {
                    "pinnedColumns": {},
                    "columns": {
                        "columnVisibilityModel": {},
                        "orderedFields": [
                            "state",
                            "count",
                            ...
                        ],
                        "dimensions": {
                            "count": {
                                "maxWidth": -1,
                                "minWidth": 100,
                                "width": 100
                            },
                            "acknowledged": {
                                "maxWidth": -1,
                                "minWidth": 50,
                                "width": 60
                            }
                            ...
                        }
                    },
                    "preferencePanel": {
                        "open": false
                    },
                    "sorting": {
                        "sortModel": []
                    },
                    "density": "compact",
                    "pagination": {
                        "meta": {},
                        "paginationModel": {
                            "page": 0,
                            "pageSize": 100
                        },
                        "rowCount": 1
                    },
                    "filter": {
                        "filterModel": {
                            "items": [
                                {
                                    "field": "objectLink",
                                    "operator": "contains",
                                    "id": 59738,
                                    "value": "ROOT",
                                    "fromInput": ":r4q:"
                                },
                                {
                                    "field": "text",
                                    "operator": "contains",
                                    "id": 19446,
                                    "value": "No data",
                                    "fromInput": ":r56:"
                                }
                            ]
                        }
                    }
                }
            }
        }
    },
    "entityType": 5
}

Default profile

Profile with id "0" is created by default and contains the following settings:

...
"0": {
    "id": "0",
    "name": "Default",
    "state": {
        "pinnedColumns": {
            "left": [],
            "right": []
        },
        "columns": {
            "columnVisibilityModel": {
                "localTimestamp": false,
                "commentedBy": false,
                "ip": false,
                "hostname": false,
                "description": false
            },
            "orderedFields": [
                "localTimestamp",
                "state",
                "count",
                "acknowlegedBy",
                "timestamp",
                "clearTimestamp",
                "objectLink",
                "text",
                "comment",
                "commentedBy",
                "ip",
                "hostname",
                "description",
                "properties_rca_alarm_group",
                "properties_rca_probability_perc",
                "properties_rca_time_calc"
            ]
        },
        "preferencePanel": {
            "open": false
        },
        "filter": {
            "filterModel": {
                "items": []
            }
        },
        "sorting": {
            "sortModel": [
                {
                    "field": "timestamp",
                    "sort": "desc"
                }
            ]
        }
    }
}