Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetDatapointsRequest ¶
type GetMetricsRequest ¶
type GetMetricsRequest struct {
Datapoints []collector.Datapoint `json:"datapoints"`
RelabelConfigs collector.RelabelConfigs `json:"relabel_configs"`
MetricConfig collector.MetricConfig `json:"metric_config"`
}
type HttpServer ¶
func NewHttpServer ¶
func NewHttpServer(logger log.Logger, sc *config.SafeConfig) (*HttpServer, error)
func (*HttpServer) HandleFunc ¶
func (s *HttpServer) HandleFunc(pattern string, handler http.HandlerFunc)
func (*HttpServer) ListenAndServe ¶
func (s *HttpServer) ListenAndServe(logger log.Logger) error
func (*HttpServer) ServeHTTP ¶
func (s *HttpServer) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type LoadDataRequest ¶
type LoadDataRequest struct {
DataFormat collector.DataFormat `yaml:"data_format"`
Datasource []*collector.Datasource `yaml:"datasource"`
}
Click to show internal directories.
Click to hide internal directories.