Skip to content

Commit

Permalink
fix: Update status response when slo is sourceSLO
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkwarcinski committed Sep 25, 2024
1 parent 5608e19 commit f07ba52
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions manifest/v1alpha/slo/slo.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,13 @@ type AnomalyConfigAlertMethod struct {
// Status holds dynamic fields returned when the Service is fetched from Nobl9 platform.
// Status is not part of the static object definition.
type Status struct {
UpdatedAt string `json:"updatedAt,omitempty"`
ReplayStatus *ReplayStatus `json:"timeTravel,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
ReplayStatus *ReplayStatus `json:"timeTravel,omitempty"`
SourceSLOStatus *SourceSloStatus `json:"sourceSlo,omitempty"`
}

type SourceSloStatus struct {
TargetTimeTravel ReplayStatus `json:"targetTimeTravel"`
}

type ReplayStatus struct {
Expand Down

0 comments on commit f07ba52

Please sign in to comment.