@@ -27,7 +27,7 @@ func PingCheck(engineName, category string, pingImmediately bool) {
2727
2828// PingCheckCtx sends ping events to Google Analytics on a fixed cadence,
2929// returning when ctx is cancelled. If pingImmediately is true, one event is
30- // sent before the ticker starts; subsequent events fire every getPingPeriod ().
30+ // sent before the ticker starts; subsequent events fire every GetPingPeriod ().
3131func PingCheckCtx (ctx context.Context , engineName , category string , pingImmediately bool ) {
3232 // Create a new usage field
3333 u := New ()
@@ -40,7 +40,7 @@ func PingCheckCtx(ctx context.Context, engineName, category string, pingImmediat
4040 Send ()
4141 }
4242
43- ticker := time .NewTicker (getPingPeriod ())
43+ ticker := time .NewTicker (GetPingPeriod ())
4444 defer ticker .Stop ()
4545
4646 for {
@@ -57,8 +57,8 @@ func PingCheckCtx(ctx context.Context, engineName, category string, pingImmediat
5757 }
5858}
5959
60- // getPingPeriod sets the duration of health events, defaults to 24
61- func getPingPeriod () time.Duration {
60+ // GetPingPeriod sets the duration of health events, defaults to 24
61+ func GetPingPeriod () time.Duration {
6262 value := env .GetOrDefault (OpenEBSPingPeriod , fmt .Sprint (defaultPingPeriod ))
6363 duration , _ := time .ParseDuration (value )
6464 // Sanity checks for setting time duration of health events
0 commit comments