File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1237,11 +1237,16 @@ func convertStandardConditionsV1alpha1ToLogsThresholdRuleV1beta1(conditions Stan
12371237 threshold = * resource .NewQuantity (int64 (* conditions .Threshold ), resource .DecimalSI )
12381238 }
12391239
1240+ var timeWindow v1beta1.LogsTimeWindow
1241+ if conditions .TimeWindow != nil {
1242+ timeWindow = v1beta1.LogsTimeWindow {
1243+ SpecificValue : logsTimeWindowV1alpha1ToV1beta1 [* conditions .TimeWindow ],
1244+ }
1245+ }
1246+
12401247 return v1beta1.LogsThresholdRule {
12411248 Condition : v1beta1.LogsThresholdRuleCondition {
1242- TimeWindow : v1beta1.LogsTimeWindow {
1243- SpecificValue : logsTimeWindowV1alpha1ToV1beta1 [* conditions .TimeWindow ],
1244- },
1249+ TimeWindow : timeWindow ,
12451250 Threshold : threshold ,
12461251 LogsThresholdConditionType : logsConditionTypeV1alpha1ToV1beta1 [conditions .AlertWhen ],
12471252 },
You can’t perform that action at this time.
0 commit comments