Get applied impairment
get
http://localhost/v1/impairments/{direction}Served over the Unix socket /run/chaosd/chaosd.sock
Returns the current AppliedState for a direction: the impairment decoded from the qdisc stack the kernel holds right now.
Path parameters
directionstringRequiredThe direction to operate on. Each direction is configured independently. An unknown value returns 400.
Allowed
port1port2Response
200 · application/jsonCurrent applied state. Returns an AppliedState object.
directionstringRequiredAllowed
port1port2impairmentImpairmentRequiredThe complete shaping state of one direction. Omitted fields are not applied.
divergencelist of DivergenceOptionalDifferences between requested and applied state. Omitted when empty.
captured_atinteger <int64>RequiredMonotonic timestamp in nanoseconds. The ordering source of truth.
captured_at_wallinteger <int64>RequiredWall-clock time in nanoseconds since the Unix epoch, for human correlation only.
Errors
400
Problem
Unknown direction or malformed body.
500
Problem
Backend or I/O error.
