v1
This commit is contained in:
@@ -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" : "0f457de0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"image" : null,
|
||||
"name" : "default"
|
||||
},
|
||||
"relations" : [ ],
|
||||
"attributes" : {
|
||||
"SERVER_SCOPE" : [ ]
|
||||
},
|
||||
"calculatedFields" : [ ]
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"entityType" : "CUSTOMER",
|
||||
"entity" : {
|
||||
"additionalInfo" : {
|
||||
"description" : "",
|
||||
"homeDashboardId" : null,
|
||||
"homeDashboardHideToolbar" : true
|
||||
},
|
||||
"address" : null,
|
||||
"address2" : null,
|
||||
"city" : null,
|
||||
"country" : null,
|
||||
"email" : null,
|
||||
"externalId" : null,
|
||||
"id" : {
|
||||
"entityType" : "CUSTOMER",
|
||||
"id" : "ff583b60-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "lzh",
|
||||
"phone" : null,
|
||||
"state" : null,
|
||||
"title" : "lzh",
|
||||
"zip" : null
|
||||
},
|
||||
"relations" : [ ],
|
||||
"attributes" : {
|
||||
"SERVER_SCOPE" : [ ]
|
||||
},
|
||||
"calculatedFields" : [ ]
|
||||
}
|
||||
@@ -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" : "0f3f3c50-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : [ ]
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"entityType" : "DEVICE_PROFILE",
|
||||
"entity" : {
|
||||
"default" : false,
|
||||
"defaultDashboardId" : null,
|
||||
"defaultEdgeRuleChainId" : null,
|
||||
"defaultQueueName" : null,
|
||||
"defaultRuleChainId" : {
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"id" : "0f2b1810-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"description" : "",
|
||||
"externalId" : null,
|
||||
"firmwareId" : null,
|
||||
"id" : {
|
||||
"entityType" : "DEVICE_PROFILE",
|
||||
"id" : "f1a526e0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"image" : null,
|
||||
"name" : "ESP32-WROOM-32U",
|
||||
"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" : [ ]
|
||||
}
|
||||
@@ -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" : "0f4ca9d0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "New alarm",
|
||||
"recipientsConfig" : {
|
||||
"escalationTable" : {
|
||||
"0" : [ "0f4ad510-994d-11f1-802e-4fa498a9e306" ]
|
||||
},
|
||||
"triggerType" : "ALARM"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4c5bb0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "ALARM",
|
||||
"alarmSeverities" : null,
|
||||
"alarmTypes" : null,
|
||||
"clearRule" : null,
|
||||
"notifyOn" : [ "CREATED" ],
|
||||
"triggerType" : "ALARM"
|
||||
},
|
||||
"triggerType" : "ALARM"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4d4610-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Alarm update",
|
||||
"recipientsConfig" : {
|
||||
"escalationTable" : {
|
||||
"0" : [ "0f4ad510-994d-11f1-802e-4fa498a9e306" ]
|
||||
},
|
||||
"triggerType" : "ALARM"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4d1f00-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "ALARM",
|
||||
"alarmSeverities" : null,
|
||||
"alarmTypes" : null,
|
||||
"clearRule" : null,
|
||||
"notifyOn" : [ "SEVERITY_CHANGED", "CLEARED", "ACKNOWLEDGED" ],
|
||||
"triggerType" : "ALARM"
|
||||
},
|
||||
"triggerType" : "ALARM"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4dbb40-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Device created",
|
||||
"recipientsConfig" : {
|
||||
"targets" : [ "0f4ad510-994d-11f1-802e-4fa498a9e306" ],
|
||||
"triggerType" : "ENTITY_ACTION"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4d6d20-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "ENTITY_ACTION",
|
||||
"created" : true,
|
||||
"deleted" : false,
|
||||
"entityTypes" : [ "DEVICE" ],
|
||||
"updated" : false,
|
||||
"triggerType" : "ENTITY_ACTION"
|
||||
},
|
||||
"triggerType" : "ENTITY_ACTION"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4e0960-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Device activity status change",
|
||||
"recipientsConfig" : {
|
||||
"targets" : [ "0f4ad510-994d-11f1-802e-4fa498a9e306" ],
|
||||
"triggerType" : "DEVICE_ACTIVITY"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4dbb41-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "DEVICE_ACTIVITY",
|
||||
"deviceProfiles" : null,
|
||||
"devices" : null,
|
||||
"notifyOn" : [ "ACTIVE", "INACTIVE" ],
|
||||
"triggerType" : "DEVICE_ACTIVITY"
|
||||
},
|
||||
"triggerType" : "DEVICE_ACTIVITY"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4e5780-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Comment on active alarm",
|
||||
"recipientsConfig" : {
|
||||
"targets" : [ "0f4ad510-994d-11f1-802e-4fa498a9e306" ],
|
||||
"triggerType" : "ALARM_COMMENT"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4e3070-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "ALARM_COMMENT",
|
||||
"alarmSeverities" : null,
|
||||
"alarmStatuses" : [ "ACTIVE" ],
|
||||
"alarmTypes" : null,
|
||||
"notifyOnCommentUpdate" : false,
|
||||
"onlyUserComments" : true,
|
||||
"triggerType" : "ALARM_COMMENT"
|
||||
},
|
||||
"triggerType" : "ALARM_COMMENT"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4ea5a0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Alarm assignment",
|
||||
"recipientsConfig" : {
|
||||
"targets" : [ "0f4c0d90-994d-11f1-802e-4fa498a9e306" ],
|
||||
"triggerType" : "ALARM_ASSIGNMENT"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4e7e90-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "ALARM_ASSIGNMENT",
|
||||
"alarmSeverities" : null,
|
||||
"alarmStatuses" : null,
|
||||
"alarmTypes" : null,
|
||||
"notifyOn" : [ "ASSIGNED" ],
|
||||
"triggerType" : "ALARM_ASSIGNMENT"
|
||||
},
|
||||
"triggerType" : "ALARM_ASSIGNMENT"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4f1ad0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Rule node initialization failure",
|
||||
"recipientsConfig" : {
|
||||
"targets" : [ "0f4ad510-994d-11f1-802e-4fa498a9e306" ],
|
||||
"triggerType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4eccb0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT",
|
||||
"onlyRuleChainLifecycleFailures" : true,
|
||||
"onlyRuleNodeLifecycleFailures" : true,
|
||||
"ruleChainEvents" : [ "STOPPED", "UPDATED", "STARTED" ],
|
||||
"ruleChains" : null,
|
||||
"ruleNodeEvents" : [ "STOPPED", "UPDATED", "STARTED" ],
|
||||
"trackRuleNodeEvents" : true,
|
||||
"triggerType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT"
|
||||
},
|
||||
"triggerType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4f9000-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Edge connection status change",
|
||||
"recipientsConfig" : {
|
||||
"targets" : [ "0f4ad510-994d-11f1-802e-4fa498a9e306" ],
|
||||
"triggerType" : "EDGE_CONNECTION"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4f68f0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "EDGE_CONNECTION",
|
||||
"edges" : null,
|
||||
"notifyOn" : [ "CONNECTED", "DISCONNECTED" ],
|
||||
"triggerType" : "EDGE_CONNECTION"
|
||||
},
|
||||
"triggerType" : "EDGE_CONNECTION"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4fde20-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Edge communication failure",
|
||||
"recipientsConfig" : {
|
||||
"targets" : [ "0f4ad510-994d-11f1-802e-4fa498a9e306" ],
|
||||
"triggerType" : "EDGE_COMMUNICATION_FAILURE"
|
||||
},
|
||||
"templateId" : {
|
||||
"entityType" : "NOTIFICATION_TEMPLATE",
|
||||
"id" : "0f4fb710-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"triggerConfig" : {
|
||||
"triggerType" : "EDGE_COMMUNICATION_FAILURE",
|
||||
"edges" : null,
|
||||
"triggerType" : "EDGE_COMMUNICATION_FAILURE"
|
||||
},
|
||||
"triggerType" : "EDGE_COMMUNICATION_FAILURE"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4a38d0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "All users"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4ad510-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Tenant administrators"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4be680-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Users of the entity owner"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4c0d90-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Affected user"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4b7150-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Maintenance work notification",
|
||||
"notificationType" : "GENERAL"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4c5bb0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "New alarm notification",
|
||||
"notificationType" : "ALARM"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4d1f00-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Alarm update notification",
|
||||
"notificationType" : "ALARM"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4d6d20-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Entity action notification",
|
||||
"notificationType" : "ENTITY_ACTION"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4dbb41-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Device activity notification",
|
||||
"notificationType" : "DEVICE_ACTIVITY"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4e3070-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Alarm comment notification",
|
||||
"notificationType" : "ALARM_COMMENT"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4e7e90-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Alarm assigned notification",
|
||||
"notificationType" : "ALARM_ASSIGNMENT"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4eccb0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Rule chain/node lifecycle failure notification",
|
||||
"notificationType" : "RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4f68f0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Edge connection notification",
|
||||
"notificationType" : "EDGE_CONNECTION"
|
||||
}
|
||||
}
|
||||
@@ -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" : "0f4fb710-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Edge communication failure notification",
|
||||
"notificationType" : "EDGE_COMMUNICATION_FAILURE"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,190 @@
|
||||
{
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"entity" : {
|
||||
"additionalInfo" : null,
|
||||
"configuration" : null,
|
||||
"debugMode" : false,
|
||||
"externalId" : null,
|
||||
"firstRuleNodeId" : {
|
||||
"entityType" : "RULE_NODE",
|
||||
"id" : "0f3180b0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"id" : {
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"id" : "0f2b1810-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f313290-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f3159a0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f3180b0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f31a7c0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f31ced0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f31ced1-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "RPC Call Request",
|
||||
"queueName" : null,
|
||||
"ruleChainId" : null,
|
||||
"singletonMode" : false,
|
||||
"type" : "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode"
|
||||
} ],
|
||||
"ruleChainConnections" : null
|
||||
},
|
||||
"relations" : [ ],
|
||||
"attributes" : {
|
||||
"SERVER_SCOPE" : [ ]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
{
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"entity" : {
|
||||
"additionalInfo" : null,
|
||||
"configuration" : null,
|
||||
"debugMode" : false,
|
||||
"externalId" : null,
|
||||
"firstRuleNodeId" : {
|
||||
"entityType" : "RULE_NODE",
|
||||
"id" : "0f35c670-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"id" : {
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"id" : "0f34b500-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f357850-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f359f60-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f35c670-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f35c671-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f35ed80-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f35ed81-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f361490-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f363ba0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Push to cloud",
|
||||
"queueName" : null,
|
||||
"ruleChainId" : null,
|
||||
"singletonMode" : false,
|
||||
"type" : "org.thingsboard.rule.engine.edge.TbMsgPushToCloudNode"
|
||||
} ],
|
||||
"ruleChainConnections" : null
|
||||
},
|
||||
"relations" : [ ],
|
||||
"attributes" : {
|
||||
"SERVER_SCOPE" : [ ]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"entity" : {
|
||||
"additionalInfo" : {
|
||||
"description" : "测试"
|
||||
},
|
||||
"configuration" : null,
|
||||
"debugMode" : false,
|
||||
"externalId" : null,
|
||||
"firstRuleNodeId" : null,
|
||||
"id" : {
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"id" : "3189cf90-994e-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Test",
|
||||
"root" : false,
|
||||
"type" : "CORE"
|
||||
},
|
||||
"metaData" : {
|
||||
"connections" : null,
|
||||
"firstNodeIndex" : null,
|
||||
"nodes" : [ ],
|
||||
"ruleChainConnections" : null
|
||||
},
|
||||
"relations" : [ ],
|
||||
"attributes" : {
|
||||
"SERVER_SCOPE" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user