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
Expand Up @@ -12,7 +12,6 @@ AVAILABLE COMMANDS:
delete Delete an instance
get Get an instance
get-certificate Get the TLS certificate of an instance
get-metrics Get instance metrics
list List instances
update Update an instance
upgrade Upgrade an instance to an higher instance type
Expand Down
47 changes: 0 additions & 47 deletions internal/namespaces/rdb/v1/rdb_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func GetGeneratedCommands() *core.Commands {
rdbLogPrepare(),
rdbLogList(),
rdbLogGet(),
rdbInstanceGetMetrics(),
rdbSettingsAdd(),
rdbSettingsDelete(),
rdbACLList(),
Expand Down Expand Up @@ -940,52 +939,6 @@ func rdbLogGet() *core.Command {
}
}

func rdbInstanceGetMetrics() *core.Command {
return &core.Command{
Short: `Get instance metrics`,
Long: `Get database instance metrics.`,
Namespace: "rdb",
Resource: "instance",
Verb: "get-metrics",
ArgsType: reflect.TypeOf(rdb.GetInstanceMetricsRequest{}),
ArgSpecs: core.ArgSpecs{
{
Name: "instance-id",
Short: `UUID of the instance`,
Required: true,
Positional: true,
},
{
Name: "start-date",
Short: `Start date to gather metrics from`,
Required: false,
Positional: false,
},
{
Name: "end-date",
Short: `End date to gather metrics from`,
Required: false,
Positional: false,
},
{
Name: "metric-name",
Short: `Name of the metric to gather`,
Required: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*rdb.GetInstanceMetricsRequest)

client := core.ExtractClient(ctx)
api := rdb.NewAPI(client)
return api.GetInstanceMetrics(request)

},
}
}

func rdbSettingsAdd() *core.Command {
return &core.Command{
Short: `Add an instance setting`,
Expand Down