Skip to content
FeedbackDashboard

Diagnostics

Get diagnostics for a build
client.Builds.Diagnostics.List(ctx, buildID, query) (*Page[BuildDiagnostic], error)
get/v0/builds/{buildId}/diagnostics
ModelsExpand Collapse
type BuildDiagnostic struct{…}
Code string

The kind of diagnostic.

Ignored bool

Whether the diagnostic is ignored in the Stainless config.

Level BuildDiagnosticLevel

The severity of the diagnostic.

Accepts one of the following:
const BuildDiagnosticLevelFatal BuildDiagnosticLevel = "fatal"
const BuildDiagnosticLevelError BuildDiagnosticLevel = "error"
const BuildDiagnosticLevelWarning BuildDiagnosticLevel = "warning"
const BuildDiagnosticLevelNote BuildDiagnosticLevel = "note"
Message string

A description of the diagnostic.

Accepts one of the following:
type BuildDiagnosticMoreMarkdown struct{…}
Markdown string
Type Markdown
type BuildDiagnosticMoreRaw struct{…}
Raw string
Type Raw
ConfigRef stringoptional

A JSON pointer to a relevant field in the Stainless config.

OasRef stringoptional

A JSON pointer to a relevant field in the OpenAPI spec.

type BuildDiagnosticMoreUnion interface{…}
Accepts one of the following:
type BuildDiagnosticMoreMarkdown struct{…}
Markdown string
Type Markdown
type BuildDiagnosticMoreRaw struct{…}
Raw string
Type Raw