Skip to content

Get what is broken on a simulated device

GET
/components/{name}/impairment
curl --request GET \
--url https://example.com/api/v1/components/example/impairment

The impairment an operator set on a simulated component (unplugged, or a degraded link), applied by the simulator beside its node when that simulator runs with impairments and NET_ADMIN. A healthy device reads all zero. Gated by simulation:read; the component resolves within the caller’s component read scope.

name
required

The simulated component’s name, or a dotted address

string

The simulated component’s name, or a dotted address

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
jitter_ms

Variation on the delay, in milliseconds; at most the latency

integer format: int64
latency_ms

Delay added to traffic toward the device, in milliseconds

integer format: int64
<= 10000
loss_pct

Share of packets toward the device dropped, in percent, to hundredths

number format: double
<= 100
rate_kbit

Bandwidth limit on the device’s link, both ways, in kilobits per second; 0 is unlimited

integer format: int64
<= 10000000
unplugged

Dark on every protocol: connects time out, datagrams and pings go unanswered

boolean
Example
{
"$schema": "/api/v1/schemas/ImpairmentFields.json"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank
Example
{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}