@terascope/job-components / operations/job-observer / default
Class: default
An Observer for monitoring the Slice Analytics
Extends
Constructors
new default()
new default(
context
,apiConfig
,executionConfig
):default
Parameters
Parameter | Type |
---|---|
context | Context |
apiConfig | APIConfig |
executionConfig | ExecutionConfig |
Returns
Overrides
Source
packages/job-components/src/operations/job-observer.ts:26
Properties
_currentIndex
protected
_currentIndex:number
Source
packages/job-components/src/operations/job-observer.ts:18
_currentSliceId
protected
_currentSliceId:string
Source
packages/job-components/src/operations/job-observer.ts:16
analyticsData
analyticsData:
undefined
|SliceAnalyticsData
Source
packages/job-components/src/operations/job-observer.ts:13
apiConfig
readonly
apiConfig:Readonly
<APIConfig
>
Inherited from
Source
packages/job-components/src/operations/core/api-core.ts:20
collectAnalytics
collectAnalytics:
boolean
Source
packages/job-components/src/operations/job-observer.ts:12
context
readonly
context:Readonly
<Context
>
Inherited from
Source
packages/job-components/src/operations/core/core.ts:10
deadLetterAction
deadLetterAction:
string
Inherited from
Source
packages/job-components/src/operations/core/api-core.ts:21
events
readonly
events:EventEmitter
<DefaultEventMap
>
Inherited from
Source
packages/job-components/src/operations/core/core.ts:13
executionConfig
readonly
executionConfig:Readonly
<ExecutionConfig
>
Inherited from
Source
packages/job-components/src/operations/core/core.ts:11
logger
readonly
logger:Logger
Inherited from
Source
packages/job-components/src/operations/core/core.ts:12
Methods
defaultAnalytics()
defaultAnalytics():
SliceAnalyticsData
Returns
Source
packages/job-components/src/operations/job-observer.ts:90
getAnalytics()
getAnalytics():
undefined
|SliceAnalyticsData
Returns
undefined
| SliceAnalyticsData
Source
packages/job-components/src/operations/job-observer.ts:79
initialize()
initialize():
Promise
<void
>
Called during execution initialization, when this is called perform any async setup.
Returns
Promise
<void
>
Inherited from
Source
packages/job-components/src/operations/core/api-core.ts:37
onOperationComplete()
onOperationComplete(
sliceId
,index
,processed
):void
Parameters
Parameter | Type |
---|---|
sliceId | string |
index | number |
processed | number |
Returns
void
Source
packages/job-components/src/operations/job-observer.ts:64
onOperationStart()
onOperationStart(
sliceId
,index
):void
Parameters
Parameter | Type |
---|---|
sliceId | string |
index | number |
Returns
void
Source
packages/job-components/src/operations/job-observer.ts:52
onSliceInitialized()
onSliceInitialized(
sliceId
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
sliceId | string |