Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the `start_date` and `end_date`.
Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the `start_date` and `end_date`. This method is deprecated and will be removed in a future version.

USAGE:
scw rdb instance get-metrics <instance-id ...> [arg=value ...]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AVAILABLE COMMANDS:
delete Delete a Database Instance
get Get a Database Instance
get-certificate Get the TLS certificate of a Database Instance
get-metrics Get Database Instance metrics
get-metrics [deprecated] Get Database Instance metrics
list List Database Instances
renew-certificate Renew the TLS certificate of a Database Instance
restart Restart Database Instance
Expand Down
6 changes: 3 additions & 3 deletions docs/commands/rdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This API allows you to manage your Managed Databases for PostgreSQL and MySQL.
- [Delete a Database Instance](#delete-a-database-instance)
- [Get a Database Instance](#get-a-database-instance)
- [Get the TLS certificate of a Database Instance](#get-the-tls-certificate-of-a-database-instance)
- [Get Database Instance metrics](#get-database-instance-metrics)
- [[deprecated] Get Database Instance metrics](#[deprecated]-get-database-instance-metrics)
- [List Database Instances](#list-database-instances)
- [Renew the TLS certificate of a Database Instance](#renew-the-tls-certificate-of-a-database-instance)
- [Restart Database Instance](#restart-database-instance)
Expand Down Expand Up @@ -835,9 +835,9 @@ scw rdb instance get-certificate <instance-id ...> [arg=value ...]



### Get Database Instance metrics
### [deprecated] Get Database Instance metrics

Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the `start_date` and `end_date`.
Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the `start_date` and `end_date`. This method is deprecated and will be removed in a future version.

**Usage:**

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/mattn/go-isatty v0.0.20
github.com/moby/buildkit v0.25.1
github.com/opencontainers/go-digest v1.0.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251028151218-88e1f079af90
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251029154854-a599ef194f4a
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.10.1
github.com/spf13/pflag v1.0.10
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251028151218-88e1f079af90 h1:BiyhrAxCX4sUDQ0mQKs9z2Vd+rti9vekpoO9MpBNBBE=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251028151218-88e1f079af90/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251029154854-a599ef194f4a h1:hV/QEq3wgx5brT5CQQstOJ3XoT2/oBT4rSTGixl/Kig=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251029154854-a599ef194f4a/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=
Expand Down
6 changes: 3 additions & 3 deletions internal/namespaces/rdb/v1/rdb_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -1367,12 +1367,12 @@ func rdbInstanceRenewCertificate() *core.Command {

func rdbInstanceGetMetrics() *core.Command {
return &core.Command{
Short: `Get Database Instance metrics`,
Long: `Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the ` + "`" + `start_date` + "`" + ` and ` + "`" + `end_date` + "`" + `.`,
Short: `[deprecated] Get Database Instance metrics`,
Long: `Retrieve the time series metrics of a given Database Instance. You can define the period from which to retrieve metrics by specifying the ` + "`" + `start_date` + "`" + ` and ` + "`" + `end_date` + "`" + `. This method is deprecated and will be removed in a future version.`,
Namespace: "rdb",
Resource: "instance",
Verb: "get-metrics",
// Deprecated: false,
// Deprecated: true,
ArgsType: reflect.TypeOf(rdb.GetInstanceMetricsRequest{}),
ArgSpecs: core.ArgSpecs{
{
Expand Down
Loading