Skip to content

Commit

Permalink
consolidate cloud schema to match all across (#846)
Browse files Browse the repository at this point in the history
Signed-off-by: YANGDB <yang.db.dev@gmail.com>
  • Loading branch information
YANG-DB authored Aug 11, 2023
1 parent 24fe388 commit 07a621b
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 07a621b

Please sign in to comment.