Skip to content

Commit 256e733

Browse files
func: add default historiacal apm getter to avoid panics
1 parent 8765b8f commit 256e733

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

policy/handler_oss.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414

1515
type HistoricalAPMGetter interface{}
1616

17+
type noopHistoricalAPMGetter struct{}
18+
1719
type noopVerticalCheckRunner struct {
1820
policy *sdk.ScalingPolicy
1921
}

0 commit comments

Comments
 (0)