ErrorLog: the mechanism ErrorsRepo implements.
API
@Interface()
export abstract class ErrorLog {
abstract insert(r: ErrorRecordInsert): void;
abstract summary(projectId: string, f?: ErrorFilter): ErrorSummary;
abstract topCode(projectId: string, f?: ErrorFilter): ErrorCodeCount | null;
abstract recent(
projectId: string,
f?: ErrorFilter,
limit?: number,
offset?: number,
utcOffsetMinutes?: number,
): ErrorItem[];
abstract rowCount(projectId: string, f?: ErrorFilter, utcOffsetMinutes?: number): number;
abstract deleteFiltered(projectId: string, f?: Omit<ErrorFilter, "includeGlobal">): number;
abstract deleteByAgent(projectId: string, agentId: string): void;
abstract deleteByProject(projectId: string): void;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (8)
insert
insert(r: ErrorRecordInsert): void@paramr
ErrorRecordInsert@returns
voidsummary
summary(projectId: string, f?: ErrorFilter): ErrorSummary@paramprojectId
string@paramf?
ErrorFilter@returns
ErrorSummarytopCode
topCode(projectId: string, f?: ErrorFilter): ErrorCodeCount | null@paramprojectId
string@paramf?
ErrorFilter@returns
ErrorCodeCount | nullrecent
recent(projectId: string, f?: ErrorFilter, limit?: number, offset?: number, utcOffsetMinutes?: number): ErrorItem[]@paramprojectId
string@paramf?
ErrorFilter@paramlimit?
number@paramoffset?
number@paramutcOffsetMinutes?
number@returns
ErrorItem[]rowCount
rowCount(projectId: string, f?: ErrorFilter, utcOffsetMinutes?: number): number@paramprojectId
string@paramf?
ErrorFilter@paramutcOffsetMinutes?
number@returns
numberdeleteFiltered
deleteFiltered(projectId: string, f?: Omit<ErrorFilter, "includeGlobal">): number@paramprojectId
string@paramf?
Omit<ErrorFilter, "includeGlobal">@returns
numberdeleteByAgent
deleteByAgent(projectId: string, agentId: string): void@paramprojectId
string@paramagentId
string@returns
voiddeleteByProject
deleteByProject(projectId: string): void@paramprojectId
string@returns
void