device_profile_001_in.json 4.52 KB
{
  "id": {
    "entityType": "DEVICE_PROFILE",
    "id": "b99fde7a-33dd-4d5d-a325-d0637f6acbe5"
  },
  "createdTime": 1627268171906,
  "tenantId": {
    "entityType": "TENANT",
    "id": "3db30ac6-db03-4788-98fe-6e024b422a15"
  },
  "name": "LORAWAN 001",
  "description": "Tektelic - 001",
  "type": "DEFAULT",
  "transportType": "DEFAULT",
  "provisionType": "DISABLED",
  "defaultRuleChainId": {
    "entityType": "RULE_CHAIN",
    "id": "9c50f4df-f41e-443f-bb7d-37b5ac97f3c3"
  },
  "defaultQueueName": "LORAWAN",
  "profileData": {
    "configuration": {
      "type": "DEFAULT"
    },
    "transportConfiguration": {
      "type": "DEFAULT"
    },
    "provisionConfiguration": {
      "type": "DISABLED",
      "provisionDeviceSecret": null
    },
    "alarms": [
      {
        "id": "b86271fd-5fee-4bd5-975c-d9c18f610cd5",
        "alarmType": "LORAWAN - Battery Alarm",
        "createRules": {
          "CRITICAL": {
            "condition": {
              "condition": [
                {
                  "key": {
                    "type": "TIME_SERIES",
                    "key": "batteryLevel"
                  },
                  "valueType": "NUMERIC",
                  "value": null,
                  "predicate": {
                    "type": "NUMERIC",
                    "operation": "LESS",
                    "value": {
                      "defaultValue": 25.0,
                      "userValue": null,
                      "dynamicValue": null
                    }
                  }
                }
              ],
              "spec": {
                "type": "DURATION",
                "unit": "DAYS",
                "value": 1
              }
            },
            "schedule": null,
            "alarmDetails": null
          }
        },
        "clearRule": {
          "condition": {
            "condition": [
              {
                "key": {
                  "type": "TIME_SERIES",
                  "key": "batteryLevel"
                },
                "valueType": "NUMERIC",
                "value": null,
                "predicate": {
                  "type": "NUMERIC",
                  "operation": "GREATER_OR_EQUAL",
                  "value": {
                    "defaultValue": 25.0,
                    "userValue": null,
                    "dynamicValue": null
                  }
                }
              }
            ],
            "spec": {
              "type": "DURATION",
              "unit": "DAYS",
              "value": 1
            }
          },
          "schedule": null,
          "alarmDetails": null
        },
        "propagate": true,
        "propagateRelationTypes": [
          "UC-0007 LORAWAN"
        ]
      },
      {
        "id": "c70aef4e-65cf-4578-acd9-e1927c08b469",
        "alarmType": "LORAWAN - No Data",
        "createRules": {
          "CRITICAL": {
            "condition": {
              "condition": [
                {
                  "key": {
                    "type": "TIME_SERIES",
                    "key": "active"
                  },
                  "valueType": "BOOLEAN",
                  "value": null,
                  "predicate": {
                    "type": "BOOLEAN",
                    "operation": "EQUAL",
                    "value": {
                      "defaultValue": false,
                      "userValue": null,
                      "dynamicValue": null
                    }
                  }
                }
              ],
              "spec": {
                "type": "SIMPLE"
              }
            },
            "schedule": null,
            "alarmDetails": null
          }
        },
        "clearRule": {
          "condition": {
            "condition": [
              {
                "key": {
                  "type": "TIME_SERIES",
                  "key": "active"
                },
                "valueType": "BOOLEAN",
                "value": null,
                "predicate": {
                  "type": "BOOLEAN",
                  "operation": "EQUAL",
                  "value": {
                    "defaultValue": true,
                    "userValue": null,
                    "dynamicValue": null
                  }
                }
              }
            ],
            "spec": {
              "type": "SIMPLE"
            }
          },
          "schedule": null,
          "alarmDetails": null
        },
        "propagate": true,
        "propagateRelationTypes": [
          "LORAWAN 001 related"
        ]
      }
    ]
  },
  "provisionDeviceKey": null,
  "default": false
}