create_warning
Create a new alarm record in the AIRIOT IoT platform to notify about device events or threshold violations, specifying severity level and content.
Instructions
创建新的报警记录
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"level": "<level>",
"content": "<content>"
},
"name": "create_warning"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | No | 规则ID | |
| level | Yes | 报警级别: 1-提示, 2-一般, 3-重要, 4-紧急 | |
| status | No | 报警状态: 0-未确认, 1-已确认, 2-已恢复, 3-已归档 | |
| title | No | 报警标题 | |
| content | Yes | 报警内容 | |
| deviceId | No | 设备ID | |
| deviceName | No | 设备名称 | |
| tagId | No | 属性点ID | |
| tagName | No | 属性点名称 | |
| tagValue | No | 当前值 | |
| threshold | No | 阈值 | |
| occurTime | No | 发生时间戳(毫秒) |