diff --git a/pkg/analyser/analysis.go b/pkg/analyser/analysis.go index 2433ba24..a843c848 100644 --- a/pkg/analyser/analysis.go +++ b/pkg/analyser/analysis.go @@ -24,7 +24,7 @@ type Summary struct { TotalResources int `json:"total_resources"` TotalDrifted int `json:"total_drifted"` TotalUnmanaged int `json:"total_unmanaged"` - TotalDeleted int `json:"total_deleted"` + TotalDeleted int `json:"total_missing"` TotalManaged int `json:"total_managed"` } @@ -46,7 +46,7 @@ type serializableAnalysis struct { Summary Summary `json:"summary"` Managed []resource.SerializableResource `json:"managed"` Unmanaged []resource.SerializableResource `json:"unmanaged"` - Deleted []resource.SerializableResource `json:"deleted"` + Deleted []resource.SerializableResource `json:"missing"` Differences []serializableDifference `json:"differences"` Coverage int `json:"coverage"` Alerts map[string][]alerter.SerializableAlert `json:"alerts"` diff --git a/pkg/analyser/testdata/input.json b/pkg/analyser/testdata/input.json index 71b82dc7..15a6c7bc 100644 --- a/pkg/analyser/testdata/input.json +++ b/pkg/analyser/testdata/input.json @@ -3,7 +3,7 @@ "total_resources": 6, "total_drifted": 1, "total_unmanaged": 2, - "total_deleted": 2, + "total_missing": 2, "total_managed": 2 }, "managed": [ @@ -26,7 +26,7 @@ "type": "aws_s3_bucket_notification" } ], - "deleted": [ + "missing": [ { "id": "test-driftctl2", "type": "aws_iam_user" diff --git a/pkg/analyser/testdata/output.json b/pkg/analyser/testdata/output.json index 6de42786..9d504a80 100644 --- a/pkg/analyser/testdata/output.json +++ b/pkg/analyser/testdata/output.json @@ -3,7 +3,7 @@ "total_resources": 6, "total_drifted": 1, "total_unmanaged": 2, - "total_deleted": 2, + "total_missing": 2, "total_managed": 2 }, "managed": [ @@ -26,7 +26,7 @@ "type": "aws_s3_bucket_notification" } ], - "deleted": [ + "missing": [ { "id": "test-driftctl2", "type": "aws_iam_user" diff --git a/pkg/cmd/scan/output/testdata/output.json b/pkg/cmd/scan/output/testdata/output.json index bd56ddb7..56b2f804 100644 --- a/pkg/cmd/scan/output/testdata/output.json +++ b/pkg/cmd/scan/output/testdata/output.json @@ -3,7 +3,7 @@ "total_resources": 6, "total_drifted": 1, "total_unmanaged": 2, - "total_deleted": 2, + "total_missing": 2, "total_managed": 2 }, "managed": [ @@ -26,7 +26,7 @@ "type": "aws_unmanaged_resource" } ], - "deleted": [ + "missing": [ { "id": "deleted-id-1", "type": "aws_deleted_resource" diff --git a/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.json b/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.json index 7e7a675f..950b6c63 100644 --- a/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.json +++ b/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.json @@ -3,12 +3,12 @@ "total_resources": 0, "total_drifted": 0, "total_unmanaged": 0, - "total_deleted": 0, + "total_missing": 0, "total_managed": 0 }, "managed": null, "unmanaged": null, - "deleted": null, + "missing": null, "differences": null, "coverage": 0, "alerts": { diff --git a/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.json b/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.json index 9c8c0c21..8bfc5b0a 100644 --- a/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.json +++ b/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.json @@ -3,12 +3,12 @@ "total_resources": 0, "total_drifted": 0, "total_unmanaged": 0, - "total_deleted": 0, + "total_missing": 0, "total_managed": 0 }, "managed": null, "unmanaged": null, - "deleted": null, + "missing": null, "differences": null, "coverage": 0, "alerts": { diff --git a/pkg/cmd/scan/output/testdata/output_computed_fields.json b/pkg/cmd/scan/output/testdata/output_computed_fields.json index 642224ca..7dc73092 100644 --- a/pkg/cmd/scan/output/testdata/output_computed_fields.json +++ b/pkg/cmd/scan/output/testdata/output_computed_fields.json @@ -3,7 +3,7 @@ "total_resources": 1, "total_drifted": 1, "total_unmanaged": 0, - "total_deleted": 0, + "total_missing": 0, "total_managed": 1 }, "managed": [ @@ -13,7 +13,7 @@ } ], "unmanaged": null, - "deleted": null, + "missing": null, "differences": [ { "res": {