Description
Turn on the "/admin/ping" audit event in the configuration page.
Send a ping event:
curl -v http://localhost:8093/admin/ping |
The resulting audit record will contain an "errorMessage" field, even though no error occurred.
{"timestamp":"2018-03-14T06:54:24.887-07:00","real_userid":{"source":"internal","user":"unknown"},"httpMethod":"GET","httpResultCode":200,"errorMessage":"","id":28697,"name":"/admin/ping API request","description":"An HTTP request was made to the API at /admin/ping."} |
Attachments
For Gerrit Dashboard: MB-28675 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
91513,2 | MB-28689 MB-28675 audit /admin/stats API and do not produce errorMessage field if empty | master | query | Status: MERGED | +2 | +1 |