Skip to main content

@terascope/types / terafoundation / FoundationAPIs

Interface: FoundationAPIs

Properties

promMetrics

promMetrics: PromMetrics

Source

terafoundation.ts:98

Methods

createClient()

createClient(config): Promise<ConnectorOutput>

Parameters

ParameterType
configConnectionConfig

Returns

Promise<ConnectorOutput>

Source

terafoundation.ts:96


getSystemEvents()

getSystemEvents(): EventEmitter<DefaultEventMap>

Returns

EventEmitter<DefaultEventMap>

Source

terafoundation.ts:95


makeLogger()

makeLogger(metadata)

makeLogger(metadata?): Logger

Create a child logger

Parameters
ParameterType
metadata?Record<string, string>
Returns

Logger

Source

terafoundation.ts:92

makeLogger(name, filename)

makeLogger(name, filename): Logger

Create the root logger (usually done automatically)

Parameters
ParameterType
namestring
filenamestring
Returns

Logger

Source

terafoundation.ts:94


startWorkers()

startWorkers(num, envOptions): FoundationWorker[]

Parameters

ParameterType
numnumber
envOptionsRecord<string, any>

Returns

FoundationWorker[]

Source

terafoundation.ts:97