我具有如下所示的JSON结构,该结构存储在Kibana中。
{
"alphaid": 300896,
"product": "ConsolidatedProject",
"projectList": [
"Project1",
"Project2"
],
"projectQualityDetails": [
{
"projectkey": "Project1",
"metrics": {
"qulaityGateStatus": "pass",
"issues": {
"bugs": {
"total": 12,
"blocker": 1,
"critical": 0,
"major": 5
},
"codeSmells": {
"total": 12,
"blocker": 1,
"critical": 0,
"major": 5
},
"vulnerabilities": {
"total": 12,
"blocker": 1,
"critical": 0,
"major": 5
}
},
"sqaleIndex": 3220
}
},
{
"projectkey": "Project2",
"metrics": {
"qulaityGateStatus": "pass",
"issues": {
"bugs": {
"total": 12,
"blocker": 1,
"critical": 0,
"major": 5
},
"codeSmells": {
"total": 12,
"blocker": 1,
"critical": 0,
"major": 5
},
"vulnerabilities": {
"total": 12,
"blocker": 1,
"critical": 0,
"major": 5
}
},
"sqaleIndex": 3220
}
}
]
}
在输入中,我有alphaid
,并且想获取qulaityGateStatus
中Project1
的{{1}}。
我应该在Kibana中写什么查询?
如果不可能的话,我应该更改我的json结构,我应该进行哪些更改?
谢谢