Documentation ¶
Index ¶
- Constants
- type Aggregator
- type Client
- func (c *Client) GeneratePresignedUrl(query Queries, expireSeconds int, endpoint ...string) (string, error)
- func (c *Client) ListDatapointByQuery(query Queries, disablePresampling ...bool) ([]QueryResult, error)
- func (c *Client) ListFieldByMetric(metric string) (map[string]Field, error)
- func (c *Client) ListMetric() ([]string, error)
- func (c *Client) ListRowBySql(statement string) (*RowResult, error)
- func (c *Client) ListTagByMetric(metric string) (map[string]TagValues, error)
- func (c *Client) WriteDatapoint(data []Datapoint) error
- type Column
- type Datapoint
- type Field
- type FieldFilter
- type Fill
- type Filter
- type Group
- type GroupBy
- type GroupInfo
- type ListDatapointArgs
- type ListDatapointResult
- type ListFieldResult
- type ListMetricsResult
- type ListTagsResult
- type Queries
- type Query
- type QueryResult
- type Raw
- type RowResult
- type TagFilter
- type TagValues
- type Tags
- type Value
- type ValueType
- type WriteDataPointArgs
Constants ¶
View Source
const ( URI_DATAPOINT = "/v1/datapoint" URI_TAG = "/v1/metric/%s/tag" URI_FIELD = "/v1/metric/%s/field" URI_METRIC = "/v1/metric" )
View Source
const ( Long ValueType = "Long" Double = "Double" String = "String" Bytes = "Bytes" Number = "Number" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Client ¶
func (*Client) GeneratePresignedUrl ¶
func (*Client) ListDatapointByQuery ¶
func (c *Client) ListDatapointByQuery(query Queries, disablePresampling ...bool) ([]QueryResult, error)
func (*Client) ListFieldByMetric ¶
func (*Client) ListMetric ¶
func (*Client) ListTagByMetric ¶
func (*Client) WriteDatapoint ¶
type FieldFilter ¶
type Filter ¶
type Filter struct { Start interface{} `json:"start"` End interface{} `json:"end,omitempty"` Tags map[string]TagValues `json:"tags,omitempty"` Value string `json:"value,omitempty"` Fields []FieldFilter `json:"fields,omitempty"` Or []Filter `json:"or,omitempty"` }
type ListDatapointArgs ¶
type ListDatapointResult ¶
type ListDatapointResult struct {
Results []QueryResult `json:"results"`
}
type ListFieldResult ¶
type ListMetricsResult ¶
type ListMetricsResult struct {
Metrics []string `json:"metrics"`
}
type ListTagsResult ¶
type Query ¶
type Query struct { Metric string `json:"metric"` Field string `json:"field,omitempty"` Fields []string `json:"fields,omitempty"` Tags []string `json:"tags,omitempty"` Filters Filter `json:"filters"` GroupBy []GroupBy `json:"groupBy,omitempty"` Limit int `json:"limit,omitempty"` Aggregators []Aggregator `json:"aggregators,omitempty"` Order string `json:"order,omitempty"` Fill *Fill `json:"fill,omitempty"` Fills []Fill `json:"fills,omitempty"` Marker string `json:"marker,omitempty"` }
type QueryResult ¶
type QueryResult struct { Metric string `json:"metric"` Field string `json:"field"` Fields []string `json:"fields"` Tags []string `json:"tags"` RawCount int `json:"rawCount"` Groups []Group `json:"groups"` Truncated bool `json:"truncated"` NextMarker string `json:"nextMarker"` PresamplingRuleId string `json:"presamplingRuleId"` }
type WriteDataPointArgs ¶
type WriteDataPointArgs struct {
DataPoints []Datapoint `json:"datapoints"`
}
Click to show internal directories.
Click to hide internal directories.