locustio-locust
- Description:
Boost your performance with Locust! This open-source tool empowers you to conduct efficient load testing using the simplicity of Python. Monitor in real-time with a friendly UI and scale effortlessly!
- Copyright:
- 2025 Eyevinn Technology AB
Methods
(async, static) createLocustioLocustInstance(context, body) → {LocustioLocust}
- Description:
Create a new Locust instance
Example
import { Context } from '@osaas/client-core';
import { createLocustioLocustInstance } from '@osaas/client-services';
const ctx = new Context();
const body: LocustioLocustConfig = { name: 'myinstance', ... };
const instance = await createLocustioLocustInstance(ctx, body);
console.log(instance.url);
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
LocustioLocustConfig | Service instance configuration |
Returns:
- Service instance
- Type
- LocustioLocust
(async, static) getLocustioLocustInstance(context, name) → {LocustioLocust}
- Description:
Get a Locust instance
Example
import { Context } from '@osaas/client-core';
import { getLocustioLocustInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getLocustioLocustInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the locust to be retrieved |
Returns:
- Service instance
- Type
- LocustioLocust
(async, static) removeLocustioLocustInstance(context, name)
- Description:
Remove a Locust instance
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the locust to be removed |