Skip to main content

Class: MaximLogsAPI

Defined in: src/lib/apis/logs.ts:5

Extends

  • MaximAPI

Constructors

Constructor

new MaximLogsAPI(baseUrl, apiKey): MaximLogsAPI
Defined in: src/lib/apis/logs.ts:6

Parameters

baseUrl
string
apiKey
string

Returns

MaximLogsAPI

Overrides

MaximAPI.constructor

Methods

checkAttachEvaluators()

checkAttachEvaluators(repositoryId, evaluatorNames): Promise<{ canAttach: boolean; evaluatorsToIgnore?: string[]; message?: string; }>
Defined in: src/lib/apis/logs.ts:26

Parameters

repositoryId
string
evaluatorNames
string[]

Returns

Promise<{ canAttach: boolean; evaluatorsToIgnore?: string[]; message?: string; }>

destroyAgents()

destroyAgents(): void
Defined in: src/lib/apis/maxim.ts:98 Destroys the HTTP and HTTPS agents, closing all sockets

Returns

void

Inherited from

MaximAPI.destroyAgents

doesLogRepositoryExist()

doesLogRepositoryExist(loggerId): Promise<boolean>
Defined in: src/lib/apis/logs.ts:10

Parameters

loggerId
string

Returns

Promise<boolean>

pushLogs()

pushLogs(repositoryId, logs): Promise<void>
Defined in: src/lib/apis/logs.ts:55

Parameters

repositoryId
string
logs
string

Returns

Promise<void>