Skip to content

Commit 1966eef

Browse files
authored
chore(cockpit): add product datasource retention (#1570)
1 parent be1f311 commit 1966eef

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

packages/clients/src/api/cockpit/v1/marshalling.gen.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,20 @@ export const unmarshalGetConfigResponse = (
204204
}
205205

206206
return {
207-
logsRetention: data.logs_retention
208-
? unmarshalGetConfigResponseRetention(data.logs_retention)
207+
customLogsRetention: data.custom_logs_retention
208+
? unmarshalGetConfigResponseRetention(data.custom_logs_retention)
209209
: undefined,
210-
metricsRetention: data.metrics_retention
211-
? unmarshalGetConfigResponseRetention(data.metrics_retention)
210+
customMetricsRetention: data.custom_metrics_retention
211+
? unmarshalGetConfigResponseRetention(data.custom_metrics_retention)
212212
: undefined,
213-
tracesRetention: data.traces_retention
214-
? unmarshalGetConfigResponseRetention(data.traces_retention)
213+
customTracesRetention: data.custom_traces_retention
214+
? unmarshalGetConfigResponseRetention(data.custom_traces_retention)
215+
: undefined,
216+
productLogsRetention: data.product_logs_retention
217+
? unmarshalGetConfigResponseRetention(data.product_logs_retention)
218+
: undefined,
219+
productMetricsRetention: data.product_metrics_retention
220+
? unmarshalGetConfigResponseRetention(data.product_metrics_retention)
215221
: undefined,
216222
} as GetConfigResponse
217223
}

packages/clients/src/api/cockpit/v1/types.gen.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,16 @@ export interface AlertManager {
209209

210210
/** Cockpit configuration. */
211211
export interface GetConfigResponse {
212-
/** Metrics retention configuration. */
213-
metricsRetention?: GetConfigResponseRetention
214-
/** Logs retention configuration. */
215-
logsRetention?: GetConfigResponseRetention
216-
/** Traces retention configuration. */
217-
tracesRetention?: GetConfigResponseRetention
212+
/** Custom metrics retention configuration. */
213+
customMetricsRetention?: GetConfigResponseRetention
214+
/** Custom logs retention configuration. */
215+
customLogsRetention?: GetConfigResponseRetention
216+
/** Custom traces retention configuration. */
217+
customTracesRetention?: GetConfigResponseRetention
218+
/** Scaleway metrics retention configuration. */
219+
productMetricsRetention?: GetConfigResponseRetention
220+
/** Scaleway logs retention configuration. */
221+
productLogsRetention?: GetConfigResponseRetention
218222
}
219223

220224
/** Create a Grafana user. */

0 commit comments

Comments
 (0)