{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gizwits/json-schema/gizwits-get-app-rules-response-schema.json",
  "title": "GetAppRulesResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/gizwits-openapi-generated.yml#/components/schemas/GetAppRulesResponse",
  "type": "object",
  "properties": {
    "remark": {
      "type": "string",
      "description": "联动规则备注"
    },
    "name": {
      "type": "string",
      "description": "联动规则名称"
    },
    "did": {
      "type": "string",
      "description": "设备ID"
    },
    "interval": {
      "type": "integer",
      "description": "最小触发间隔(单位:秒)"
    },
    "product_key": {
      "type": "string",
      "description": "产品PK"
    },
    "rule_id": {
      "type": "integer",
      "description": "联动规则ID"
    },
    "event": {
      "type": "string",
      "description": "触发方式"
    },
    "event_attr": {
      "type": "object",
      "description": "触发方式为alert/fault时的属性"
    },
    "input": {
      "type": "array",
      "description": "规则中需要用到的设备数据"
    },
    "condition": {
      "type": "array",
      "description": "条件判断"
    },
    "output": {
      "type": "array",
      "description": "触发动作"
    }
  }
}