Get diagnostics for a build
$client->builds->diagnostics->list(string buildID, ?string cursor, ?float limit, ?Severity severity, ?string targets): Page<BuildDiagnostic>
GET/v0/builds/{buildId}/diagnostics
Get the list of diagnostics for a given build.
If no language targets are specified, diagnostics for all languages are returned.
Get diagnostics for a build
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(apiKey: 'My API Key', environment: 'staging');
$page = $client->builds->diagnostics->list(
'buildId', cursor: 'cursor', limit: 1, severity: 'fatal', targets: 'targets'
);
var_dump($page);{
"data": [
{
"code": "code",
"ignored": true,
"level": "fatal",
"message": "message",
"more": {
"markdown": "markdown",
"type": "markdown"
},
"config_ref": "config_ref",
"oas_ref": "oas_ref"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}Returns Examples
{
"data": [
{
"code": "code",
"ignored": true,
"level": "fatal",
"message": "message",
"more": {
"markdown": "markdown",
"type": "markdown"
},
"config_ref": "config_ref",
"oas_ref": "oas_ref"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}