oxidized_event
const url = 'https://example.com/internal/oxidized/events';const options = { method: 'POST', headers: { Authorization: 'Bearer <token>', 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ err_type: 'example', event: 'example', group: 'example', ip: 'example', node: 'example' })};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/internal/oxidized/events \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data err_type=example \ --data event=example \ --data group=example \ --data ip=example \ --data node=exampleAuthorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”How one fetch ended, as oxidized’s hook posts it (config::render).
object
Oxidized’s error class, such as Net::SSH::AuthenticationFailed; empty on success.
node_success or node_fail.
The address oxidized dialled. A parked node’s (source::PARKED_IP) result is not a login
attempt and is ignored.
Oxidized’s name for the node: its id.
Examplegenerated
err_type=example&event=example&group=example&ip=example&node=exampleResponses
Section titled “Responses”Recorded, or ignored when it is not about one of Yagra’s nodes. For oxidized alone: it demands the source token in x-yagra-oxidized-token
No token, or the wrong one (oxidized_token)
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}This deployment has no config backup (config_backup_unavailable)
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}