modified refresh rate, changed colors of the alarms and fixed diagnostic alarms not dispalying bug
This commit is contained in:
parent
b256a52671
commit
b0b2751ad7
@ -412,14 +412,13 @@
|
||||
},
|
||||
{
|
||||
"custom": {
|
||||
"Severity": "Diagnostic",
|
||||
"background_on": "false"
|
||||
},
|
||||
"events": {
|
||||
"component": {
|
||||
"onActionPerformed": {
|
||||
"config": {
|
||||
"script": "\tpriority \u003d \u0027diagnostic\u0027\n\t# Copy and toggle the filter\n\tpriorities \u003d dict(self.parent.custom.priorities)\n\tpriorities[priority] \u003d not priorities.get(priority, False)\n\tself.parent.custom.priorities \u003d priorities\n\t\n\tself.custom.background_on \u003d \"true\" if priorities[priority] else \"false\""
|
||||
"script": "\tpriority \u003d \u0027diagnostic\u0027\n\n\tpriorities \u003d dict(self.parent.custom.priorities)\n\tpriorities[priority] \u003d not priorities.get(priority, False)\n\tself.parent.custom.priorities \u003d priorities\n\t\n\tself.custom.background_on \u003d \"true\" if priorities[priority] else \"false\""
|
||||
},
|
||||
"scope": "G",
|
||||
"type": "script"
|
||||
@ -492,6 +491,26 @@
|
||||
"type": "ia.input.button"
|
||||
}
|
||||
],
|
||||
"custom": {
|
||||
"priorities": {
|
||||
"critical": false,
|
||||
"diagnostic": false,
|
||||
"high": false,
|
||||
"low": false,
|
||||
"medium": false
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"system": {
|
||||
"onStartup": {
|
||||
"config": {
|
||||
"script": "\tself.custom.priorities \u003d {\n\t \"diagnostic\": True,\n\t \"low\": True,\n\t \"medium\": True,\n\t \"high\": True,\n\t}"
|
||||
},
|
||||
"scope": "G",
|
||||
"type": "script"
|
||||
}
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"name": "FlexContainer"
|
||||
},
|
||||
@ -499,17 +518,6 @@
|
||||
"basis": "700px",
|
||||
"shrink": 0
|
||||
},
|
||||
"propConfig": {
|
||||
"custom.priorities": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"bidirectional": true,
|
||||
"path": ".../FlexContainer_0/AlarmStatusTable.props.filters.active.priorities"
|
||||
},
|
||||
"type": "property"
|
||||
}
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"style": {
|
||||
"padding": 0
|
||||
@ -537,7 +545,7 @@
|
||||
"component": {
|
||||
"onActionPerformed": {
|
||||
"config": {
|
||||
"script": "\tpayload \u003d {}\n\tfilter_on \u003d \"false\"\n\tpayload[\"reset\"] \u003d filter_on\n\tsystem.perspective.sendMessage(\"reset-filters\", payload \u003dpayload, scope \u003d \"page\")\n\tdefault_priorities \u003d {\n\t \"critical\": False,\n\t \"high\": False,\n\t \"medium\": False,\n\t \"low\": False,\n\t \"diagnostic\": False\n\t}\n\tself.parent.parent.getChild(\"FlexContainer\").custom.priorities \u003d default_priorities"
|
||||
"script": "\tpayload \u003d {}\n\tfilter_on \u003d \"false\"\n\tpayload[\"reset\"] \u003d filter_on\n\tsystem.perspective.sendMessage(\"reset-filters\", payload \u003dpayload, scope \u003d \"page\")\n\tdefault_priorities \u003d {\n\t \"diagnostic\": False,\n\t \"low\": False,\n\t \"medium\": False,\n\t \"high\": False,\n\t \"critical\": False\n\t}\n\tself.parent.parent.getChild(\"FlexContainer\").custom.priorities \u003d default_priorities"
|
||||
},
|
||||
"scope": "G",
|
||||
"type": "script"
|
||||
@ -879,6 +887,16 @@
|
||||
"position": {
|
||||
"basis": "973px"
|
||||
},
|
||||
"propConfig": {
|
||||
"props.filters.active.priorities": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": ".../FlexContainer/FlexContainer.custom.priorities"
|
||||
},
|
||||
"type": "property"
|
||||
}
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"columns": {
|
||||
"active": {
|
||||
@ -909,12 +927,6 @@
|
||||
"enableUnshelve": false,
|
||||
"filters": {
|
||||
"active": {
|
||||
"priorities": {
|
||||
"critical": false,
|
||||
"high": false,
|
||||
"low": false,
|
||||
"medium": false
|
||||
},
|
||||
"results": {
|
||||
"data": [
|
||||
{
|
||||
@ -923,23 +935,23 @@
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-10 12:58:47.992+0400",
|
||||
"activeTime": "2025-06-10 14:02:45.721+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "2025-06-10 13:00:50.125+0400",
|
||||
"clearTime": "",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/close_socket/papapapa",
|
||||
"eventId": "197a7d64-b63d-4838-a150-80e0b3824885",
|
||||
"eventTime": "2025-06-10 13:00:50.125+0400",
|
||||
"eventValue": "false",
|
||||
"displayPath": "System/wbsckt_logging/Alarm",
|
||||
"eventId": "8ef553ea-ce84-47ca-9a64-66227511f6dd",
|
||||
"eventTime": "2025-06-10 14:02:45.721+0400",
|
||||
"eventValue": "true",
|
||||
"isAcked": "false",
|
||||
"isActive": "false",
|
||||
"isClear": "true",
|
||||
"label": "papapapa",
|
||||
"name": "papapapa",
|
||||
"isActive": "true",
|
||||
"isClear": "false",
|
||||
"label": "Alarm",
|
||||
"name": "Alarm",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
|
||||
"state": "Cleared, Unacknowledged"
|
||||
"priority": "Critical",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm",
|
||||
"state": "Active, Unacknowledged"
|
||||
},
|
||||
{
|
||||
"ackNotes": "",
|
||||
@ -947,157 +959,13 @@
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-10 13:00:52.126+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "2025-06-10 13:01:27.419+0400",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/close_socket/papapapa",
|
||||
"eventId": "e22bd576-fdb7-4356-a5df-a0342db88964",
|
||||
"eventTime": "2025-06-10 13:01:27.419+0400",
|
||||
"eventValue": "false",
|
||||
"isAcked": "false",
|
||||
"isActive": "false",
|
||||
"isClear": "true",
|
||||
"label": "papapapa",
|
||||
"name": "papapapa",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
|
||||
"state": "Cleared, Unacknowledged"
|
||||
},
|
||||
{
|
||||
"ackNotes": "",
|
||||
"ackPipeline": "",
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-10 12:56:43.860+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "2025-06-10 12:58:45.991+0400",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/close_socket/papapapa",
|
||||
"eventId": "e3e8a7e9-95bd-4bae-9fae-4a69037dcea6",
|
||||
"eventTime": "2025-06-10 12:58:45.991+0400",
|
||||
"eventValue": "false",
|
||||
"isAcked": "false",
|
||||
"isActive": "false",
|
||||
"isClear": "true",
|
||||
"label": "papapapa",
|
||||
"name": "papapapa",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
|
||||
"state": "Cleared, Unacknowledged"
|
||||
},
|
||||
{
|
||||
"ackNotes": "",
|
||||
"ackPipeline": "",
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-10 12:54:39.698+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "2025-06-10 12:56:41.858+0400",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/close_socket/papapapa",
|
||||
"eventId": "8c549637-729f-474d-a22b-3512062cd788",
|
||||
"eventTime": "2025-06-10 12:56:41.858+0400",
|
||||
"eventValue": "false",
|
||||
"isAcked": "false",
|
||||
"isActive": "false",
|
||||
"isClear": "true",
|
||||
"label": "papapapa",
|
||||
"name": "papapapa",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
|
||||
"state": "Cleared, Unacknowledged"
|
||||
},
|
||||
{
|
||||
"ackNotes": "",
|
||||
"ackPipeline": "",
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-06 19:30:36.306+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "2025-06-09 20:00:36.561+0400",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/DBConnected/NEEEWWWW",
|
||||
"eventId": "af042d77-3d54-4a8b-8d69-5f468ab449f4",
|
||||
"eventTime": "2025-06-09 20:00:36.561+0400",
|
||||
"eventValue": "false",
|
||||
"isAcked": "false",
|
||||
"isActive": "false",
|
||||
"isClear": "true",
|
||||
"label": "NEEEWWWW",
|
||||
"name": "NEEEWWWW",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
|
||||
"state": "Cleared, Unacknowledged"
|
||||
},
|
||||
{
|
||||
"ackNotes": "",
|
||||
"ackPipeline": "",
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-06 16:14:39.264+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "2025-06-06 19:06:54.360+0400",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/DBConnected/NEEEWWWW",
|
||||
"eventId": "620fd8a1-61ba-44ec-8573-8b861b18d740",
|
||||
"eventTime": "2025-06-06 19:06:54.360+0400",
|
||||
"eventValue": "false",
|
||||
"isAcked": "false",
|
||||
"isActive": "false",
|
||||
"isClear": "true",
|
||||
"label": "NEEEWWWW",
|
||||
"name": "NEEEWWWW",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
|
||||
"state": "Cleared, Unacknowledged"
|
||||
},
|
||||
{
|
||||
"ackNotes": "",
|
||||
"ackPipeline": "",
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-06 19:13:21.819+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "2025-06-06 19:17:31.568+0400",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/DBConnected/NEEEWWWW",
|
||||
"eventId": "a8ff0e60-af10-4437-b54a-c735e3d862e0",
|
||||
"eventTime": "2025-06-06 19:17:31.568+0400",
|
||||
"eventValue": "false",
|
||||
"isAcked": "false",
|
||||
"isActive": "false",
|
||||
"isClear": "true",
|
||||
"label": "NEEEWWWW",
|
||||
"name": "NEEEWWWW",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
|
||||
"state": "Cleared, Unacknowledged"
|
||||
},
|
||||
{
|
||||
"ackNotes": "",
|
||||
"ackPipeline": "",
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-10 11:03:10.611+0400",
|
||||
"activeTime": "2025-06-10 14:11:27.172+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/DBConnected/NEEEWWWW",
|
||||
"eventId": "d57907a7-3668-42f9-b25f-b39198437c68",
|
||||
"eventTime": "2025-06-10 11:03:10.611+0400",
|
||||
"eventId": "91a21a7a-8eae-4985-ab42-7285e5205427",
|
||||
"eventTime": "2025-06-10 14:11:27.172+0400",
|
||||
"eventValue": "true",
|
||||
"isAcked": "false",
|
||||
"isActive": "true",
|
||||
@ -1105,7 +973,7 @@
|
||||
"label": "NEEEWWWW",
|
||||
"name": "NEEEWWWW",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"priority": "High",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
|
||||
"state": "Active, Unacknowledged"
|
||||
},
|
||||
@ -1115,13 +983,13 @@
|
||||
"ackTime": "",
|
||||
"ackUser": "",
|
||||
"activePipeline": "",
|
||||
"activeTime": "2025-06-10 13:01:29.420+0400",
|
||||
"activeTime": "2025-06-10 14:23:42.047+0400",
|
||||
"clearPipeline": "",
|
||||
"clearTime": "",
|
||||
"deadband": "0.0",
|
||||
"displayPath": "System/close_socket/papapapa",
|
||||
"eventId": "1d6747ce-fdef-496e-b21c-a017aac2c589",
|
||||
"eventTime": "2025-06-10 13:01:29.420+0400",
|
||||
"eventId": "c51c44cb-2f8e-4cfd-ba0f-c2b862a1744d",
|
||||
"eventTime": "2025-06-10 14:23:42.047+0400",
|
||||
"eventValue": "true",
|
||||
"isAcked": "false",
|
||||
"isActive": "true",
|
||||
@ -1129,7 +997,7 @@
|
||||
"label": "papapapa",
|
||||
"name": "papapapa",
|
||||
"notes": "",
|
||||
"priority": "Low",
|
||||
"priority": "Diagnostic",
|
||||
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
|
||||
"state": "Active, Unacknowledged"
|
||||
}
|
||||
@ -1137,7 +1005,7 @@
|
||||
"enabled": true
|
||||
},
|
||||
"states": {
|
||||
"clearAcked": true
|
||||
"clearUnacked": false
|
||||
}
|
||||
},
|
||||
"shelved": {
|
||||
@ -1146,26 +1014,45 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"refreshRate": 1000,
|
||||
"responsive": {
|
||||
"enabled": true
|
||||
},
|
||||
"rowStyles": {
|
||||
"activeUnacked": {
|
||||
"priorities": {
|
||||
"critical": {
|
||||
"backgroundColor": "#c86462"
|
||||
},
|
||||
"diagnostic": {
|
||||
"backgroundColor": "#5da0f9"
|
||||
},
|
||||
"high": {
|
||||
"backgroundColor": "#fd6059"
|
||||
},
|
||||
"low": {
|
||||
"backgroundColor": "#fafa6c",
|
||||
"color": "black"
|
||||
},
|
||||
"medium": {
|
||||
"backgroundColor": "#fca25f"
|
||||
}
|
||||
}
|
||||
},
|
||||
"clearAcked": {
|
||||
"base": {
|
||||
"display": "none"
|
||||
"display": "block"
|
||||
}
|
||||
},
|
||||
"clearUnacked": {
|
||||
"base": {
|
||||
"display": "none"
|
||||
"display": "block",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"toolbar": {
|
||||
"enableActiveTab": false,
|
||||
"enableConfiguration": false,
|
||||
"enableFilter": false,
|
||||
"enablePreFilters": false,
|
||||
"enableShelvedTab": false,
|
||||
"enabled": false
|
||||
}
|
||||
@ -3368,12 +3255,12 @@
|
||||
"data": [
|
||||
{
|
||||
"Description": "alm:papapapa - papapapa",
|
||||
"Duration": "00:02:02",
|
||||
"EndTimestamp": 1749545801000,
|
||||
"ID": 212,
|
||||
"Duration": "00:01:45",
|
||||
"EndTimestamp": 1749547975000,
|
||||
"ID": 293,
|
||||
"MCM": "System",
|
||||
"Priority": "Low",
|
||||
"StartTimestamp": 1749545679000,
|
||||
"StartTimestamp": 1749547870000,
|
||||
"Tag": "alm:papapapa"
|
||||
}
|
||||
],
|
||||
@ -3751,8 +3638,29 @@
|
||||
"custom": {
|
||||
"shelvedAlarms": [
|
||||
{
|
||||
"activeTime": "2025-06-10 11:03:16",
|
||||
"expirationTime": "Tue Jun 24 10:46:41 GET 2025",
|
||||
"activeTime": "2025-06-10 13:46:26",
|
||||
"expirationTime": "Tue Jun 10 14:55:04 GET 2025",
|
||||
"name": "Alarm",
|
||||
"path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:MCM01/hello world:/alm:Alarm",
|
||||
"priority": "Diagnostic"
|
||||
},
|
||||
{
|
||||
"activeTime": "2025-06-10 14:23:42",
|
||||
"expirationTime": "Tue Jun 10 14:55:04 GET 2025",
|
||||
"name": "papapapa",
|
||||
"path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
|
||||
"priority": "Diagnostic"
|
||||
},
|
||||
{
|
||||
"activeTime": "2025-06-10 14:11:27",
|
||||
"expirationTime": "Tue Jun 10 14:55:04 GET 2025",
|
||||
"name": "NEEEWWWW",
|
||||
"path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
|
||||
"priority": "High"
|
||||
},
|
||||
{
|
||||
"activeTime": "2025-06-10 14:02:45",
|
||||
"expirationTime": "Tue Jun 10 14:55:04 GET 2025",
|
||||
"name": "Alarm",
|
||||
"path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm",
|
||||
"priority": "Critical"
|
||||
@ -3778,7 +3686,6 @@
|
||||
"contentStyle": {
|
||||
"classes": "Background-Styles/Grey-Background"
|
||||
},
|
||||
"currentTabIndex": 2,
|
||||
"menuType": "modern",
|
||||
"style": {
|
||||
"classes": "Background-Styles/Grey-Background"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user