adds identifier

This commit is contained in:
Jake Keeys
2020-01-26 13:23:26 +00:00
parent f5de88e5bb
commit 542060a14b
3 changed files with 61 additions and 54 deletions

View File

@@ -20,11 +20,11 @@ type MetricsCollector struct {
dslMetricsCollector dslMetricsCollector
}
func New(client hg612.Client, host string, collectIntervalSeconds int) Collector {
func New(client hg612.Client, host string, identifier string, collectIntervalSeconds int) Collector {
return MetricsCollector{
collectIntervalSeconds: collectIntervalSeconds,
ctx: context.Background(),
dslMetricsCollector: newDSLMetricsCollector(client, host),
dslMetricsCollector: newDSLMetricsCollector(client, host, identifier),
}
}