Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultRetryInterval = 100 * time.Millisecond
View Source
const DefaultTimeout = time.Minute
Variables ¶
This section is empty.
Functions ¶
func FetchDataFromURL ¶
func FetchDataFromURL(url string, target Unmarshaler) error
Types ¶
type Bucket ¶
type Bucket struct { BoundaryRule float64 LeftBoundary string RightBoundary string CountInBucket string }
func (*Bucket) UnmarshalJSON ¶
type HistogramData ¶
type HistogramRawData ¶
type HistogramRawData struct { Timestamp int64 Data HistogramData }
func (*HistogramRawData) UnmarshalJSON ¶
func (h *HistogramRawData) UnmarshalJSON(b []byte) error
type LogResponse ¶
type LogResponse struct { Status string `json:"status"` Data struct { ResultType string `json:"resultType"` Result []LogData `json:"result"` } `json:"data"` }
func (*LogResponse) Unmarshal ¶
func (m *LogResponse) Unmarshal(data []byte) error
type MetricData ¶
type MetricData struct { ResultType string `json:"resultType"` Result []MetricResult `json:"result"` }
type MetricResponse ¶
type MetricResponse struct { Status string `json:"status"` Data MetricData `json:"data"` }
func (*MetricResponse) Unmarshal ¶
func (m *MetricResponse) Unmarshal(data []byte) error
type MetricResult ¶
type MetricResult struct { Metric Metric `json:"metric"` Value *Value `json:"value,omitempty"` Histogram *HistogramRawData `json:"histogram,omitempty"` }
type Unmarshaler ¶
Click to show internal directories.
Click to hide internal directories.