Skip to content

Commit

Permalink
feat(lb): add backendId to getLbStats request (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored May 26, 2023
1 parent de11a07 commit 588e907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/clients/src/api/lb/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,7 @@ export class API extends ParentAPI {
'region',
request.region ?? this.client.settings.defaultRegion,
)}/lbs/${validatePathParam('lbId', request.lbId)}/stats`,
urlParams: urlParams(['backend_id', request.backendId]),
},
unmarshalLbStats,
)
Expand Down Expand Up @@ -2271,6 +2272,7 @@ export class ZonedAPI extends ParentAPI {
'zone',
request.zone ?? this.client.settings.defaultZone,
)}/lbs/${validatePathParam('lbId', request.lbId)}/stats`,
urlParams: urlParams(['backend_id', request.backendId]),
},
unmarshalLbStats,
)
Expand Down
4 changes: 4 additions & 0 deletions packages/clients/src/api/lb/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,8 @@ export type GetLbStatsRequest = {
region?: Region
/** Load Balancer ID. */
lbId: string
/** ID of the backend. */
backendId?: string
}

export type ListBackendStatsRequest = {
Expand Down Expand Up @@ -2606,6 +2608,8 @@ export type ZonedApiGetLbStatsRequest = {
zone?: Zone
/** Load Balancer ID. */
lbId: string
/** ID of the backend. */
backendId?: string
}

export type ZonedApiListBackendStatsRequest = {
Expand Down

0 comments on commit 588e907

Please sign in to comment.