mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-28 01:47:20 +00:00
Adding stackdriver exporter
This commit is contained in:
+8
-7
@@ -18,6 +18,8 @@ package types
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
// The following types are used internally in problem detector. In the future this could be the
|
||||
@@ -135,15 +137,14 @@ type ProblemDaemonHandler struct {
|
||||
// ExporterType is the type of the exporter.
|
||||
type ExporterType string
|
||||
|
||||
// ExporterConfigPathMap represents configurations on all types of exporters:
|
||||
// 1) Each key represents a type of exporter.
|
||||
// 2) Each value represents the config file path for the exporter.
|
||||
type ExporterConfigPathMap map[ExporterType]*string
|
||||
|
||||
// ExporterHandler represents the initialization handler for a type of exporter.
|
||||
type ExporterHandler struct {
|
||||
// CreateExporterOrDie initializes an exporter, panic if error occurs.
|
||||
CreateExporterOrDie func(string) Exporter
|
||||
CreateExporterOrDie func(CommandLineOptions) Exporter
|
||||
// CmdOptionDescription explains how to configure the exporter from command line arguments.
|
||||
CmdOptionDescription string
|
||||
Options CommandLineOptions
|
||||
}
|
||||
|
||||
type CommandLineOptions interface {
|
||||
SetFlags(*pflag.FlagSet)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user