@@ -95,6 +95,7 @@ object ActivationResponse extends DefaultJsonProtocol {
95
95
* @param annotations a list of JSON objects to save the annotations of the activation
96
96
*/
97
97
case class ActivationResult (activationId : String ,
98
+ namespace : String ,
98
99
logs : Option [List [String ]],
99
100
response : ActivationResponse ,
100
101
start : Instant ,
@@ -123,14 +124,14 @@ object ActivationResult extends DefaultJsonProtocol {
123
124
}
124
125
125
126
implicit val serdes = new RootJsonFormat [ActivationResult ] {
126
- private val format = jsonFormat8 (ActivationResult .apply)
127
+ private val format = jsonFormat9 (ActivationResult .apply)
127
128
128
129
def write (result : ActivationResult ) = format.write(result)
129
130
130
131
def read (value : JsValue ) = {
131
132
val obj = value.asJsObject
132
- obj.getFields(" activationId" , " response" , " start" ) match {
133
- case Seq (JsString (activationId), response, start) =>
133
+ obj.getFields(" activationId" , " namespace " , " response" , " start" ) match {
134
+ case Seq (JsString (activationId), JsString (namespace), response, start) =>
134
135
Try {
135
136
val logs = obj.fields.get(" logs" ).map(_.convertTo[List [String ]])
136
137
val end = obj.fields.get(" end" ).map(_.convertTo[Instant ]).getOrElse(Instant .EPOCH )
@@ -139,6 +140,7 @@ object ActivationResult extends DefaultJsonProtocol {
139
140
val annotations = obj.fields.get(" annotations" ).map(_.convertTo[List [JsObject ]])
140
141
new ActivationResult (
141
142
activationId,
143
+ namespace,
142
144
logs,
143
145
response.convertTo[ActivationResponse ],
144
146
start.convertTo[Instant ],
0 commit comments