From ec070fa61afa873747b6925a6b74782bc69ae604 Mon Sep 17 00:00:00 2001 From: Vincent Mercier Date: Tue, 24 Oct 2023 17:54:48 +0200 Subject: [PATCH] chore(rds): Add metrics for modifying status --- internal/app/rds/rds.go | 2 ++ internal/app/rds/rds_test.go | 1 + 2 files changed, 3 insertions(+) diff --git a/internal/app/rds/rds.go b/internal/app/rds/rds.go index 27b884e..93527c7 100644 --- a/internal/app/rds/rds.go +++ b/internal/app/rds/rds.go @@ -54,6 +54,7 @@ const ( InstanceStatusAvailable int = 1 InstanceStatusBackingUp int = 2 InstanceStatusStarting int = 3 + InstanceStatusModifying int = 4 InstanceStatusStopped int = 0 InstanceStatusUnknown int = -1 InstanceStatusStopping int = -2 @@ -86,6 +87,7 @@ var instanceStatuses = map[string]int{ "backing-up": InstanceStatusBackingUp, "creating": InstanceStatusCreating, "deleting": InstanceStatusDeleting, + "modifying": InstanceStatusModifying, "starting": InstanceStatusStarting, "stopped": InstanceStatusStopped, "stopping": InstanceStatusStopping, diff --git a/internal/app/rds/rds_test.go b/internal/app/rds/rds_test.go index e83c4bd..314748c 100644 --- a/internal/app/rds/rds_test.go +++ b/internal/app/rds/rds_test.go @@ -280,6 +280,7 @@ func TestGetDBInstanceStatusCode(t *testing.T) { {input: "creating", want: rds.InstanceStatusCreating}, {input: "deleting", want: rds.InstanceStatusDeleting}, {input: "future", want: rds.InstanceStatusUnknown}, + {input: "modifying", want: rds.InstanceStatusModifying}, {input: "stopped", want: rds.InstanceStatusStopped}, {input: "stopping", want: rds.InstanceStatusStopping}, {input: "unknown", want: rds.InstanceStatusUnknown},