mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add audit log filter for autostarted and autostopped workspace builds (#5830)
* added query * fixed query * added example to dropdown * added documentation * added test * fixed formatting * fixed format
This commit is contained in:
@@ -209,6 +209,7 @@ export interface CreateTestAuditLogRequest {
|
||||
readonly resource_type?: ResourceType
|
||||
readonly resource_id?: string
|
||||
readonly time?: string
|
||||
readonly build_reason?: BuildReason
|
||||
}
|
||||
|
||||
// From codersdk/apikey.go
|
||||
|
||||
@@ -40,6 +40,10 @@ const presetFilters = [
|
||||
query: "resource_type:workspace_build action:start",
|
||||
name: "Started builds",
|
||||
},
|
||||
{
|
||||
query: "resource_type:workspace_build action:start build_reason:initiator",
|
||||
name: "Builds started by a user",
|
||||
},
|
||||
]
|
||||
|
||||
export interface AuditPageViewProps {
|
||||
|
||||
Reference in New Issue
Block a user