Documentation
¶
Index ¶
- type Aggregate
- type Client
- func (c *Client) GetAggregate(dateRange any) (Aggregate, error)
- func (c *Client) GetRealtimeVisitors() (int, error)
- func (c *Client) GetTimeSeries(dateRange any, timeDimension string) ([]TimeSeriesPoint, error)
- func (c *Client) GetTopPages(dateRange any, limit int) ([]PageStats, error)
- func (c *Client) GetTopSources(dateRange any, limit int) ([]SourceStats, error)
- type PageStats
- type Paginate
- type Query
- type QueryResponse
- type ResultRow
- type SourceStats
- type TimeSeriesPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetRealtimeVisitors ¶
func (*Client) GetTimeSeries ¶
func (c *Client) GetTimeSeries(dateRange any, timeDimension string) ([]TimeSeriesPoint, error)
func (*Client) GetTopPages ¶
func (*Client) GetTopSources ¶
func (c *Client) GetTopSources(dateRange any, limit int) ([]SourceStats, error)
type Query ¶
type Query struct {
SiteID string `json:"site_id"`
Metrics []string `json:"metrics"`
DateRange any `json:"date_range"`
Dimensions []string `json:"dimensions,omitempty"`
Filters []any `json:"filters,omitempty"`
OrderBy [][]any `json:"order_by,omitempty"`
Pagination *Paginate `json:"pagination,omitempty"`
}
type QueryResponse ¶
type QueryResponse struct {
Results []ResultRow `json:"results"`
}
type SourceStats ¶
type TimeSeriesPoint ¶
Click to show internal directories.
Click to hide internal directories.