diff options
author | Ritu Sood <Ritu.Sood@intel.com> | 2020-09-01 21:18:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-01 21:18:45 +0000 |
commit | e6277404b61f508d6af11b3e8bb067d716ba21c0 (patch) | |
tree | f146afe803c008576b07ea353a5bc05541e663db /src/orchestrator/pkg/state/types.go | |
parent | 65e4059d86a5f0dda682ebd879f409be18afa5b0 (diff) | |
parent | 645c6a331cd00043fcf9f567f5f261a9db070918 (diff) |
Merge "Enhance the status query API"
Diffstat (limited to 'src/orchestrator/pkg/state/types.go')
-rw-r--r-- | src/orchestrator/pkg/state/types.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/orchestrator/pkg/state/types.go b/src/orchestrator/pkg/state/types.go index 665a1be4..99f0adca 100644 --- a/src/orchestrator/pkg/state/types.go +++ b/src/orchestrator/pkg/state/types.go @@ -22,15 +22,15 @@ import "time" // information about resources which can be instantiated via rsync. // The last Actions entry holds the current state of the container object. type StateInfo struct { - Actions []ActionEntry + Actions []ActionEntry `json:"actions"` } // ActionEntry is used to keep track of the time an action (e.g. Created, Instantiate, Terminate) was invoked // For actions where an AppContext is relevent, the ContextId field will be non-zero length type ActionEntry struct { - State StateValue - ContextId string - TimeStamp time.Time + State StateValue `json:"state"` + ContextId string `json:"instance"` + TimeStamp time.Time `json:"time"` } type StateValue = string |