@terascope/types / terafoundation / FoundationAPIs
Interface: FoundationAPIs
Properties
promMetrics
promMetrics:
PromMetrics
Source
Methods
createClient()
createClient(
config
):Promise
<ConnectorOutput
>
Parameters
Parameter | Type |
---|---|
config | ConnectionConfig |
Returns
Promise
<ConnectorOutput
>
Source
getSystemEvents()
getSystemEvents():
EventEmitter
<DefaultEventMap
>
Returns
EventEmitter
<DefaultEventMap
>
Source
makeLogger()
makeLogger(metadata)
makeLogger(
metadata
?):Logger
Create a child logger
Parameters
Parameter | Type |
---|---|
metadata ? | Record <string , string > |
Returns
Source
makeLogger(name, filename)
makeLogger(
name
,filename
):Logger
Create the root logger (usually done automatically)
Parameters
Parameter | Type |
---|---|
name | string |
filename | string |
Returns
Source
startWorkers()
startWorkers(
num
,envOptions
):FoundationWorker
[]
Parameters
Parameter | Type |
---|---|
num | number |
envOptions | Record <string , any > |