Skip to content

Commit

Permalink
consolidate cloud schema to match all across (#846) (#902)
Browse files Browse the repository at this point in the history
(cherry picked from commit 07a621b)

Signed-off-by: YANGDB <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 7a4bc74 commit 398335e
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,70 @@
},
"properties": {
"cloud": {
"type" : "object",
"properties": {
"provider": {
"type": "keyword"
},
"availability_zone": {
"type": "keyword"
},
"region": {
"type": "keyword"
},
"machine": {
"type": "object",
"properties": {
"type": {
"type": "keyword"
}
}
},
"account": {
"type": "object",
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "keyword"
}
}
},
"region": {
"platform": {
"type": "keyword"
},
"resource_id": {
"type": "keyword"
"service": {
"type": "object",
"properties": {
"name": {
"type": "keyword"
}
}
},
"availability_zone": {
"type": "keyword"
"project": {
"type": "object",
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "keyword"
}
}
},
"platform": {
"resource_id": {
"type": "keyword"
},
"instance": {
"type": "object",
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "keyword"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
}
}
},
"platform": {
"type": "keyword"
},
"service": {
"type": "object",
"properties": {
Expand All @@ -57,6 +60,9 @@
}
}
},
"resource_id": {
"type": "keyword"
},
"instance": {
"type": "object",
"properties": {
Expand All @@ -73,4 +79,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,66 @@
"provider": {
"type": "keyword"
},
"availability_zone": {
"type": "keyword"
},
"region": {
"type": "keyword"
},
"machine": {
"type": "object",
"properties": {
"type": {
"type": "keyword"
}
}
},
"account": {
"type": "object",
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "keyword"
}
}
},
"region": {
"platform": {
"type": "keyword"
},
"resource_id": {
"type": "keyword"
"service": {
"type": "object",
"properties": {
"name": {
"type": "keyword"
}
}
},
"availability_zone": {
"type": "keyword"
"project": {
"type": "object",
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "keyword"
}
}
},
"platform": {
"resource_id": {
"type": "keyword"
},
"instance": {
"type": "object",
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "keyword"
}
}
}
}
}
Expand Down

0 comments on commit 398335e

Please sign in to comment.