1.json 1.54 KB
{
  "name": "测试2",
  "description": "测试2",
  "transportType": "COAP",
  "profileData": {
    "alarms": [
      {
        "alarmType": "测试2",
        "propagate": true,
        "propagateRelationTypes": [
          "测试2"
        ],
        "createRules": {
          "MAJOR": {
            "alarmDetails": "测试2",
            "schedule": {
              "type": "SPECIFIC_TIME",
              "daysOfWeek": [
                "1",
                "2",
                "3"
              ],
              "endsOn": "14:11:27",
              "timezone": "Africa/Abidjan (UTC+00:00)"
            },
            "condition": {
              "condition": [
                {
                  "key": {
                    "type": "TIME_SERIES",
                    "key": "CO2"
                  },
                  "valueType": "NUMERIC",
                  "predicate": {
                    "operation": "LESS",
                    "value": {
                      "defaultValue": 2
                    },
                    "type": "NUMERIC"
                  }
                }
              ],
              "spec": {
                "type": "DURATION",
                "unit": "DAYS",
                "predicate": {
                  "defaultValue": 3,
                  "dynamicValue": {
                    "sourceType": "CURRENT_TENANT",
                    "sourceAttribute": "测试2"
                  }
                }
              }
            }
          }
        }
      }
    ]
  },
  "alarmProfile": {
    "messageMode": "PHONE_MESSAGE"
  }
}