Skip to content

Commit 59cdc64

Browse files
feat(lb): add backend_id to ListBackendStats (#3175)
Co-authored-by: Rémy Léone <[email protected]>
1 parent b9ba229 commit 59cdc64

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-lb-backend-list-statistics-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ USAGE:
77

88
ARGS:
99
lb-id Load Balancer ID
10+
[backend-id] ID of the backend
1011
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2 | all)
1112

1213
FLAGS:

docs/commands/lb.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ scw lb backend list-statistics <lb-id ...> [arg=value ...]
402402
| Name | | Description |
403403
|------|---|-------------|
404404
| lb-id | Required | Load Balancer ID |
405+
| backend-id | | ID of the backend |
405406
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `pl-waw-1`, `pl-waw-2`, `all` | Zone to target. If none is passed will use default zone from the config |
406407

407408

internal/namespaces/lb/v1/lb_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,6 +2077,13 @@ func lbBackendListStatistics() *core.Command {
20772077
Deprecated: false,
20782078
Positional: true,
20792079
},
2080+
{
2081+
Name: "backend-id",
2082+
Short: `ID of the backend`,
2083+
Required: false,
2084+
Deprecated: false,
2085+
Positional: false,
2086+
},
20802087
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZonePlWaw1, scw.ZonePlWaw2, scw.Zone(core.AllLocalities)),
20812088
},
20822089
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)