MCPcopy Index your code
hub / github.com/coder/coder / InsertAuditLogParams

Struct InsertAuditLogParams

coderd/database/queries.sql.go:3534–3550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3532`
3533
3534type InsertAuditLogParams struct {
3535 ID uuid.UUID `db:"id" json:"id"`
3536 Time time.Time `db:"time" json:"time"`
3537 UserID uuid.UUID `db:"user_id" json:"user_id"`
3538 OrganizationID uuid.UUID `db:"organization_id" json:"organization_id"`
3539 Ip pqtype.Inet `db:"ip" json:"ip"`
3540 UserAgent sql.NullString `db:"user_agent" json:"user_agent"`
3541 ResourceType ResourceType `db:"resource_type" json:"resource_type"`
3542 ResourceID uuid.UUID `db:"resource_id" json:"resource_id"`
3543 ResourceTarget string `db:"resource_target" json:"resource_target"`
3544 Action AuditAction `db:"action" json:"action"`
3545 Diff json.RawMessage `db:"diff" json:"diff"`
3546 StatusCode int32 `db:"status_code" json:"status_code"`
3547 AdditionalFields json.RawMessage `db:"additional_fields" json:"additional_fields"`
3548 RequestID uuid.UUID `db:"request_id" json:"request_id"`
3549 ResourceIcon string `db:"resource_icon" json:"resource_icon"`
3550}
3551
3552func (q *sqlQuerier) InsertAuditLog(ctx context.Context, arg InsertAuditLogParams) (AuditLog, error) {
3553 row := q.db.QueryRowContext(ctx, insertAuditLog,

Callers 1

ExportMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected