Docs: Auditing non-JSON requests/responses (#63066)

Docs: Don't emit error logs when auditing non-JSON request/response
This commit is contained in:
Joan López de la Franca Beltran
2023-02-08 14:57:19 +01:00
committed by GitHub
parent ace4175e26
commit a0b563f596

View File

@ -45,12 +45,12 @@ Audit logs contain the following fields. The fields followed by **\*** are alway
| `request`\* | object | Information about the HTTP request. |
| `request.params` | object | Requests path parameters. |
| `request.query` | object | Requests query parameters. |
| `request.body` | string | Requests body. |
| `request.body` | string | Requests body. Filled with `<non-marshalable format>` when it isn't a valid JSON. |
| `result`\* | object | Information about the HTTP response. |
| `result.statusType` | string | If the request action was successful, `success`. Otherwise, `failure`. |
| `result.statusCode` | number | HTTP status of the request. |
| `result.failureMessage` | string | HTTP error message. |
| `result.body` | string | Response body. |
| `result.body` | string | Response body. Filled with `<non-marshalable format>` when it isn't a valid JSON. |
| `resources` | array | Information about the resources that the request action affected. This field can be null for non-resource actions such as `login` or `logout`. |
| `resources[x].id`\* | number | ID of the resource. |
| `resources[x].type`\* | string | The type of the resource that was logged: `alert`, `alert-notification`, `annotation`, `api-key`, `auth-token`, `dashboard`, `datasource`, `folder`, `org`, `panel`, `playlist`, `report`, `team`, `user`, or `version`. |