是否可以使用 lift JSON 、 argonaut 等深度合并 JSON 结构
{
"metrics": [{
"name": "abcde",
"tags": {
"oId": ["pqrs"],
"uuid": ["A123-B234"],
"entityType": ["test"],
"entityName": ["test"]
},
"aggregators": [{
"name": "sum",
"sampling": {
"value": 40,
"unit": "seconds"
}
}]
}],
"cache_time": 0,
"start_relative": {
"value": 8,
"unit": "hours"
}
}
我正在尝试将新属性(“instance”:[“PQRSTUW”])深度合并到“metrics”/“tags”结构中
屈服
{
"metrics": [{
"name": "abcde",
"tags": {
"orgId": ["pqrs"],
"vcuuid": ["A123-B234"],
"entityType": ["test"],
"entityName": ["test"],
"instance" : ["PQRSTUW"]
},
"aggregators": [{
"name": "sum",
"sampling": {
"value": 40,
"unit": "seconds"
}
}]
}],
"cache_time": 0,
"start_relative": {
"value": 8,
"unit": "hours"
}
}
这可能吗?