Skip to content

Commit

Permalink
feat(serverless): add timestamps to container resources (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Oct 28, 2024
1 parent 88a43d8 commit 1a96ea5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/clients/src/api/container/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const unmarshalContainer = (data: unknown): Container => {

return {
cpuLimit: data.cpu_limit,
createdAt: unmarshalDate(data.created_at),
description: data.description,
domainName: data.domain_name,
environmentVariables: data.environment_variables,
Expand All @@ -95,6 +96,7 @@ export const unmarshalContainer = (data: unknown): Container => {
port: data.port,
privacy: data.privacy,
protocol: data.protocol,
readyAt: unmarshalDate(data.ready_at),
region: data.region,
registryImage: data.registry_image,
sandbox: data.sandbox,
Expand All @@ -107,6 +109,7 @@ export const unmarshalContainer = (data: unknown): Container => {
),
status: data.status,
timeout: data.timeout,
updatedAt: unmarshalDate(data.updated_at),
} as Container
}

Expand Down
6 changes: 6 additions & 0 deletions packages/clients/src/api/container/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ export interface Container {
* requests being processed per container instance.
*/
scalingOption?: ContainerScalingOption
/** Creation date of the container. */
createdAt?: Date
/** Last update date of the container. */
updatedAt?: Date
/** Last date when the container was successfully deployed and set to ready. */
readyAt?: Date
/** Region in which the container will be deployed. */
region: Region
}
Expand Down

0 comments on commit 1a96ea5

Please sign in to comment.