Module: ProjectionConstants

Constants that are used to describe a projection.

The following statement:

[{
  name: 'HostInfo',
  outputs: ['ip_address']
}]

Can be rewritten to use ProjectionConstants as follows:

var hostIpProjection = {}
hostIpProjection[ProjectionConstants.NAME] = 'HostInfo'
hostIpProjection[ProjectionConstants.OUTPUTS] = ['ip_address']

var projections = [hostIpProjection]
Source:

Members

(static) NAME

Projection name

Source:

(static) OUTPUTS

Projection outputs

Source: