From bd1968088618fadf5ced560d6ca5b46212995ec6 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 12 Nov 2024 15:37:24 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/cockpit/v1/marshalling.gen.ts | 18 ++++++++++++------ .../clients/src/api/cockpit/v1/types.gen.ts | 16 ++++++++++------ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/packages/clients/src/api/cockpit/v1/marshalling.gen.ts b/packages/clients/src/api/cockpit/v1/marshalling.gen.ts index 9af3d901b..30b8ad846 100644 --- a/packages/clients/src/api/cockpit/v1/marshalling.gen.ts +++ b/packages/clients/src/api/cockpit/v1/marshalling.gen.ts @@ -204,14 +204,20 @@ export const unmarshalGetConfigResponse = ( } return { - logsRetention: data.logs_retention - ? unmarshalGetConfigResponseRetention(data.logs_retention) + customLogsRetention: data.custom_logs_retention + ? unmarshalGetConfigResponseRetention(data.custom_logs_retention) : undefined, - metricsRetention: data.metrics_retention - ? unmarshalGetConfigResponseRetention(data.metrics_retention) + customMetricsRetention: data.custom_metrics_retention + ? unmarshalGetConfigResponseRetention(data.custom_metrics_retention) : undefined, - tracesRetention: data.traces_retention - ? unmarshalGetConfigResponseRetention(data.traces_retention) + customTracesRetention: data.custom_traces_retention + ? unmarshalGetConfigResponseRetention(data.custom_traces_retention) + : undefined, + productLogsRetention: data.product_logs_retention + ? unmarshalGetConfigResponseRetention(data.product_logs_retention) + : undefined, + productMetricsRetention: data.product_metrics_retention + ? unmarshalGetConfigResponseRetention(data.product_metrics_retention) : undefined, } as GetConfigResponse } diff --git a/packages/clients/src/api/cockpit/v1/types.gen.ts b/packages/clients/src/api/cockpit/v1/types.gen.ts index d29fa4a82..fbb3922ea 100644 --- a/packages/clients/src/api/cockpit/v1/types.gen.ts +++ b/packages/clients/src/api/cockpit/v1/types.gen.ts @@ -209,12 +209,16 @@ export interface AlertManager { /** Cockpit configuration. */ export interface GetConfigResponse { - /** Metrics retention configuration. */ - metricsRetention?: GetConfigResponseRetention - /** Logs retention configuration. */ - logsRetention?: GetConfigResponseRetention - /** Traces retention configuration. */ - tracesRetention?: GetConfigResponseRetention + /** Custom metrics retention configuration. */ + customMetricsRetention?: GetConfigResponseRetention + /** Custom logs retention configuration. */ + customLogsRetention?: GetConfigResponseRetention + /** Custom traces retention configuration. */ + customTracesRetention?: GetConfigResponseRetention + /** Scaleway metrics retention configuration. */ + productMetricsRetention?: GetConfigResponseRetention + /** Scaleway logs retention configuration. */ + productLogsRetention?: GetConfigResponseRetention } /** Create a Grafana user. */