Documentation
¶
Index ¶
- Constants
- func GetQueryModel(query backend.DataQuery) (*model.QueryModel, error)
- type GoogleAnalytics
- func (ga *GoogleAnalytics) CheckHealth(ctx context.Context, config *setting.DatasourceSecretSettings) (*backend.CheckHealthResult, error)
- func (ga *GoogleAnalytics) GetAccountSummaries(ctx context.Context, config *setting.DatasourceSecretSettings) ([]*model.AccountSummary, error)
- func (ga *GoogleAnalytics) GetDimensions(ctx context.Context, config *setting.DatasourceSecretSettings, ...) ([]model.MetadataItem, error)
- func (ga *GoogleAnalytics) GetMetrics(ctx context.Context, config *setting.DatasourceSecretSettings, ...) ([]model.MetadataItem, error)
- func (ga *GoogleAnalytics) GetRealTimeMetrics(ctx context.Context, config *setting.DatasourceSecretSettings, ...) ([]model.MetadataItem, error)
- func (ga *GoogleAnalytics) GetRealtimeDimensions(ctx context.Context, config *setting.DatasourceSecretSettings, ...) ([]model.MetadataItem, error)
- func (ga *GoogleAnalytics) GetServiceLevel(ctx context.Context, config *setting.DatasourceSecretSettings, ...) (string, error)
- func (ga *GoogleAnalytics) GetTimezone(ctx context.Context, config *setting.DatasourceSecretSettings, ...) (string, error)
- func (ga *GoogleAnalytics) Query(ctx context.Context, config *setting.DatasourceSecretSettings, ...) (*data.Frames, error)
- type GoogleClient
Constants ¶
View Source
const ( GaDefaultIdx = 1 GaManageMaxResult = 1000 GaReportMaxResult = 100000 GaMetadataURL = "https://www.googleapis.com/analytics/v3/metadata/ga/columns?pp=1" )
Variables ¶
This section is empty.
Functions ¶
func GetQueryModel ¶
func GetQueryModel(query backend.DataQuery) (*model.QueryModel, error)
GetQueryModel returns the well typed query model
Types ¶
type GoogleAnalytics ¶
type GoogleAnalytics struct {
Cache *cache.Cache
}
GoogleAnalyticsv3DataSource handler for google sheets
func (*GoogleAnalytics) CheckHealth ¶
func (ga *GoogleAnalytics) CheckHealth(ctx context.Context, config *setting.DatasourceSecretSettings) (*backend.CheckHealthResult, error)
func (*GoogleAnalytics) GetAccountSummaries ¶
func (ga *GoogleAnalytics) GetAccountSummaries(ctx context.Context, config *setting.DatasourceSecretSettings) ([]*model.AccountSummary, error)
remove no profile account
func (*GoogleAnalytics) GetDimensions ¶
func (ga *GoogleAnalytics) GetDimensions(ctx context.Context, config *setting.DatasourceSecretSettings, propertyId string) ([]model.MetadataItem, error)
func (*GoogleAnalytics) GetMetrics ¶
func (ga *GoogleAnalytics) GetMetrics(ctx context.Context, config *setting.DatasourceSecretSettings, propertyId string) ([]model.MetadataItem, error)
func (*GoogleAnalytics) GetRealTimeMetrics ¶ added in v0.3.0
func (ga *GoogleAnalytics) GetRealTimeMetrics(ctx context.Context, config *setting.DatasourceSecretSettings, propertyId string) ([]model.MetadataItem, error)
func (*GoogleAnalytics) GetRealtimeDimensions ¶ added in v0.3.0
func (ga *GoogleAnalytics) GetRealtimeDimensions(ctx context.Context, config *setting.DatasourceSecretSettings, propertyId string) ([]model.MetadataItem, error)
func (*GoogleAnalytics) GetServiceLevel ¶ added in v0.3.0
func (ga *GoogleAnalytics) GetServiceLevel(ctx context.Context, config *setting.DatasourceSecretSettings, accountId string, webPropertyId string) (string, error)
func (*GoogleAnalytics) GetTimezone ¶
func (ga *GoogleAnalytics) GetTimezone(ctx context.Context, config *setting.DatasourceSecretSettings, accountId string, webPropertyId string, profileId string) (string, error)
type GoogleClient ¶
type GoogleClient struct {
// contains filtered or unexported fields
}
func NewGoogleClient ¶
func NewGoogleClient(ctx context.Context, jwt string) (*GoogleClient, error)
Click to show internal directories.
Click to hide internal directories.