Skip to content

node-zendesk / Exports / clients/job-monitor / export=

Class: export=

clients/job-monitor.export=

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new export=(options): export=

Parameters

NameType
optionsany

Returns

export=

Defined in

clients/job-monitor.d.ts:3

Properties

client

client: ZendeskClient

Defined in

clients/job-monitor.d.ts:4

Methods

checkJobStatus

checkJobStatus(jobID): Promise<object>

Checks the status of a job.

Parameters

NameTypeDescription
jobIDstringThe ID of the job to monitor.

Returns

Promise<object>

  • Promise resolving to the job status.

Defined in

clients/job-monitor.d.ts:10


monitorJobStatus

monitorJobStatus(jobID, interval?, maxAttempts?): Promise<object>

Continuously checks the status of a job using intervals and invokes a callback when the job status changes.

Parameters

NameTypeDescription
jobIDstringThe ID of the job to monitor.
interval?numberThe interval in milliseconds at which to check the job status.
maxAttempts?numberThe maximum number of attempts to check the job status.

Returns

Promise<object>

  • Promise resolving to the job result.

Defined in

clients/job-monitor.d.ts:18

Released under the MIT License.