events: rename audit to events and use for more metrics (#397)
* events: rename audit to events * policies/expression: log expression exceptions as event * policies/expression: add ExpressionPolicy Model to event when possible * lib/expressions: ensure syntax errors are logged too * lib: fix lint error * policies: add execution_logging field * core: add property mapping tests * policies/expression: add full test * policies/expression: fix attribute name * policies: add execution_logging * web: fix imports * root: update swagger * policies: use dataclass instead of dict for types * events: add support for dataclass as event param * events: add special keys which are never cleaned * policies: add tests for process, don't clean full cache * admin: create event when new version is seen * events: move utils to separate file * admin: add tests for admin tasks * events: add .set_user method to ensure users have correct attributes set * core: add test for property_mapping errors with user and request
This commit is contained in:
		| @ -1,9 +1,9 @@ | ||||
| import { DefaultClient } from "./Client"; | ||||
|  | ||||
| export class AuditEvent { | ||||
|     //audit/events/top_per_user/?filter_action=authorize_application | ||||
| export class Event { | ||||
|     // events/events/top_per_user/?filter_action=authorize_application | ||||
|     static topForUser(action: string): Promise<TopNEvent[]> { | ||||
|         return DefaultClient.fetch<TopNEvent[]>(["audit", "events", "top_per_user"], { | ||||
|         return DefaultClient.fetch<TopNEvent[]>(["events", "events", "top_per_user"], { | ||||
|             "filter_action": action, | ||||
|         }); | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L