Skip to content

Commit

Permalink
chore(cockpit): add product datasource retention (scaleway#2306)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Nov 13, 2024
1 parent 89ba931 commit c47c15a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions api/cockpit/v1/cockpit_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,14 +727,20 @@ type AlertManager struct {

// GetConfigResponse: Cockpit configuration.
type GetConfigResponse struct {
// MetricsRetention: metrics retention configuration.
MetricsRetention *GetConfigResponseRetention `json:"metrics_retention"`
// CustomMetricsRetention: custom metrics retention configuration.
CustomMetricsRetention *GetConfigResponseRetention `json:"custom_metrics_retention"`

// LogsRetention: logs retention configuration.
LogsRetention *GetConfigResponseRetention `json:"logs_retention"`
// CustomLogsRetention: custom logs retention configuration.
CustomLogsRetention *GetConfigResponseRetention `json:"custom_logs_retention"`

// TracesRetention: traces retention configuration.
TracesRetention *GetConfigResponseRetention `json:"traces_retention"`
// CustomTracesRetention: custom traces retention configuration.
CustomTracesRetention *GetConfigResponseRetention `json:"custom_traces_retention"`

// ProductMetricsRetention: scaleway metrics retention configuration.
ProductMetricsRetention *GetConfigResponseRetention `json:"product_metrics_retention"`

// ProductLogsRetention: scaleway logs retention configuration.
ProductLogsRetention *GetConfigResponseRetention `json:"product_logs_retention"`
}

// GlobalAPICreateGrafanaUserRequest: Create a Grafana user.
Expand Down

0 comments on commit c47c15a

Please sign in to comment.