Skip to content

Commit eaadbb4

Browse files
authored
Merge pull request #57 from qmhu/tsp-ready
Ready status for tsp
2 parents eed63e6 + 7374aaa commit eaadbb4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

artifacts/deploy/prediction.crane.io_timeseriespredictions.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,16 @@ spec:
367367
type: array
368368
type: object
369369
type: array
370+
ready:
371+
description: Specifies whether the prediction is Ready.
372+
type: boolean
370373
resourceIdentifier:
371374
description: ResourceIdentifier is a resource to identify the
372375
metric, but now it is just an identifier now. such as cpu,
373376
memory
374377
type: string
378+
required:
379+
- ready
375380
type: object
376381
type: array
377382
type: object

prediction/v1alpha1/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ type PredictionMetricStatus struct {
257257
ResourceIdentifier string `json:"resourceIdentifier,omitempty"`
258258
// Prediction is the predicted time series data of the metric
259259
Prediction []*MetricTimeSeries `json:"prediction,omitempty"`
260+
// Specifies whether the prediction is Ready.
261+
Ready bool `json:"ready"`
260262
}
261263

262264
// MetricTimeSeries is a stream of samples that belong to a metric with a set of labels

0 commit comments

Comments
 (0)