Skip to content

Commit

Permalink
Merge pull request #57 from qmhu/tsp-ready
Browse files Browse the repository at this point in the history
Ready status for tsp
  • Loading branch information
qmhu committed Jul 6, 2022
2 parents eed63e6 + 7374aaa commit eaadbb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,16 @@ spec:
type: array
type: object
type: array
ready:
description: Specifies whether the prediction is Ready.
type: boolean
resourceIdentifier:
description: ResourceIdentifier is a resource to identify the
metric, but now it is just an identifier now. such as cpu,
memory
type: string
required:
- ready
type: object
type: array
type: object
Expand Down
2 changes: 2 additions & 0 deletions prediction/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ type PredictionMetricStatus struct {
ResourceIdentifier string `json:"resourceIdentifier,omitempty"`
// Prediction is the predicted time series data of the metric
Prediction []*MetricTimeSeries `json:"prediction,omitempty"`
// Specifies whether the prediction is Ready.
Ready bool `json:"ready"`
}

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

0 comments on commit eaadbb4

Please sign in to comment.