Skip to main content

TrainingService.GetTrainingDiagnosticsSummary

Read training diagnostics for a TrainingRun or its published Model. Omit attemptUid to select the most recent attempt. Retain revision and stateToken for a conditional refresh.

TrainingService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.

POST /prokrust.api.v1alpha1.TrainingService/GetTrainingDiagnosticsSummary

Request headers​

HeaderValue and purpose
AuthorizationUse Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session.
Content-Typeapplication/json selects ProtoJSON for this unary request.
Connect-Protocol-Version1 selects version 1 of the Connect protocol.

Request fields​

GetTrainingDiagnosticsSummaryRequest

JSON fieldTypeMeaning
scopeTrainingDiagnosticScopeResource and attempt selection for this diagnostics read.
ifRevisionuint64 (explicit presence)Compare only with a previous response for this exact attempt UID.
ifStateTokenstringOpaque summary state from the same attempt, including lifecycle changes.

Example request​

Set PROKRUST_URL to the installation’s HTTPS origin and PROKRUST_TOKEN to your caller token. Replace the sample values with values from your installation.

curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $PROKRUST_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Connect-Protocol-Version: 1' \
"$PROKRUST_URL/prokrust.api.v1alpha1.TrainingService/GetTrainingDiagnosticsSummary" \
--data-binary @- <<'JSON'
{
"scope": {
"resourceKind": "TrainingRun",
"namespace": "analytics",
"name": "train-values",
"uid": "91c90b29-d618-5dbf-bc4b-391c5aababcd"
}
}
JSON

Response fields​

TrainingDiagnosticsSummaryResponse

JSON fieldTypeMeaning
resourceUidstringUID of the resource named in the request, including when a Model points to a TrainingRun.
trainingRunUidstringUID of the TrainingRun that produced this result. Use it to distinguish same-name runs.
attemptUidstringIdentifier of a training attempt. Use the UID reported by the summary to select the same attempt on subsequent reads.
attemptslist of TrainingDiagnosticAttemptKnown training attempts. Select one by UID when comparing revisions or requesting detailed telemetry.
revisionuint64Monotonic diagnostics revision for this attempt. Compare revisions only within the same attempt.
notModifiedboolTrue when the conditional request matches the current summary. Reuse the previously fetched summary.
availabilitystringNotRecorded, Pending, Live, Sealed, Partial, Unavailable, Unsupported, or Disabled.
phasestringObserved lifecycle phase. Interpret it together with the status or availability of the corresponding object.
stagestringTraining or execution stage associated with the observation.
updatedAtstringTimestamp of the last diagnostics update for the selected attempt.
elapsedMsuint64 (explicit presence)Elapsed time in milliseconds from the training attempt’s reference point.
epochuint32 (explicit presence)Epoch number when the training process supplied an epoch.
epochLimituint32 (explicit presence)Maximum training epochs configured for this attempt.
optimizerStepuint64 (explicit presence)Optimizer step when recorded. Use this position for a step-based metric series.
descriptorslist of TrainingMetricDescriptorMetric definitions, units, and semantics available for selection by key.
selectionTrainingDiagnosticEventEvent that identifies the selected checkpoint or evaluation, when known.
finalReportDigeststringDigest of the final training report, when it has been published and verified.
modelManifestDigeststringDigest of the model manifest associated with the final training result.
axeslist of stringAxes available for metric requests on this attempt.
completedEpochsuint32 (explicit presence)Number of completed training epochs recorded by the producer.
stopReasonstringProducer-reported reason training stopped, when known.
incompleteboolTrue if terminal diagnostics have missing telemetry or discarded required samples.
samplingIntervalMsuint64Time interval in milliseconds between scheduled telemetry samples.
evaluationModestringEvaluation mode used by this training run. Use it when interpreting reported metrics.
provenancemap from string to stringProducer-reported identities and configuration used to interpret the diagnostics.
stateTokenstringOpaque summary token that also tracks lifecycle changes. Send it with ifRevision on a conditional refresh.

Example response​

{
"resourceUid": "91c90b29-d618-5dbf-bc4b-391c5aababcd",
"attemptUid": "02c42918-e4a6-5009-a3fd-cf5ec3ec60cd",
"revision": "4",
"trainingRunUid": "91c90b29-d618-5dbf-bc4b-391c5aababcd",
"attempts": [
{
"uid": "02c42918-e4a6-5009-a3fd-cf5ec3ec60cd",
"phase": "Running"
}
],
"availability": "Live",
"phase": "Running",
"stage": "Training",
"epoch": 2,
"epochLimit": 10
}