Individual Call Properties

Prev Next

As shown previously, you can override adapter properties on an individual request. You only need to get the info into the adapter by exposing parameters in the adapter.js method.

  • Most properties can be changed on a request. Exceptions to this include throttling (do not bypass or change the queue handling) and healthcheck.

Example: Individual call properties.

const reqObj =
  payload: { garbage: 'need since post' },
  uriPathVars: [groupId, deviceId],
  uriQuery: { name: 'anyname' },
  uriOptions: { page: 2 },
  addlHeaders: { audit: 'turnOn' },
  authData: { domain: 'abc' },
  callProperties: {
    stub: true,
    request: {
      attempt_timeout = 60000
    }
  },
  filter: '[*name=doggie]',
  priority: 1,
  event: 'giveMeMyData'
};