gav3

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: 20 Imported by: 0

Documentation

Index

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 (*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) 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)

Jump to

Keyboard shortcuts

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