Documentation ¶
Index ¶
- type API
- type BasicAuthSettings
- type DescsResponseItem
- type GenericErrorResponse
- type GenericSuccessResponse
- type InstancesResponseItem
- type LabelNamesResponse
- type LabelValuesResponse
- type LabelsResponseItem
- type MetricNamesResponse
- type MetricsResponseItem
- type QueryResponse
- type ValuesResponseItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Ping() (GenericSuccessResponse, error) Query(expr string) (QueryResponse, error) Metrics(series []string) ([]MetricsResponseItem, error) MetricNames(pattern string) (MetricNamesResponse, error) Descs(series []string) ([]DescsResponseItem, error) Instances(series []string) ([]InstancesResponseItem, error) Labels(series []string) ([]LabelsResponseItem, error) LabelNames(pattern string) (LabelNamesResponse, error) LabelValues(labelNames []string) (LabelValuesResponse, error) Values(series []string, start int64, finish int64, interval int64) ([]ValuesResponseItem, error) }
func NewPmseriesAPI ¶
func NewPmseriesAPI(pmproxyUrl string, basicAuth *BasicAuthSettings) (API, error)
NewPmseriesAPI constructs a new PmseriesAPI struct
type BasicAuthSettings ¶
type DescsResponseItem ¶
type GenericErrorResponse ¶
type GenericSuccessResponse ¶
type GenericSuccessResponse struct {
Success bool `json:"success"`
}
type InstancesResponseItem ¶
type LabelNamesResponse ¶
type LabelNamesResponse []string
type LabelValuesResponse ¶
type LabelValuesResponse map[string][]interface{}
type LabelsResponseItem ¶
type MetricNamesResponse ¶
type MetricNamesResponse []string
type MetricsResponseItem ¶
type QueryResponse ¶
type QueryResponse []string
Click to show internal directories.
Click to hide internal directories.