master
go 18 lines 658 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 package metricsaudit
4
5 import "github.com/netdata/netdata/go/plugins/plugin/framework/collectorapi"
6
7 // Analyzer captures metrics-audit hooks used by job manager and runtime jobs.
8 type Analyzer interface {
9 RegisterJob(jobName, moduleName, dir string)
10 RecordJobStructure(jobName, moduleName string, charts *collectorapi.Charts)
11 UpdateJobStructure(jobName, moduleName string, charts *collectorapi.Charts)
12 RecordCollection(jobName, moduleName string, mx map[string]int64)
13 }
14
15 // Capturable marks collectors that can emit additional capture artifacts.
16 type Capturable interface {
17 EnableCaptureArtifacts(string)
18 }