CaptureLogModel
Defined in: packages/core/src/models/capture-log.ts:15
Data operations for capture log lines (every line of an attempt).
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CaptureLogModel(
db,tables?):CaptureLogModel
Defined in: packages/core/src/models/capture-log.ts:19
Parameters
Section titled “Parameters”tables?
Section titled “tables?”Returns
Section titled “Returns”CaptureLogModel
Methods
Section titled “Methods”append()
Section titled “append()”append(
projectId,buildId,attemptId,level,message,fields?):Promise<CaptureLog>
Defined in: packages/core/src/models/capture-log.ts:32
Parameters
Section titled “Parameters”projectId
Section titled “projectId”string
buildId
Section titled “buildId”string
attemptId
Section titled “attemptId”string
message
Section titled “message”string
fields?
Section titled “fields?”unknown
Returns
Section titled “Returns”Promise<CaptureLog>
listByAttempt()
Section titled “listByAttempt()”listByAttempt(
attemptId,limit?):Promise<CaptureLog[]>
Defined in: packages/core/src/models/capture-log.ts:24
Parameters
Section titled “Parameters”attemptId
Section titled “attemptId”string
limit?
Section titled “limit?”number
Returns
Section titled “Returns”Promise<CaptureLog[]>