rpc_audit
« Previous section Next section »
UCloud Developer Guide / Developing UCloud / Micro Library Reference / RPC / RPC Audit
RPC Audit
Configures the auditing feature. By-default the system will audit all requests, but they use the request type. Sometimes this can lead to bad results, for example, if the request message contains sensitive data. In this case the audit block should be used to transform the audit message. The audit type should be set with audit<AuditType> { /* configuration * / }
.
Fields | Description | Default value |
---|---|---|
| This setting is used to hint to other systems (e.g. alerting) that this request is expected to take a long time |
|
| Hints to other systems for how long they should keep this message | 365 days |
Additionally, the implement
block can now use the ctx.audit: AuditData
field.
Fields | Description | Default value |
---|---|---|
| How long should this message be saved before it can be deleted? | Defaults to using |
| Transforms the audit message | None |
| Allows the server to change the incoming token. This is only required if the token is not coming from a standard location. |
|
Examples
Example: Setting the audit type
Example: Setting the audit message (Controller
)
Last updated