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{…}
type BuildDiagnostic struct{…}
Code string
Code string
The kind of diagnostic.
Ignored bool
Ignored bool
Whether the diagnostic is ignored in the Stainless config.
Level BuildDiagnosticLevel
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
Message string
A description of the diagnostic.
Accepts one of the following:
type BuildDiagnosticMoreMarkdown struct{…}
type BuildDiagnosticMoreMarkdown struct{…}
Markdown string
Type Markdown
Type Markdown
Accepts one of the following:
const MarkdownMarkdown Markdown = "markdown"
type BuildDiagnosticMoreRaw struct{…}
type BuildDiagnosticMoreRaw struct{…}
Raw string
Type Raw
Type Raw
Accepts one of the following:
const RawRaw Raw = "raw"
ConfigRef stringoptional
ConfigRef stringoptional
A JSON pointer to a relevant field in the Stainless config.
OasRef stringoptional
OasRef stringoptional
A JSON pointer to a relevant field in the OpenAPI spec.
type BuildDiagnosticMoreUnion interface{…}
type BuildDiagnosticMoreUnion interface{…}
Accepts one of the following:
type BuildDiagnosticMoreMarkdown struct{…}
type BuildDiagnosticMoreMarkdown struct{…}
Markdown string
Type Markdown
Type Markdown
Accepts one of the following:
const MarkdownMarkdown Markdown = "markdown"
type BuildDiagnosticMoreRaw struct{…}
type BuildDiagnosticMoreRaw struct{…}
Raw string
Type Raw
Type Raw
Accepts one of the following:
const RawRaw Raw = "raw"