-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #516 from Boavizta/508-add-metadata-to-the-inventory
Feat: add metadata to the JSON inventory (optional date and comment).
Showing
10 changed files
with
386 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"resources":[{"provider":"AWS","id":"i-03c8f84a6318a8186","location":{"aws_region":"eu-west-1","iso_country_code":"IRL"},"resource_details":{"Instance":{"instance_type":"a1.medium","usage":{"average_cpu_load":0.24541666666666664,"usage_duration_seconds":300,"state":"Running"}}},"tags":[{"key":"Name","value":"test-boapi"},{"key":"CreatorName","value":"olivierdemeringoadm"},{"key":"CustomTagNameForDebug","value":"olivierdemeringoadm"}]},{"provider":"AWS","id":"i-033df52f12f30ca66","location":{"aws_region":"eu-west-1","iso_country_code":"IRL"},"resource_details":{"Instance":{"instance_type":"m6g.xlarge","usage":{"average_cpu_load":0.0,"usage_duration_seconds":300,"state":"Stopped"}}},"tags":[{"key":"Name","value":"test-boavizta"},{"key":"CustomTagNameForDebug","value":"olivierdemeringoadm"},{"key":"CreatorName","value":"olivierdemeringoadm"}]},{"provider":"AWS","id":"i-0a3e6b8cdb50c49b8","location":{"aws_region":"eu-west-1","iso_country_code":"IRL"},"resource_details":{"Instance":{"instance_type":"c5n.xlarge","usage":{"average_cpu_load":0.0,"usage_duration_seconds":300,"state":"Stopped"}}},"tags":[{"key":"CustomTagNameForDebug","value":"olivierdemeringoadm"},{"key":"appname","value":"app1"},{"key":"created_by","value":"demeringo"},{"key":"CreatorName","value":"olivierdemeringoadm"},{"key":"Name","value":"boavizta-c5n.xlarge"}]},{"provider":"AWS","id":"i-003ea8da7bb9bfff9","location":{"aws_region":"eu-west-1","iso_country_code":"IRL"},"resource_details":{"Instance":{"instance_type":"m6g.xlarge","usage":{"average_cpu_load":0.05362499999999998,"usage_duration_seconds":300,"state":"Running"}}},"tags":[{"key":"CustomTagNameForDebug","value":"olivierdemeringoadm"},{"key":"CreatorName","value":"olivierdemeringoadm"},{"key":"Name","value":"test-boavizta-2"}]}],"executionStatistics":{"inventory_duration":{"secs":0,"nanos":669819838},"impact_estimation_duration":{"secs":0,"nanos":0},"total_duration":{"secs":0,"nanos":669820304}}} | ||
{"metadata":{},"resources":[{"provider":"AWS","id":"i-03c8f84a6318a8186","location":{"aws_region":"eu-west-1","iso_country_code":"IRL"},"resource_details":{"Instance":{"instance_type":"a1.medium","usage":{"average_cpu_load":0.24541666666666664,"state":"Running"}}},"tags":[{"key":"Name","value":"test-boapi"},{"key":"CreatorName","value":"olivierdemeringoadm"},{"key":"CustomTagNameForDebug","value":"olivierdemeringoadm"}]},{"provider":"AWS","id":"i-033df52f12f30ca66","location":{"aws_region":"eu-west-1","iso_country_code":"IRL"},"resource_details":{"Instance":{"instance_type":"m6g.xlarge","usage":{"average_cpu_load":0.0,"state":"Stopped"}}},"tags":[{"key":"Name","value":"test-boavizta"},{"key":"CustomTagNameForDebug","value":"olivierdemeringoadm"},{"key":"CreatorName","value":"olivierdemeringoadm"}]},{"provider":"AWS","id":"i-0a3e6b8cdb50c49b8","location":{"aws_region":"eu-west-1","iso_country_code":"IRL"},"resource_details":{"Instance":{"instance_type":"c5n.xlarge","usage":{"average_cpu_load":0.0,"state":"Stopped"}}},"tags":[{"key":"CustomTagNameForDebug","value":"olivierdemeringoadm"},{"key":"appname","value":"app1"},{"key":"created_by","value":"demeringo"},{"key":"CreatorName","value":"olivierdemeringoadm"},{"key":"Name","value":"boavizta-c5n.xlarge"}]},{"provider":"AWS","id":"i-003ea8da7bb9bfff9","location":{"aws_region":"eu-west-1","iso_country_code":"IRL"},"resource_details":{"Instance":{"instance_type":"m6g.xlarge","usage":{"average_cpu_load":0.05362499999999998,"state":"Running"}}},"tags":[{"key":"CustomTagNameForDebug","value":"olivierdemeringoadm"},{"key":"CreatorName","value":"olivierdemeringoadm"},{"key":"Name","value":"test-boavizta-2"}]}],"executionStatistics":{"inventory_duration":{"secs":0,"nanos":669819838},"impact_estimation_duration":{"secs":0,"nanos":0},"total_duration":{"secs":0,"nanos":669820304}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"metadata": { | ||
"inventoryDate": "2024-05-30 12:21:03.0Z", | ||
"description": "A test inventory" | ||
}, | ||
"resources": [ | ||
{ | ||
"provider": "AWS", | ||
"id": "instance-1", | ||
"location": { | ||
"aws_region": "eu-west-1", | ||
"iso_country_code": "IRL" | ||
}, | ||
"resource_details": { | ||
"Instance": { | ||
"instance_type": "a1.medium", | ||
"usage": { | ||
"average_cpu_load": 0.3, | ||
"state": "Running" | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
}, | ||
{ | ||
"provider": "AWS", | ||
"id": "instance-2", | ||
"location": { | ||
"aws_region": "eu-west-1", | ||
"iso_country_code": "IRL" | ||
}, | ||
"resource_details": { | ||
"Instance": { | ||
"instance_type": "m6g.xlarge", | ||
"usage": { | ||
"average_cpu_load": 0, | ||
"state": "Stopped" | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
{ | ||
"metadata": {}, | ||
"resources": [ | ||
{ | ||
"provider": "AWS", | ||
"id": "i-03c8f84a6318a8186", | ||
"location": { | ||
"aws_region": "eu-west-1", | ||
"iso_country_code": "IRL" | ||
}, | ||
"resource_details": { | ||
"Instance": { | ||
"instance_type": "a1.medium", | ||
"usage": { | ||
"average_cpu_load": 0.24541666666666664, | ||
"usage_duration_seconds": 300, | ||
"state": "Running" | ||
} | ||
} | ||
}, | ||
"tags": [ | ||
{ | ||
"key": "Name", | ||
"value": "test-boapi" | ||
}, | ||
{ | ||
"key": "CreatorName", | ||
"value": "olivierdemeringoadm" | ||
}, | ||
{ | ||
"key": "CustomTagNameForDebug", | ||
"value": "olivierdemeringoadm" | ||
} | ||
] | ||
}, | ||
{ | ||
"provider": "AWS", | ||
"id": "i-033df52f12f30ca66", | ||
"location": { | ||
"aws_region": "eu-west-1", | ||
"iso_country_code": "IRL" | ||
}, | ||
"resource_details": { | ||
"Instance": { | ||
"instance_type": "m6g.xlarge", | ||
"usage": { | ||
"average_cpu_load": 0, | ||
"usage_duration_seconds": 300, | ||
"state": "Stopped" | ||
} | ||
} | ||
}, | ||
"tags": [ | ||
{ | ||
"key": "Name", | ||
"value": "test-boavizta" | ||
}, | ||
{ | ||
"key": "CustomTagNameForDebug", | ||
"value": "olivierdemeringoadm" | ||
}, | ||
{ | ||
"key": "CreatorName", | ||
"value": "olivierdemeringoadm" | ||
} | ||
] | ||
}, | ||
{ | ||
"provider": "AWS", | ||
"id": "i-0a3e6b8cdb50c49b8", | ||
"location": { | ||
"aws_region": "eu-west-1", | ||
"iso_country_code": "IRL" | ||
}, | ||
"resource_details": { | ||
"Instance": { | ||
"instance_type": "c5n.xlarge", | ||
"usage": { | ||
"average_cpu_load": 0, | ||
"usage_duration_seconds": 300, | ||
"state": "Stopped" | ||
} | ||
} | ||
}, | ||
"tags": [ | ||
{ | ||
"key": "CustomTagNameForDebug", | ||
"value": "olivierdemeringoadm" | ||
}, | ||
{ | ||
"key": "appname", | ||
"value": "app1" | ||
}, | ||
{ | ||
"key": "created_by", | ||
"value": "demeringo" | ||
}, | ||
{ | ||
"key": "CreatorName", | ||
"value": "olivierdemeringoadm" | ||
}, | ||
{ | ||
"key": "Name", | ||
"value": "boavizta-c5n.xlarge" | ||
} | ||
] | ||
}, | ||
{ | ||
"provider": "AWS", | ||
"id": "i-003ea8da7bb9bfff9", | ||
"location": { | ||
"aws_region": "eu-west-1", | ||
"iso_country_code": "IRL" | ||
}, | ||
"resource_details": { | ||
"Instance": { | ||
"instance_type": "m6g.xlarge", | ||
"usage": { | ||
"average_cpu_load": 0.05362499999999998, | ||
"usage_duration_seconds": 300, | ||
"state": "Running" | ||
} | ||
} | ||
}, | ||
"tags": [ | ||
{ | ||
"key": "CustomTagNameForDebug", | ||
"value": "olivierdemeringoadm" | ||
}, | ||
{ | ||
"key": "CreatorName", | ||
"value": "olivierdemeringoadm" | ||
}, | ||
{ | ||
"key": "Name", | ||
"value": "test-boavizta-2" | ||
} | ||
] | ||
} | ||
], | ||
"executionStatistics": { | ||
"inventory_duration": { | ||
"secs": 0, | ||
"nanos": 669819838 | ||
}, | ||
"impact_estimation_duration": { | ||
"secs": 0, | ||
"nanos": 0 | ||
}, | ||
"total_duration": { | ||
"secs": 0, | ||
"nanos": 669820304 | ||
} | ||
} | ||
} |