Skip to content
Open
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
7 changes: 5 additions & 2 deletions rpadmin/api_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,17 @@ func WithMetricsSamples(v int32) DebugBundleOption {
}}
}

// WithLogsSince sets the logs-since parameter.
// WithLogsSince sets the logs-since parameter. Accepts an ISO8601 formatted datetime string.
// For example, "2023-10-20T15:04:05"
func WithLogsSince(v string) DebugBundleOption {
return debugBundleOpt{func(param *debugBundleStartConfigParameters) {
param.LogsSince = v
}}
}

// WithLogsUntil sets the logs-until parameter.
// WithLogsUntil sets the logs-until parameter. This will not be used when generating debug bundles on kuberneetes.
// Accepts an ISO8601 formatted datetime string.
// For example, "2023-10-20T15:04:05"
func WithLogsUntil(v string) DebugBundleOption {
return debugBundleOpt{func(param *debugBundleStartConfigParameters) {
param.LogsUntil = v
Expand Down
Loading