v51

latestSwagger 2.0raw.githubusercontent.com2026-08-01290564855.4 KB
rule_template

添加自定义规则

create custom rule

post/v1/custom_rules

Request body

annotationstring
db_typestring
descstring
level'normal' | 'notice' | 'warn' | 'error'
rule_scriptstring
tagsstring[]
typestring

Example request

{
  "annotation": "this is test rule",
  "db_type": "MySQL",
  "desc": "this is test rule",
  "level": "notice",
  "type": "DDL规则"
}

Response

OK