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