Skip to content

Commit b87d8b2

Browse files
feat(lb): add backend_id to GetLbStats (#3149)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent be4dd67 commit b87d8b2

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-lblb-get-stats-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)
1112

1213
FLAGS:

docs/commands/lb.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,7 @@ scw lb lb get-stats <lb-id ...> [arg=value ...]
965965
| Name | | Description |
966966
|------|---|-------------|
967967
| lb-id | Required | Load Balancer ID |
968+
| backend-id | | ID of the backend |
968969
| 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` | Zone to target. If none is passed will use default zone from the config |
969970

970971

internal/namespaces/lb/v1/lb_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,13 @@ func lbLBGetStats() *core.Command {
20192019
Deprecated: false,
20202020
Positional: true,
20212021
},
2022+
{
2023+
Name: "backend-id",
2024+
Short: `ID of the backend`,
2025+
Required: false,
2026+
Deprecated: false,
2027+
Positional: false,
2028+
},
20222029
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZonePlWaw1, scw.ZonePlWaw2),
20232030
},
20242031
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)