Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigApplyRequest ¶
type ConfigApplyRequest struct {
Targets map[string]*types.TargetConfig `json:"targets"`
Subscriptions map[string]*types.SubscriptionConfig `json:"subscriptions"`
Outputs map[string]map[string]any `json:"outputs"`
Inputs map[string]map[string]any `json:"inputs"`
Processors map[string]map[string]any `json:"processors"`
TunnelTargetMatches map[string]*config.TunnelTargetMatch `json:"tunnel-target-matches"`
}
Apply request is a request to apply the configuration to the collector. Any object that is not provided in the request is deleted.
type ProcessorConfigRequest ¶
type ProcessorConfigResponse ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( store *collstore.Store, targetManager *targets_manager.TargetsManager, outputsManager *outputs_manager.OutputsManager, inputsManager *inputs_manager.InputsManager, clusterManager *cluster_manager.ClusterManager, reg *prometheus.Registry, ) *Server
type SubscriptionResponse ¶
type SubscriptionResponse struct {
Name string `json:"name"`
Config *types.SubscriptionConfig `json:"config"`
Targets map[string]*TargetStateInfo `json:"targets"`
}
SubscriptionResponse represents a subscription with its targets and states
type TargetResponse ¶
type TargetResponse struct {
Name string `json:"name"`
Config *types.TargetConfig `json:"config"`
State *collstore.TargetState `json:"state,omitempty"`
}
type TargetStateInfo ¶
TargetStateInfo represents target information for a subscription
Click to show internal directories.
Click to hide internal directories.