@@ -121,7 +121,7 @@ func Server(newAPI func(*coderd.Options) *coderd.API) *cobra.Command {
121
121
spooky bool
122
122
verbose bool
123
123
metricsCacheRefreshInterval time.Duration
124
- agentStatReportInterval time.Duration
124
+ agentStatRefreshInterval time.Duration
125
125
)
126
126
127
127
root := & cobra.Command {
@@ -363,7 +363,7 @@ func Server(newAPI func(*coderd.Options) *coderd.API) *cobra.Command {
363
363
Telemetry : telemetry .NewNoop (),
364
364
AutoImportTemplates : validatedAutoImportTemplates ,
365
365
MetricsCacheRefreshInterval : metricsCacheRefreshInterval ,
366
- AgentStatsReportInterval : agentStatReportInterval ,
366
+ AgentStatsRefreshInterval : agentStatRefreshInterval ,
367
367
}
368
368
369
369
if oauth2GithubClientSecret != "" {
@@ -843,7 +843,7 @@ func Server(newAPI func(*coderd.Options) *coderd.API) *cobra.Command {
843
843
844
844
cliflag .DurationVarP (root .Flags (), & metricsCacheRefreshInterval , "metrics-cache-refresh-interval" , "" , "CODER_METRICS_CACHE_REFRESH_INTERVAL" , time .Hour , "How frequently metrics are refreshed" )
845
845
_ = root .Flags ().MarkHidden ("metrics-cache-refresh-interval" )
846
- cliflag .DurationVarP (root .Flags (), & agentStatReportInterval , "agent-stats-report -interval" , "" , "CODER_AGENT_STATS_REPORT_INTERVAL " , time .Minute * 10 , "How frequently agent stats are recorded" )
846
+ cliflag .DurationVarP (root .Flags (), & agentStatRefreshInterval , "agent-stats-refresh -interval" , "" , "CODER_AGENT_STATS_REFRESH_INTERVAL " , time .Minute * 10 , "How frequently agent stats are recorded" )
847
847
_ = root .Flags ().MarkHidden ("agent-stats-report-interval" )
848
848
849
849
return root
0 commit comments