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:
Kira Pilot
2023-01-24 15:34:29 -05:00
committed by GitHub
parent 36384aa3c1
commit 322a4d93e1
13 changed files with 130 additions and 11 deletions
+1
View File
@@ -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 {