commit 392508da6edf8e507d4c849a9b9303ec595e9f8e Author: paul@velocoding.com Date: Thu Feb 19 21:24:21 2026 +0000 init commit diff --git a/asset_profile/f41e2050-0b6a-11f1-9957-b95a9cb5ea38.json b/asset_profile/f41e2050-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..e1d1b35 --- /dev/null +++ b/asset_profile/f41e2050-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,23 @@ +{ + "entityType" : "ASSET_PROFILE", + "entity" : { + "default" : true, + "defaultDashboardId" : null, + "defaultEdgeRuleChainId" : null, + "defaultQueueName" : null, + "defaultRuleChainId" : null, + "description" : "Default asset profile", + "externalId" : null, + "id" : { + "entityType" : "ASSET_PROFILE", + "id" : "f41e2050-0b6a-11f1-9957-b95a9cb5ea38" + }, + "image" : null, + "name" : "default" + }, + "relations" : [ ], + "attributes" : { + "SERVER_SCOPE" : [ ] + }, + "calculatedFields" : [ ] +} \ No newline at end of file diff --git a/customer/f7fbcc80-0dd7-11f1-86a5-271fb618266e.json b/customer/f7fbcc80-0dd7-11f1-86a5-271fb618266e.json new file mode 100644 index 0000000..e3d4909 --- /dev/null +++ b/customer/f7fbcc80-0dd7-11f1-86a5-271fb618266e.json @@ -0,0 +1,28 @@ +{ + "entityType" : "CUSTOMER", + "entity" : { + "additionalInfo" : { + "isPublic" : true + }, + "address" : null, + "address2" : null, + "city" : null, + "country" : null, + "email" : null, + "externalId" : null, + "id" : { + "entityType" : "CUSTOMER", + "id" : "f7fbcc80-0dd7-11f1-86a5-271fb618266e" + }, + "name" : "Public", + "phone" : null, + "state" : null, + "title" : "Public", + "zip" : null + }, + "relations" : [ ], + "attributes" : { + "SERVER_SCOPE" : [ ] + }, + "calculatedFields" : [ ] +} \ No newline at end of file diff --git a/dashboard/e19d05d0-0dd7-11f1-86a5-271fb618266e.json b/dashboard/e19d05d0-0dd7-11f1-86a5-271fb618266e.json new file mode 100644 index 0000000..6ce0563 --- /dev/null +++ b/dashboard/e19d05d0-0dd7-11f1-86a5-271fb618266e.json @@ -0,0 +1,489 @@ +{ + "entityType" : "DASHBOARD", + "entity" : { + "title" : "ye", + "image" : null, + "mobileHide" : false, + "mobileOrder" : null, + "configuration" : { + "description" : "", + "widgets" : { + "e36c1e1b-903e-f771-fb57-69bffcb6586c" : { + "typeFullFqn" : "system.time_series_chart", + "type" : "timeseries", + "sizeX" : 8, + "sizeY" : 5, + "config" : { + "datasources" : [ { + "type" : "device", + "name" : "", + "deviceId" : "f20639a0-0dd7-11f1-86a5-271fb618266e", + "dataKeys" : [ { + "name" : "temperature", + "type" : "timeseries", + "label" : "Temperature", + "color" : "#2196f3", + "settings" : { + "yAxisId" : "default", + "showInLegend" : true, + "dataHiddenByDefault" : false, + "type" : "line", + "lineSettings" : { + "showLine" : true, + "step" : false, + "stepType" : "start", + "smooth" : false, + "lineType" : "solid", + "lineWidth" : 2, + "showPoints" : false, + "showPointLabel" : false, + "pointLabelPosition" : "top", + "pointLabelFont" : { + "family" : "Roboto", + "size" : 11, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "1" + }, + "pointLabelColor" : "rgba(0, 0, 0, 0.76)", + "enablePointLabelBackground" : false, + "pointLabelBackground" : "rgba(255,255,255,0.56)", + "pointShape" : "emptyCircle", + "pointSize" : 4, + "fillAreaSettings" : { + "type" : "none", + "opacity" : 0.4, + "gradient" : { + "start" : 100, + "end" : 0 + } + } + }, + "barSettings" : { + "showBorder" : false, + "borderWidth" : 2, + "borderRadius" : 0, + "showLabel" : false, + "labelPosition" : "top", + "labelFont" : { + "family" : "Roboto", + "size" : 11, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "1" + }, + "labelColor" : "rgba(0, 0, 0, 0.76)", + "enableLabelBackground" : false, + "labelBackground" : "rgba(255,255,255,0.56)", + "backgroundSettings" : { + "type" : "none", + "opacity" : 0.4, + "gradient" : { + "start" : 100, + "end" : 0 + } + } + }, + "comparisonSettings" : { + "showValuesForComparison" : false, + "comparisonValuesLabel" : "", + "color" : "" + } + }, + "units" : "°C", + "decimals" : 0 + } ], + "alarmFilterConfig" : { + "statusList" : [ "ACTIVE" ] + }, + "latestDataKeys" : [ ] + } ], + "showTitle" : true, + "backgroundColor" : "rgba(0, 0, 0, 0)", + "color" : "rgba(0, 0, 0, 0.87)", + "padding" : "0px", + "settings" : { + "showLegend" : true, + "legendConfig" : { + "direction" : "column", + "position" : "top", + "sortDataKeys" : false, + "showMin" : false, + "showMax" : false, + "showAvg" : true, + "showTotal" : false, + "showLatest" : false, + "valueFormat" : null + }, + "thresholds" : [ ], + "dataZoom" : true, + "stack" : false, + "yAxis" : { + "show" : true, + "label" : "", + "labelFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "600", + "lineHeight" : "1" + }, + "labelColor" : "rgba(0, 0, 0, 0.54)", + "position" : "left", + "showTickLabels" : true, + "tickLabelFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "1" + }, + "tickLabelColor" : "rgba(0, 0, 0, 0.54)", + "showTicks" : true, + "ticksColor" : "rgba(0, 0, 0, 0.54)", + "showLine" : true, + "lineColor" : "rgba(0, 0, 0, 0.54)", + "showSplitLines" : true, + "splitLinesColor" : "rgba(0, 0, 0, 0.12)" + }, + "xAxis" : { + "show" : true, + "label" : "", + "labelFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "600", + "lineHeight" : "1" + }, + "labelColor" : "rgba(0, 0, 0, 0.54)", + "position" : "bottom", + "showTickLabels" : true, + "tickLabelFont" : { + "family" : "Roboto", + "size" : 10, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "1" + }, + "tickLabelColor" : "rgba(0, 0, 0, 0.54)", + "ticksFormat" : { }, + "showTicks" : true, + "ticksColor" : "rgba(0, 0, 0, 0.54)", + "showLine" : true, + "lineColor" : "rgba(0, 0, 0, 0.54)", + "showSplitLines" : true, + "splitLinesColor" : "rgba(0, 0, 0, 0.12)" + }, + "legendLabelFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "16px" + }, + "legendLabelColor" : "rgba(0, 0, 0, 0.76)", + "showTooltip" : true, + "tooltipTrigger" : "axis", + "tooltipValueFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "500", + "lineHeight" : "16px" + }, + "tooltipValueColor" : "rgba(0, 0, 0, 0.76)", + "tooltipShowDate" : true, + "tooltipDateFormat" : { + "format" : null, + "lastUpdateAgo" : false, + "custom" : false, + "auto" : true, + "autoDateFormatSettings" : { } + }, + "tooltipDateFont" : { + "family" : "Roboto", + "size" : 11, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "16px" + }, + "tooltipDateColor" : "rgba(0, 0, 0, 0.76)", + "tooltipDateInterval" : true, + "tooltipBackgroundColor" : "rgba(255, 255, 255, 0.76)", + "tooltipBackgroundBlur" : 4, + "background" : { + "type" : "color", + "color" : "#fff", + "overlay" : { + "enabled" : false, + "color" : "rgba(255,255,255,0.72)", + "blur" : 3 + } + }, + "yAxes" : { + "default" : { + "units" : null, + "decimals" : 0, + "show" : true, + "label" : "", + "labelFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "600", + "lineHeight" : "1" + }, + "labelColor" : "rgba(0, 0, 0, 0.54)", + "position" : "left", + "showTickLabels" : true, + "tickLabelFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "1" + }, + "tickLabelColor" : "rgba(0, 0, 0, 0.54)", + "ticksFormatter" : null, + "showTicks" : true, + "ticksColor" : "rgba(0, 0, 0, 0.54)", + "showLine" : true, + "lineColor" : "rgba(0, 0, 0, 0.54)", + "showSplitLines" : true, + "splitLinesColor" : "rgba(0, 0, 0, 0.12)", + "id" : "default", + "order" : 0, + "min" : { + "type" : "constant", + "value" : null, + "entityAlias" : null + }, + "max" : { + "type" : "constant", + "value" : null, + "entityAlias" : null + } + } + }, + "noAggregationBarWidthSettings" : { + "strategy" : "group", + "groupWidth" : { + "relative" : true, + "relativeWidth" : 2, + "absoluteWidth" : 1000 + }, + "barWidth" : { + "relative" : true, + "relativeWidth" : 2, + "absoluteWidth" : 1000 + } + }, + "animation" : { + "animation" : true, + "animationThreshold" : 2000, + "animationDuration" : 500, + "animationEasing" : "cubicOut", + "animationDelay" : 0, + "animationDurationUpdate" : 300, + "animationEasingUpdate" : "cubicOut", + "animationDelayUpdate" : 0 + }, + "padding" : "12px", + "comparisonEnabled" : false, + "timeForComparison" : "previousInterval", + "comparisonCustomIntervalValue" : 7200000, + "comparisonXAxis" : { + "show" : true, + "label" : "", + "labelFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "600", + "lineHeight" : "1" + }, + "labelColor" : "rgba(0, 0, 0, 0.54)", + "position" : "top", + "showTickLabels" : true, + "tickLabelFont" : { + "family" : "Roboto", + "size" : 10, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "1" + }, + "tickLabelColor" : "rgba(0, 0, 0, 0.54)", + "ticksFormat" : { }, + "showTicks" : true, + "ticksColor" : "rgba(0, 0, 0, 0.54)", + "showLine" : true, + "lineColor" : "rgba(0, 0, 0, 0.54)", + "showSplitLines" : true, + "splitLinesColor" : "rgba(0, 0, 0, 0.12)" + }, + "grid" : { + "show" : false, + "backgroundColor" : null, + "borderWidth" : 1, + "borderColor" : "#ccc" + }, + "legendColumnTitleFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "16px" + }, + "legendColumnTitleColor" : "rgba(0, 0, 0, 0.38)", + "legendValueFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "500", + "lineHeight" : "16px" + }, + "legendValueColor" : "rgba(0, 0, 0, 0.87)", + "tooltipLabelFont" : { + "family" : "Roboto", + "size" : 12, + "sizeUnit" : "px", + "style" : "normal", + "weight" : "400", + "lineHeight" : "16px" + }, + "tooltipLabelColor" : "rgba(0, 0, 0, 0.76)", + "tooltipHideZeroValues" : null, + "tooltipStackedShowTotal" : false + }, + "title" : "Time series chart", + "dropShadow" : true, + "enableFullscreen" : true, + "titleStyle" : null, + "mobileHeight" : null, + "configMode" : "basic", + "actions" : { }, + "showTitleIcon" : false, + "titleIcon" : "thermostat", + "iconColor" : "#1F6BDD", + "useDashboardTimewindow" : true, + "titleFont" : { + "size" : 16, + "sizeUnit" : "px", + "family" : "Roboto", + "weight" : "500", + "style" : "normal", + "lineHeight" : "24px" + }, + "titleColor" : "rgba(0, 0, 0, 0.87)", + "titleTooltip" : "", + "widgetStyle" : { }, + "widgetCss" : "", + "pageSize" : 1024, + "units" : "", + "decimals" : null, + "noDataDisplayMessage" : "", + "margin" : "0px", + "borderRadius" : "0px", + "iconSize" : "0px", + "timewindowStyle" : { + "showIcon" : false, + "iconSize" : "24px", + "icon" : null, + "iconPosition" : "left", + "font" : { + "size" : 12, + "sizeUnit" : "px", + "family" : "Roboto", + "weight" : "400", + "style" : "normal", + "lineHeight" : "16px" + }, + "color" : "rgba(0, 0, 0, 0.38)", + "displayTypePrefix" : true + } + }, + "row" : 0, + "col" : 0, + "id" : "e36c1e1b-903e-f771-fb57-69bffcb6586c" + } + }, + "states" : { + "default" : { + "name" : "ye", + "root" : true, + "layouts" : { + "main" : { + "widgets" : { + "e36c1e1b-903e-f771-fb57-69bffcb6586c" : { + "sizeX" : 8, + "sizeY" : 5, + "mobileHeight" : null, + "row" : 0, + "col" : 0 + } + }, + "gridSettings" : { + "layoutType" : "default", + "backgroundColor" : "#eeeeee", + "columns" : 24, + "margin" : 10, + "outerMargin" : true, + "backgroundSizeMode" : "100%" + } + } + } + } + }, + "entityAliases" : { }, + "filters" : { }, + "timewindow" : { + "selectedTab" : 0, + "realtime" : { + "realtimeType" : 0, + "timewindowMs" : 3600000 + }, + "aggregation" : { + "type" : "NONE", + "limit" : 50000 + } + }, + "settings" : { + "stateControllerId" : "entity", + "showTitle" : false, + "showDashboardsSelect" : true, + "showEntitiesSelect" : true, + "showDashboardTimewindow" : true, + "showDashboardExport" : true, + "toolbarAlwaysOpen" : true + } + }, + "name" : "ye", + "resources" : null, + "assignedCustomers" : null, + "externalId" : null, + "id" : { + "entityType" : "DASHBOARD", + "id" : "e19d05d0-0dd7-11f1-86a5-271fb618266e" + } + }, + "relations" : [ ], + "attributes" : { + "SERVER_SCOPE" : [ ] + } +} \ No newline at end of file diff --git a/device/f20639a0-0dd7-11f1-86a5-271fb618266e.json b/device/f20639a0-0dd7-11f1-86a5-271fb618266e.json new file mode 100644 index 0000000..cc2c4a7 --- /dev/null +++ b/device/f20639a0-0dd7-11f1-86a5-271fb618266e.json @@ -0,0 +1,55 @@ +{ + "entityType" : "DEVICE", + "entity" : { + "additionalInfo" : { + "gateway" : false, + "overwriteActivityTime" : false, + "description" : "" + }, + "customerId" : { + "entityType" : "CUSTOMER", + "id" : "f7fbcc80-0dd7-11f1-86a5-271fb618266e" + }, + "deviceData" : { + "configuration" : { + "type" : "DEFAULT" + }, + "transportConfiguration" : { + "type" : "DEFAULT" + } + }, + "deviceProfileId" : { + "entityType" : "DEVICE_PROFILE", + "id" : "f41bd660-0b6a-11f1-9957-b95a9cb5ea38" + }, + "externalId" : null, + "firmwareId" : null, + "id" : { + "entityType" : "DEVICE", + "id" : "f20639a0-0dd7-11f1-86a5-271fb618266e" + }, + "label" : "", + "name" : "ye", + "softwareId" : null, + "type" : "default" + }, + "credentials" : { + "credentialsId" : "AfzvDQ0QUtwg6x81hTIC", + "credentialsType" : "ACCESS_TOKEN", + "credentialsValue" : null + }, + "relations" : [ ], + "attributes" : { + "SERVER_SCOPE" : [ { + "booleanValue" : false, + "doubleValue" : null, + "jsonValue" : null, + "key" : "active", + "lastUpdateTs" : 1771535655631, + "longValue" : null, + "strValue" : null + } ], + "SHARED_SCOPE" : [ ] + }, + "calculatedFields" : [ ] +} \ No newline at end of file diff --git a/device_profile/f41bd660-0b6a-11f1-9957-b95a9cb5ea38.json b/device_profile/f41bd660-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..b0f2173 --- /dev/null +++ b/device_profile/f41bd660-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,42 @@ +{ + "entityType" : "DEVICE_PROFILE", + "entity" : { + "default" : true, + "defaultDashboardId" : null, + "defaultEdgeRuleChainId" : null, + "defaultQueueName" : null, + "defaultRuleChainId" : null, + "description" : "Default device profile", + "externalId" : null, + "firmwareId" : null, + "id" : { + "entityType" : "DEVICE_PROFILE", + "id" : "f41bd660-0b6a-11f1-9957-b95a9cb5ea38" + }, + "image" : null, + "name" : "default", + "profileData" : { + "alarms" : null, + "configuration" : { + "type" : "DEFAULT" + }, + "provisionConfiguration" : { + "type" : "DISABLED", + "provisionDeviceSecret" : null + }, + "transportConfiguration" : { + "type" : "DEFAULT" + } + }, + "provisionDeviceKey" : null, + "provisionType" : "DISABLED", + "softwareId" : null, + "transportType" : "DEFAULT", + "type" : "DEFAULT" + }, + "relations" : [ ], + "attributes" : { + "SERVER_SCOPE" : [ ] + }, + "calculatedFields" : [ ] +} \ No newline at end of file diff --git a/notification_rule/f425c170-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f425c170-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..fd8c08b --- /dev/null +++ b/notification_rule/f425c170-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,34 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to tenant admins when an alarm is created" + }, + "enabled" : true, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f425c170-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "New alarm", + "recipientsConfig" : { + "escalationTable" : { + "0" : [ "f4226610-0b6a-11f1-9957-b95a9cb5ea38" ] + }, + "triggerType" : "ALARM" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f424b000-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "ALARM", + "alarmSeverities" : null, + "alarmTypes" : null, + "clearRule" : null, + "notifyOn" : [ "CREATED" ], + "triggerType" : "ALARM" + }, + "triggerType" : "ALARM" + } +} \ No newline at end of file diff --git a/notification_rule/f4283270-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f4283270-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..0c0adba --- /dev/null +++ b/notification_rule/f4283270-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,34 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to tenant admins when any alarm is updated or cleared" + }, + "enabled" : true, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f4283270-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Alarm update", + "recipientsConfig" : { + "escalationTable" : { + "0" : [ "f4226610-0b6a-11f1-9957-b95a9cb5ea38" ] + }, + "triggerType" : "ALARM" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f427bd40-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "ALARM", + "alarmSeverities" : null, + "alarmTypes" : null, + "clearRule" : null, + "notifyOn" : [ "SEVERITY_CHANGED", "CLEARED", "ACKNOWLEDGED" ], + "triggerType" : "ALARM" + }, + "triggerType" : "ALARM" + } +} \ No newline at end of file diff --git a/notification_rule/f428ceb0-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f428ceb0-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..05b428e --- /dev/null +++ b/notification_rule/f428ceb0-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,32 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to tenant admins when device is created" + }, + "enabled" : true, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f428ceb0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Device created", + "recipientsConfig" : { + "targets" : [ "f4226610-0b6a-11f1-9957-b95a9cb5ea38" ], + "triggerType" : "ENTITY_ACTION" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f4285980-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "ENTITY_ACTION", + "created" : true, + "deleted" : false, + "entityTypes" : [ "DEVICE" ], + "updated" : false, + "triggerType" : "ENTITY_ACTION" + }, + "triggerType" : "ENTITY_ACTION" + } +} \ No newline at end of file diff --git a/notification_rule/f42a0730-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f42a0730-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..458874a --- /dev/null +++ b/notification_rule/f42a0730-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,31 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to tenant admins when any device changes its activity state" + }, + "enabled" : false, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f42a0730-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Device activity status change", + "recipientsConfig" : { + "targets" : [ "f4226610-0b6a-11f1-9957-b95a9cb5ea38" ], + "triggerType" : "DEVICE_ACTIVITY" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f4299200-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "DEVICE_ACTIVITY", + "deviceProfiles" : null, + "devices" : null, + "notifyOn" : [ "ACTIVE", "INACTIVE" ], + "triggerType" : "DEVICE_ACTIVITY" + }, + "triggerType" : "DEVICE_ACTIVITY" + } +} \ No newline at end of file diff --git a/notification_rule/f42b66c0-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f42b66c0-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..7f385a8 --- /dev/null +++ b/notification_rule/f42b66c0-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,33 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to tenant admins when comment is added by user on active alarm" + }, + "enabled" : true, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f42b66c0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Comment on active alarm", + "recipientsConfig" : { + "targets" : [ "f4226610-0b6a-11f1-9957-b95a9cb5ea38" ], + "triggerType" : "ALARM_COMMENT" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42aca80-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "ALARM_COMMENT", + "alarmSeverities" : null, + "alarmStatuses" : [ "ACTIVE" ], + "alarmTypes" : null, + "notifyOnCommentUpdate" : false, + "onlyUserComments" : true, + "triggerType" : "ALARM_COMMENT" + }, + "triggerType" : "ALARM_COMMENT" + } +} \ No newline at end of file diff --git a/notification_rule/f42c9f40-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f42c9f40-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..95efd90 --- /dev/null +++ b/notification_rule/f42c9f40-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,32 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to user when any alarm was assigned to him" + }, + "enabled" : true, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f42c9f40-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Alarm assignment", + "recipientsConfig" : { + "targets" : [ "f42461e0-0b6a-11f1-9957-b95a9cb5ea38" ], + "triggerType" : "ALARM_ASSIGNMENT" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42c0300-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "ALARM_ASSIGNMENT", + "alarmSeverities" : null, + "alarmStatuses" : null, + "alarmTypes" : null, + "notifyOn" : [ "ASSIGNED" ], + "triggerType" : "ALARM_ASSIGNMENT" + }, + "triggerType" : "ALARM_ASSIGNMENT" + } +} \ No newline at end of file diff --git a/notification_rule/f42dd7c0-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f42dd7c0-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..f06f163 --- /dev/null +++ b/notification_rule/f42dd7c0-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,34 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to tenant admins when any Rule chain or Rule node failed to start, update or stop" + }, + "enabled" : true, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f42dd7c0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Rule node initialization failure", + "recipientsConfig" : { + "targets" : [ "f4226610-0b6a-11f1-9957-b95a9cb5ea38" ], + "triggerType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42d3b80-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT", + "onlyRuleChainLifecycleFailures" : true, + "onlyRuleNodeLifecycleFailures" : true, + "ruleChainEvents" : [ "STOPPED", "STARTED", "UPDATED" ], + "ruleChains" : null, + "ruleNodeEvents" : [ "STOPPED", "STARTED", "UPDATED" ], + "trackRuleNodeEvents" : true, + "triggerType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT" + }, + "triggerType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT" + } +} \ No newline at end of file diff --git a/notification_rule/f42e7400-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f42e7400-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..757150c --- /dev/null +++ b/notification_rule/f42e7400-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,30 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to tenant admins when the connection status between TB and Edge changes" + }, + "enabled" : true, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f42e7400-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Edge connection status change", + "recipientsConfig" : { + "targets" : [ "f4226610-0b6a-11f1-9957-b95a9cb5ea38" ], + "triggerType" : "EDGE_CONNECTION" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42e25e0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "EDGE_CONNECTION", + "edges" : null, + "notifyOn" : [ "CONNECTED", "DISCONNECTED" ], + "triggerType" : "EDGE_CONNECTION" + }, + "triggerType" : "EDGE_CONNECTION" + } +} \ No newline at end of file diff --git a/notification_rule/f42f8570-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_rule/f42f8570-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..67c6c3a --- /dev/null +++ b/notification_rule/f42f8570-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,29 @@ +{ + "entityType" : "NOTIFICATION_RULE", + "entity" : { + "additionalConfig" : { + "description" : "Send notification to tenant admins when communication failures occur" + }, + "enabled" : true, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_RULE", + "id" : "f42f8570-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Edge communication failure", + "recipientsConfig" : { + "targets" : [ "f4226610-0b6a-11f1-9957-b95a9cb5ea38" ], + "triggerType" : "EDGE_COMMUNICATION_FAILURE" + }, + "templateId" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42f1040-0b6a-11f1-9957-b95a9cb5ea38" + }, + "triggerConfig" : { + "triggerType" : "EDGE_COMMUNICATION_FAILURE", + "edges" : null, + "triggerType" : "EDGE_COMMUNICATION_FAILURE" + }, + "triggerType" : "EDGE_COMMUNICATION_FAILURE" + } +} \ No newline at end of file diff --git a/notification_target/f42154a0-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_target/f42154a0-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..e0da93d --- /dev/null +++ b/notification_target/f42154a0-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,18 @@ +{ + "entityType" : "NOTIFICATION_TARGET", + "entity" : { + "configuration" : { + "type" : "PLATFORM_USERS", + "description" : "All users in scope of the tenant", + "usersFilter" : { + "type" : "ALL_USERS" + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TARGET", + "id" : "f42154a0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "All users" + } +} \ No newline at end of file diff --git a/notification_target/f4226610-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_target/f4226610-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..7fa157a --- /dev/null +++ b/notification_target/f4226610-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,20 @@ +{ + "entityType" : "NOTIFICATION_TARGET", + "entity" : { + "configuration" : { + "type" : "PLATFORM_USERS", + "description" : "Tenant administrators", + "usersFilter" : { + "type" : "TENANT_ADMINISTRATORS", + "tenantProfilesIds" : null, + "tenantsIds" : null + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TARGET", + "id" : "f4226610-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Tenant administrators" + } +} \ No newline at end of file diff --git a/notification_target/f423ecb0-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_target/f423ecb0-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..6a8eaad --- /dev/null +++ b/notification_target/f423ecb0-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,18 @@ +{ + "entityType" : "NOTIFICATION_TARGET", + "entity" : { + "configuration" : { + "type" : "PLATFORM_USERS", + "description" : "In case trigger entity (e.g. created device or alarm) is owned by customer, then recipients are this customer's users, otherwise tenant admins", + "usersFilter" : { + "type" : "ORIGINATOR_ENTITY_OWNER_USERS" + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TARGET", + "id" : "f423ecb0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Users of the entity owner" + } +} \ No newline at end of file diff --git a/notification_target/f42461e0-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_target/f42461e0-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..eb59587 --- /dev/null +++ b/notification_target/f42461e0-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,18 @@ +{ + "entityType" : "NOTIFICATION_TARGET", + "entity" : { + "configuration" : { + "type" : "PLATFORM_USERS", + "description" : "If rule trigger is an action that affects some user (e.g. alarm assigned to user) - this user", + "usersFilter" : { + "type" : "AFFECTED_USER" + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TARGET", + "id" : "f42461e0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Affected user" + } +} \ No newline at end of file diff --git a/notification_template/f4235070-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f4235070-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..d79504e --- /dev/null +++ b/notification_template/f4235070-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,30 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : false + }, + "actionButtonConfig" : { + "enabled" : false + } + }, + "body" : "Maintenance work is scheduled for tomorrow (7:00 a.m. - 9:00 a.m. UTC)", + "enabled" : true, + "subject" : "Infrastructure maintenance" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f4235070-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Maintenance work notification", + "notificationType" : "GENERAL" + } +} \ No newline at end of file diff --git a/notification_template/f424b000-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f424b000-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..f652225 --- /dev/null +++ b/notification_template/f424b000-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,32 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "notifications", + "color" : "#757575" + }, + "actionButtonConfig" : { + "enabled" : false + } + }, + "body" : "Severity: ${alarmSeverity}, originator: ${alarmOriginatorEntityType} '${alarmOriginatorName}'", + "enabled" : true, + "subject" : "New alarm '${alarmType}'" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f424b000-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "New alarm notification", + "notificationType" : "ALARM" + } +} \ No newline at end of file diff --git a/notification_template/f427bd40-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f427bd40-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..5f6bf80 --- /dev/null +++ b/notification_template/f427bd40-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,32 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "notifications", + "color" : "#757575" + }, + "actionButtonConfig" : { + "enabled" : false + } + }, + "body" : "Severity: ${alarmSeverity}, originator: ${alarmOriginatorEntityType} '${alarmOriginatorName}'", + "enabled" : true, + "subject" : "Alarm '${alarmType}' - ${action}" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f427bd40-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Alarm update notification", + "notificationType" : "ALARM" + } +} \ No newline at end of file diff --git a/notification_template/f4285980-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f4285980-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..8647085 --- /dev/null +++ b/notification_template/f4285980-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,35 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "info", + "color" : "#757575" + }, + "actionButtonConfig" : { + "enabled" : true, + "text" : "Go to ${entityType:lowerCase}", + "linkType" : "LINK", + "link" : "/${entityType:lowerCase}s/${entityId}" + } + }, + "body" : "${entityType} '${entityName}' was ${actionType} by user ${userEmail}", + "enabled" : true, + "subject" : "${entityType} was ${actionType}" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f4285980-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Entity action notification", + "notificationType" : "ENTITY_ACTION" + } +} \ No newline at end of file diff --git a/notification_template/f4299200-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f4299200-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..0fd21e3 --- /dev/null +++ b/notification_template/f4299200-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,35 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "info", + "color" : "#757575" + }, + "actionButtonConfig" : { + "enabled" : true, + "text" : "Go to device", + "linkType" : "LINK", + "link" : "/devices/${deviceId}" + } + }, + "body" : "Device '${deviceName}' of type '${deviceType}' is now ${eventType}", + "enabled" : true, + "subject" : "Device '${deviceName}' became ${eventType}" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f4299200-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Device activity notification", + "notificationType" : "DEVICE_ACTIVITY" + } +} \ No newline at end of file diff --git a/notification_template/f42aca80-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f42aca80-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..1337fbe --- /dev/null +++ b/notification_template/f42aca80-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,32 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "people", + "color" : "#757575" + }, + "actionButtonConfig" : { + "enabled" : false + } + }, + "body" : "${userEmail} ${action} comment: ${comment}", + "enabled" : true, + "subject" : "Comment on '${alarmType}' alarm" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42aca80-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Alarm comment notification", + "notificationType" : "ALARM_COMMENT" + } +} \ No newline at end of file diff --git a/notification_template/f42c0300-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f42c0300-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..9368927 --- /dev/null +++ b/notification_template/f42c0300-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,32 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "person", + "color" : "#757575" + }, + "actionButtonConfig" : { + "enabled" : false + } + }, + "body" : "${userEmail} assigned alarm on ${alarmOriginatorEntityType} '${alarmOriginatorName}' to ${assigneeEmail}", + "enabled" : true, + "subject" : "Alarm '${alarmType}' (${alarmSeverity}) was assigned to user" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42c0300-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Alarm assigned notification", + "notificationType" : "ALARM_ASSIGNMENT" + } +} \ No newline at end of file diff --git a/notification_template/f42d3b80-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f42d3b80-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..7ad3694 --- /dev/null +++ b/notification_template/f42d3b80-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,35 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "warning", + "color" : "#757575" + }, + "actionButtonConfig" : { + "enabled" : true, + "text" : "Go to rule chain", + "linkType" : "LINK", + "link" : "/ruleChains/${ruleChainId}" + } + }, + "body" : "${componentType} '${componentName}' failed to ${action}", + "enabled" : true, + "subject" : "${action:capitalize} failure in Rule chain '${ruleChainName}'" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42d3b80-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Rule chain/node lifecycle failure notification", + "notificationType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT" + } +} \ No newline at end of file diff --git a/notification_template/f42e25e0-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f42e25e0-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..881959f --- /dev/null +++ b/notification_template/f42e25e0-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,35 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "info", + "color" : "#757575" + }, + "actionButtonConfig" : { + "enabled" : true, + "text" : "Go to Edge", + "linkType" : "LINK", + "link" : "/edgeManagement/instances/${edgeId}" + } + }, + "body" : "Edge '${edgeName}' is now ${eventType}", + "enabled" : true, + "subject" : "Edge connection status change" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42e25e0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Edge connection notification", + "notificationType" : "EDGE_CONNECTION" + } +} \ No newline at end of file diff --git a/notification_template/f42f1040-0b6a-11f1-9957-b95a9cb5ea38.json b/notification_template/f42f1040-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..67a59fb --- /dev/null +++ b/notification_template/f42f1040-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,35 @@ +{ + "entityType" : "NOTIFICATION_TEMPLATE", + "entity" : { + "configuration" : { + "deliveryMethodsTemplates" : { + "WEB" : { + "method" : "WEB", + "additionalConfig" : { + "icon" : { + "enabled" : true, + "icon" : "error", + "color" : "#e91a1a" + }, + "actionButtonConfig" : { + "enabled" : true, + "text" : "Go to Edge", + "linkType" : "LINK", + "link" : "/edgeManagement/instances/${edgeId}" + } + }, + "body" : "Failure message: '${failureMsg}'", + "enabled" : true, + "subject" : "Edge '${edgeName}' communication failure occurred" + } + } + }, + "externalId" : null, + "id" : { + "entityType" : "NOTIFICATION_TEMPLATE", + "id" : "f42f1040-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Edge communication failure notification", + "notificationType" : "EDGE_COMMUNICATION_FAILURE" + } +} \ No newline at end of file diff --git a/rule_chain/f40ba9c0-0b6a-11f1-9957-b95a9cb5ea38.json b/rule_chain/f40ba9c0-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..16ed22a --- /dev/null +++ b/rule_chain/f40ba9c0-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,190 @@ +{ + "entityType" : "RULE_CHAIN", + "entity" : { + "additionalInfo" : null, + "configuration" : null, + "debugMode" : false, + "externalId" : null, + "firstRuleNodeId" : { + "entityType" : "RULE_NODE", + "id" : "f40fc870-0b6a-11f1-9957-b95a9cb5ea38" + }, + "id" : { + "entityType" : "RULE_CHAIN", + "id" : "f40ba9c0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Root Rule Chain", + "root" : true, + "type" : "CORE" + }, + "metaData" : { + "connections" : [ { + "fromIndex" : 2, + "toIndex" : 0, + "type" : "Post telemetry" + }, { + "fromIndex" : 2, + "toIndex" : 1, + "type" : "Post attributes" + }, { + "fromIndex" : 2, + "toIndex" : 3, + "type" : "RPC Request from Device" + }, { + "fromIndex" : 2, + "toIndex" : 4, + "type" : "Other" + }, { + "fromIndex" : 2, + "toIndex" : 5, + "type" : "RPC Request to Device" + } ], + "firstNodeIndex" : 2, + "nodes" : [ { + "additionalInfo" : { + "layoutX" : 824, + "layoutY" : 156 + }, + "configuration" : { + "defaultTTL" : 0, + "useServerTs" : false, + "processingSettings" : { + "type" : "ON_EVERY_MESSAGE" + } + }, + "configurationVersion" : 1, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f40ede10-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Save Timeseries", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode" + }, { + "additionalInfo" : { + "layoutX" : 825, + "layoutY" : 52 + }, + "configuration" : { + "processingSettings" : { + "type" : "ON_EVERY_MESSAGE" + }, + "scope" : "CLIENT_SCOPE", + "notifyDevice" : false, + "sendAttributesUpdatedNotification" : false, + "updateAttributesOnlyOnValueChange" : true + }, + "configurationVersion" : 3, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f40f5340-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Save Client Attributes", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode" + }, { + "additionalInfo" : { + "layoutX" : 347, + "layoutY" : 149 + }, + "configuration" : { + "version" : 0 + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f40fc870-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Message Type Switch", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode" + }, { + "additionalInfo" : { + "layoutX" : 825, + "layoutY" : 266 + }, + "configuration" : { + "scriptLang" : "TBEL", + "jsScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);", + "tbelScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);" + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f40fef80-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Log RPC from Device", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.action.TbLogNode" + }, { + "additionalInfo" : { + "layoutX" : 825, + "layoutY" : 379 + }, + "configuration" : { + "scriptLang" : "TBEL", + "jsScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);", + "tbelScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);" + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f4103da0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Log Other", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.action.TbLogNode" + }, { + "additionalInfo" : { + "layoutX" : 825, + "layoutY" : 468 + }, + "configuration" : { + "timeoutInSeconds" : 60 + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f41064b0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "RPC Call Request", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode" + } ], + "ruleChainConnections" : null + }, + "relations" : [ ], + "attributes" : { + "SERVER_SCOPE" : [ ] + } +} \ No newline at end of file diff --git a/rule_chain/f414aa70-0b6a-11f1-9957-b95a9cb5ea38.json b/rule_chain/f414aa70-0b6a-11f1-9957-b95a9cb5ea38.json new file mode 100644 index 0000000..bbd4a47 --- /dev/null +++ b/rule_chain/f414aa70-0b6a-11f1-9957-b95a9cb5ea38.json @@ -0,0 +1,248 @@ +{ + "entityType" : "RULE_CHAIN", + "entity" : { + "additionalInfo" : null, + "configuration" : null, + "debugMode" : false, + "externalId" : null, + "firstRuleNodeId" : { + "entityType" : "RULE_NODE", + "id" : "f415e2f0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "id" : { + "entityType" : "RULE_CHAIN", + "id" : "f414aa70-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Edge Root Rule Chain", + "root" : true, + "type" : "EDGE" + }, + "metaData" : { + "connections" : [ { + "fromIndex" : 0, + "toIndex" : 6, + "type" : "Success" + }, { + "fromIndex" : 1, + "toIndex" : 6, + "type" : "Success" + }, { + "fromIndex" : 2, + "toIndex" : 0, + "type" : "Post telemetry" + }, { + "fromIndex" : 2, + "toIndex" : 1, + "type" : "Post attributes" + }, { + "fromIndex" : 2, + "toIndex" : 3, + "type" : "RPC Request from Device" + }, { + "fromIndex" : 2, + "toIndex" : 4, + "type" : "Other" + }, { + "fromIndex" : 2, + "toIndex" : 5, + "type" : "RPC Request to Device" + }, { + "fromIndex" : 2, + "toIndex" : 7, + "type" : "Attributes Deleted" + }, { + "fromIndex" : 2, + "toIndex" : 7, + "type" : "Attributes Updated" + } ], + "firstNodeIndex" : 2, + "nodes" : [ { + "additionalInfo" : { + "layoutX" : 823, + "layoutY" : 157 + }, + "configuration" : { + "defaultTTL" : 0, + "useServerTs" : false, + "processingSettings" : { + "type" : "ON_EVERY_MESSAGE" + } + }, + "configurationVersion" : 1, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f41594d0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Save Timeseries", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode" + }, { + "additionalInfo" : { + "layoutX" : 824, + "layoutY" : 52 + }, + "configuration" : { + "processingSettings" : { + "type" : "ON_EVERY_MESSAGE" + }, + "scope" : "CLIENT_SCOPE", + "notifyDevice" : false, + "sendAttributesUpdatedNotification" : false, + "updateAttributesOnlyOnValueChange" : true + }, + "configurationVersion" : 3, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f415bbe0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Save Client Attributes", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode" + }, { + "additionalInfo" : { + "layoutX" : 347, + "layoutY" : 149 + }, + "configuration" : { + "version" : 0 + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f415e2f0-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Message Type Switch", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode" + }, { + "additionalInfo" : { + "layoutX" : 825, + "layoutY" : 266 + }, + "configuration" : { + "scriptLang" : "TBEL", + "jsScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);", + "tbelScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);" + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f4160a00-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Log RPC from Device", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.action.TbLogNode" + }, { + "additionalInfo" : { + "layoutX" : 824, + "layoutY" : 378 + }, + "configuration" : { + "scriptLang" : "TBEL", + "jsScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);", + "tbelScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);" + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f4160a01-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Log Other", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.action.TbLogNode" + }, { + "additionalInfo" : { + "layoutX" : 824, + "layoutY" : 466 + }, + "configuration" : { + "timeoutInSeconds" : 60 + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f4163110-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "RPC Call Request", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode" + }, { + "additionalInfo" : { + "layoutX" : 1126, + "layoutY" : 104 + }, + "configuration" : { + "scope" : "CLIENT_SCOPE" + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f416a640-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Push to cloud", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.edge.TbMsgPushToCloudNode" + }, { + "additionalInfo" : { + "layoutX" : 826, + "layoutY" : 601 + }, + "configuration" : { + "scope" : "SERVER_SCOPE" + }, + "configurationVersion" : 0, + "createdTime" : 0, + "debugSettings" : null, + "externalId" : null, + "id" : { + "entityType" : "RULE_NODE", + "id" : "f416cd50-0b6a-11f1-9957-b95a9cb5ea38" + }, + "name" : "Push to cloud", + "queueName" : null, + "ruleChainId" : null, + "singletonMode" : false, + "type" : "org.thingsboard.rule.engine.edge.TbMsgPushToCloudNode" + } ], + "ruleChainConnections" : null + }, + "relations" : [ ], + "attributes" : { + "SERVER_SCOPE" : [ ] + } +} \ No newline at end of file