Documentation ¶
Overview ¶
Package tsdb implements TSDB client
Index ¶
- func Request(url string, client *http.Client) (interface{}, error)
- type Metric
- type Response
- type TSDB
- func (t *TSDB) Available() bool
- func (t *TSDB) Config() (map[interface{}]interface{}, error)
- func (t *TSDB) Delete(startTime time.Time, endTime time.Time, matchers []string) error
- func (t *TSDB) GlobalConfig() (map[interface{}]interface{}, error)
- func (t *TSDB) Intervals() map[string]time.Duration
- func (t *TSDB) Ping() error
- func (t *TSDB) Query(query string, queryTime time.Time) (Metric, error)
- func (t *TSDB) RateInterval() time.Duration
- func (t *TSDB) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct { Status string `json:"status"` Data interface{} `json:"data,omitempty"` ErrorType string `json:"errorType,omitempty"` Error string `json:"error,omitempty"` Warnings []string `json:"warnings,omitempty"` }
Response is the TSDB response model
type TSDB ¶
type TSDB struct { URL *url.URL Client *http.Client DeleteEndpoint *url.URL QueryEndpoint *url.URL QueryRangeEndpoint *url.URL ConfigEndpoint *url.URL Logger log.Logger // contains filtered or unexported fields }
TSDB struct
func (*TSDB) GlobalConfig ¶
GlobalConfig returns global config section of TSDB
func (*TSDB) RateInterval ¶
RateInterval returns rate interval of TSDB
Click to show internal directories.
Click to hide internal directories.