Skip to main content

DiagnosticProcessSample

One macOS process-sampling command result in a diagnostic capture bundle.

nameName (string)required

Sampling command name.

commandstring[]required

Command argv that was attempted.

okOk (boolean)required

Whether the sampling command completed cleanly.

exitCode object

Process exit code, when a command was launched.

anyOf
integer
durationSecondsDurationseconds (number)required

Wall-clock duration spent waiting for the command.

stdout object

Truncated standard output from the sampling command.

anyOf
string
stderr object

Truncated standard error from the sampling command.

anyOf
string
error object

Structured failure reason when the command could not run.

anyOf
string
DiagnosticProcessSample
{
"name": "string",
"command": [
"string"
],
"ok": true,
"exitCode": 0,
"durationSeconds": 0,
"stdout": "string",
"stderr": "string",
"error": "string"
}