You can use open APIs to implement custom diagnostics. APIs of SQl Diagnoser are classified into the diagnostic API and diagnostic rule APIs.
- The URL of the diagnostic API is
http://ip:port/swagger-ui/index.html#/sql-diagnose-controller/diagnosisUsingPOST. - Diagnostic rule APIs include the API for enumerating diagnostic rules, the API for deleting diagnostic rules, the API for creating diagnostic rules, and the API for updating diagnostic rules.
- URL of the API for enumerating diagnostic rules:
http://ip:port/swagger-ui/index.html#/sql-diagnose-controller/listDiagnoseRulesUsingGET - URL of the API for deleting diagnostic rules:
http://ip:port/swagger-ui/index.html#/sql-diagnose-controller/deleteDiagnoseRuleUsingDELETE - URL of the API for creating diagnostic rules:
http://ip:port/swagger-ui/index.html#/sql-diagnose-controller/addDiagnoseRuleUsingPOST - URL of the API for updating diagnostic rules:
http://ip:port/swagger-ui/index.html#/sql-diagnose-controller/updateDiagnoseRuleUsingPOST
- URL of the API for enumerating diagnostic rules:
Note
Here, ip:port is the deployment address of SQL Diagnoser, which must be replaced with the actual deployment address.