Menu

This is documentation for the next version of K6. For the latest stable release, go to the latest 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');