Module

temporaryAbsences

Members

# inner constant fields

The key values from the object that can be synchronized.

View Source temporaryAbsences.js, line 152

Methods

# async inner create(env, temporaryAbsence) → {Promise.<TemporaryAbsence>}

Parameters:
Name Type Description
env module:environments.xMattersEnvironment The xmtoolbox representation of an xMatters instance.
temporaryAbsence string https://help.xmatters.com/xmapi/index.html#temporary-absence-object

View Source temporaryAbsences.js, line 32

Temporary Absence Object Created
Promise.<TemporaryAbsence>

# async inner exportToImport(destination, temporaryAbsences) → {Promise}

Transforms an array of records exported from xMatters to the format needed to import into xMatters.
Parameters:
Name Type Description
destination module:environments.xMattersEnvironment The xmtoolbox representation of the target or destination xMatters instance.
temporaryAbsences Array.<TemporaryAbsence> https://help.xmatters.com/xmapi/index.html#temporary-absence-object

View Source temporaryAbsences.js, line 58

Promise

# async inner getMany(env, query) → {Promise.<Array.<TemporaryAbsence>>}

Get all temporary absences from xMatters matching the query. Please refer to the link below for the available query parameters.

https://help.xmatters.com/xmapi/index.html#get-temporary-absences
Parameters:
Name Type Description
env module:environments.xMattersEnvironment The xmtoolbox representation of an xMatters instance.
query Object A json object representing the query string parameters for this request.

View Source temporaryAbsences.js, line 19

Array of Temporary Absence Objects Requested
Promise.<Array.<TemporaryAbsence>>

# async inner sync(destination, sourceTemporaryAbsences, destinationTemporaryAbsences, options)

Synchronizes an array of objects from a source with destination objects and updates the destination as necessary.
Parameters:
Name Type Description
destination module:environments.xMattersEnvironment The xmtoolbox representation of the target or destination xMatters instance.
sourceTemporaryAbsences TemporaryAbsence An array of the Temporary Absence objects to synchronize from the source data.
destinationTemporaryAbsences Array.<TemporaryAbsence> An array of the Temporary Absence objects to synchronize from the destination data.
options Object

View Source temporaryAbsences.js, line 169