RIC-208 - K8S podName added to e2Instance
[ric-plt/nodeb-rnib.git] / entities / e2t_instance.go
index ad5723a..29a3ebb 100644 (file)
@@ -23,17 +23,19 @@ import "time"
 
 type E2TInstance struct {
        Address            string           `json:"address"`
+       PodName            string           `json:"podName"`
        AssociatedRanList  []string         `json:"associatedRanList"`
        KeepAliveTimestamp int64            `json:"keepAliveTimestamp"`
        State              E2TInstanceState `json:"state"`
-       DeletionTimestamp  int64                        `json:"deletionTimeStamp"`
+       DeletionTimestamp  int64            `json:"deletionTimeStamp"`
 }
 
-func NewE2TInstance(address string) *E2TInstance {
-       return &E2TInstance{
+func NewE2TInstance(address string, podName string) *E2TInstance {
+               return &E2TInstance{
                Address:            address,
                KeepAliveTimestamp: time.Now().UnixNano(),
                State:              Active,
                AssociatedRanList:  []string{},
+               PodName:            podName,
        }
 }