gav4

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GaDefaultIdx      = 1
	GaAdminMaxResult  = 200
	GaReportMaxResult = 100000
)

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
}

GoogleAnalyticsv4DataSource handler

func (*GoogleAnalytics) CheckHealth

func (*GoogleAnalytics) GetAccountSummaries

func (ga *GoogleAnalytics) GetAccountSummaries(ctx context.Context, config *setting.DatasourceSecretSettings) ([]*model.AccountSummary, error)

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) GetTimezone

func (ga *GoogleAnalytics) GetTimezone(ctx context.Context, config *setting.DatasourceSecretSettings, accountId string, webPropertyId string, profileId string) (string, error)

func (*GoogleAnalytics) Query

type GoogleClient

type GoogleClient struct {
	// contains filtered or unexported fields
}

func NewGoogleClient

func NewGoogleClient(ctx context.Context, jwt string) (*GoogleClient, error)

func (*GoogleClient) GetWebProperty

func (client *GoogleClient) GetWebProperty(webpropertyID string) (*analyticsadmin.GoogleAnalyticsAdminV1betaProperty, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL