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
| Header | Value and purpose |
|---|---|
Authorization | Use Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session. |
Content-Type | application/json selects ProtoJSON for this unary request. |
Connect-Protocol-Version | 1 selects version 1 of the Connect protocol. |
Request fields
GetTrainingDiagnosticsSummaryRequest
| JSON field | Type | Meaning |
|---|---|---|
scope | TrainingDiagnosticScope | Resource and attempt selection for this diagnostics read. |
ifRevision | uint64 (explicit presence) | Compare only with a previous response for this exact attempt UID. |
ifStateToken | string | Opaque 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 field | Type | Meaning |
|---|---|---|
resourceUid | string | UID of the resource named in the request, including when a Model points to a TrainingRun. |
trainingRunUid | string | UID of the TrainingRun that produced this result. Use it to distinguish same-name runs. |
attemptUid | string | Identifier of a training attempt. Use the UID reported by the summary to select the same attempt on subsequent reads. |
attempts | list of TrainingDiagnosticAttempt | Known training attempts. Select one by UID when comparing revisions or requesting detailed telemetry. |
revision | uint64 | Monotonic diagnostics revision for this attempt. Compare revisions only within the same attempt. |
notModified | bool | True when the conditional request matches the current summary. Reuse the previously fetched summary. |
availability | string | NotRecorded, Pending, Live, Sealed, Partial, Unavailable, Unsupported, or Disabled. |
phase | string | Observed lifecycle phase. Interpret it together with the status or availability of the corresponding object. |
stage | string | Training or execution stage associated with the observation. |
updatedAt | string | Timestamp of the last diagnostics update for the selected attempt. |
elapsedMs | uint64 (explicit presence) | Elapsed time in milliseconds from the training attempt’s reference point. |
epoch | uint32 (explicit presence) | Epoch number when the training process supplied an epoch. |
epochLimit | uint32 (explicit presence) | Maximum training epochs configured for this attempt. |
optimizerStep | uint64 (explicit presence) | Optimizer step when recorded. Use this position for a step-based metric series. |
descriptors | list of TrainingMetricDescriptor | Metric definitions, units, and semantics available for selection by key. |
selection | TrainingDiagnosticEvent | Event that identifies the selected checkpoint or evaluation, when known. |
finalReportDigest | string | Digest of the final training report, when it has been published and verified. |
modelManifestDigest | string | Digest of the model manifest associated with the final training result. |
axes | list of string | Axes available for metric requests on this attempt. |
completedEpochs | uint32 (explicit presence) | Number of completed training epochs recorded by the producer. |
stopReason | string | Producer-reported reason training stopped, when known. |
incomplete | bool | True if terminal diagnostics have missing telemetry or discarded required samples. |
samplingIntervalMs | uint64 | Time interval in milliseconds between scheduled telemetry samples. |
evaluationMode | string | Evaluation mode used by this training run. Use it when interpreting reported metrics. |
provenance | map from string to string | Producer-reported identities and configuration used to interpret the diagnostics. |
stateToken | string | Opaque 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
}