Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Open source

Constructor

The ServiceDisruptor() constructor creates a new instance of a ServiceDisruptor class.

ParameterTypeDescription
servicestringname of the service
namespacestringnamespace on which the service is defined
options (optional)objectoptions for controlling the behavior of the disruptor

Options

The following options control the creation and behavior of the ServiceDisruptor:

AttributeTypeDescription
injectTimeoutstringmaximum time for waiting the disruptor to be ready in the target pods (default 30s)

Example

JavaScript
const disruptor = new ServiceDisruptor('my-service', 'my-namespace');