Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions packages/clients/src/api/cockpit/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
16 changes: 10 additions & 6 deletions packages/clients/src/api/cockpit/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
Loading