Skip to content

Commit

Permalink
chore(rds): Add metrics for modifying status
Browse files Browse the repository at this point in the history
  • Loading branch information
vmercierfr committed Oct 25, 2023
1 parent 1ca8d41 commit ec070fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/rds/rds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -86,6 +87,7 @@ var instanceStatuses = map[string]int{
"backing-up": InstanceStatusBackingUp,
"creating": InstanceStatusCreating,
"deleting": InstanceStatusDeleting,
"modifying": InstanceStatusModifying,
"starting": InstanceStatusStarting,
"stopped": InstanceStatusStopped,
"stopping": InstanceStatusStopping,
Expand Down
1 change: 1 addition & 0 deletions internal/app/rds/rds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit ec070fa

Please sign in to comment.