Body
application/json
The filter of the log. It should be a valid CEL expression. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
Supported filter:
- method: the API name, can be found in the docs, should start with "/bytebase.v1." prefix. For example "/bytebase.v1.UserService/CreateUser". Support "==" operator.
- severity: support "==" operator, check Severity enum in AuditLog message for values.
- user: the actor, should in "users/{email}" format, support "==" operator.
- create_time: support ">=" and "<=" operator.
For example:
- filter = "method == '/bytebase.v1.SQLService/Query'"
- filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'"
- filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/bb@bytebase.com'"
- filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'"
The order by of the log. Only support order by create_time. For example:
- order_by = "create_time asc"
- order_by = "create_time desc"
The maximum number of logs to return. The service may return fewer than this value. If unspecified, at most 10 log entries will be returned. The maximum value is 5000; values above 5000 will be coerced to 5000.
A page token, received from a previous SearchLogs
call.
Provide this to retrieve the subsequent page.