model

package
v0.0.0-...-f6d2f13 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AppSession

type AppSession struct {
	ID              string      `json:"id"`
	Country         string      `json:"country"`
	Region          string      `json:"region"`
	City            string      `json:"city"`
	ReferrerSource  string      `json:"referrerSource"`
	UtmCampaign     string      `json:"utmCampaign"`
	UtmContent      string      `json:"utmContent"`
	UtmMedium       string      `json:"utmMedium"`
	UtmSource       string      `json:"utmSource"`
	UtmNetwork      string      `json:"utmNetwork"`
	UtmTerm         string      `json:"utmTerm"`
	DeviceName      string      `json:"deviceName"`
	DeviceBrand     string      `json:"deviceBrand"`
	DeviceClass     string      `json:"deviceClass"`
	AgentName       string      `json:"agentName"`
	AgentVersion    string      `json:"agentVersion"`
	OperatingSystem string      `json:"operatingSystem"`
	OsVersionMajor  string      `json:"osVersionMajor"`
	OsVersionMinor  string      `json:"osVersionMinor"`
	FirstPagePath   string      `json:"firstPagePath"`
	LastPagePath    string      `json:"lastPagePath"`
	StartedAt       time.Time   `json:"startedAt"`
	EndedAt         time.Time   `json:"endedAt"`
	EngagedTime     int         `json:"engagedTime"`
	PageViews       []*PageView `json:"pageViews"`
}

type AppSessionField

type AppSessionField string
const (
	AppSessionFieldCountry         AppSessionField = "COUNTRY"
	AppSessionFieldCity            AppSessionField = "CITY"
	AppSessionFieldRegion          AppSessionField = "REGION"
	AppSessionFieldReferrerSource  AppSessionField = "REFERRER_SOURCE"
	AppSessionFieldUtmCampaign     AppSessionField = "UTM_CAMPAIGN"
	AppSessionFieldUtmContent      AppSessionField = "UTM_CONTENT"
	AppSessionFieldUtmMedium       AppSessionField = "UTM_MEDIUM"
	AppSessionFieldUtmSource       AppSessionField = "UTM_SOURCE"
	AppSessionFieldUtmNetwork      AppSessionField = "UTM_NETWORK"
	AppSessionFieldUtmTerm         AppSessionField = "UTM_TERM"
	AppSessionFieldDeviceName      AppSessionField = "DEVICE_NAME"
	AppSessionFieldDeviceBrand     AppSessionField = "DEVICE_BRAND"
	AppSessionFieldDeviceClass     AppSessionField = "DEVICE_CLASS"
	AppSessionFieldAgentName       AppSessionField = "AGENT_NAME"
	AppSessionFieldAgentVersion    AppSessionField = "AGENT_VERSION"
	AppSessionFieldOperatingSystem AppSessionField = "OPERATING_SYSTEM"
	AppSessionFieldOsVersionMajor  AppSessionField = "OS_VERSION_MAJOR"
	AppSessionFieldOsVersionMinor  AppSessionField = "OS_VERSION_MINOR"
	AppSessionFieldFirstPage       AppSessionField = "FIRST_PAGE"
	AppSessionFieldLastPage        AppSessionField = "LAST_PAGE"
)

func (*AppSessionField) GetColumnName

func (f *AppSessionField) GetColumnName() string

func (AppSessionField) IsValid

func (e AppSessionField) IsValid() bool

func (AppSessionField) MarshalGQL

func (e AppSessionField) MarshalGQL(w io.Writer)

func (AppSessionField) String

func (e AppSessionField) String() string

func (*AppSessionField) UnmarshalGQL

func (e *AppSessionField) UnmarshalGQL(v interface{}) error

type AppSessionsDataFilter

type AppSessionsDataFilter struct {
	Field  AppSessionField `json:"Field"`
	Action Operation       `json:"Action"`
	Value  string          `json:"Value"`
}

type AppSessionsPage

type AppSessionsPage struct {
	Content       []*AppSession `json:"content"`
	TotalPages    int           `json:"totalPages"`
	TotalElements int64         `json:"totalElements"`
}

func (AppSessionsPage) GetTotalElements

func (this AppSessionsPage) GetTotalElements() int64

func (AppSessionsPage) GetTotalPages

func (this AppSessionsPage) GetTotalPages() int

func (AppSessionsPage) IsPagedResult

func (AppSessionsPage) IsPagedResult()

type Application

type Application struct {
	ID          string          `json:"id"`
	Platform    string          `json:"platform"`
	Name        string          `json:"name"`
	TrackerName string          `json:"trackerName"`
	Sessions    AppSessionsPage `json:"sessions"`
	Tenant      string
}

type Operation

type Operation string
const (
	OperationEquals   Operation = "EQUALS"
	OperationContains Operation = "CONTAINS"
)

func (Operation) IsValid

func (e Operation) IsValid() bool

func (Operation) MarshalGQL

func (e Operation) MarshalGQL(w io.Writer)

func (Operation) String

func (e Operation) String() string

func (*Operation) UnmarshalGQL

func (e *Operation) UnmarshalGQL(v interface{}) error

type PageView

type PageView struct {
	ID          string `json:"id"`
	Path        string `json:"path"`
	Title       string `json:"title"`
	Order       int    `json:"order"`
	EngagedTime int    `json:"engagedTime"`
	SessionId   string
}

type PagedResult

type PagedResult interface {
	IsPagedResult()
	GetTotalPages() int
	GetTotalElements() int64
}

type Pagination

type Pagination struct {
	Page  int `json:"page"`
	Limit int `json:"limit"`
}

func (*Pagination) GetLimit

func (p *Pagination) GetLimit() int

func (*Pagination) GetPage

func (p *Pagination) GetPage() int

type TimeFilter

type TimeFilter struct {
	TimePeriod TimePeriod `json:"timePeriod"`
	From       *time.Time `json:"from,omitempty"`
	To         *time.Time `json:"to,omitempty"`
}

type TimePeriod

type TimePeriod string
const (
	TimePeriodToday       TimePeriod = "TODAY"
	TimePeriodLastHour    TimePeriod = "LAST_HOUR"
	TimePeriodLast24Hours TimePeriod = "LAST_24_HOURS"
	TimePeriodLast7Days   TimePeriod = "LAST_7_DAYS"
	TimePeriodLast30Days  TimePeriod = "LAST_30_DAYS"
	TimePeriodMonthToDate TimePeriod = "MONTH_TO_DATE"
	TimePeriodYearToDate  TimePeriod = "YEAR_TO_DATE"
	TimePeriodDaily       TimePeriod = "DAILY"
	TimePeriodMonthly     TimePeriod = "MONTHLY"
	TimePeriodAllTime     TimePeriod = "ALL_TIME"
	TimePeriodCustom      TimePeriod = "CUSTOM"
)

func (TimePeriod) IsValid

func (e TimePeriod) IsValid() bool

func (TimePeriod) MarshalGQL

func (e TimePeriod) MarshalGQL(w io.Writer)

func (TimePeriod) String

func (e TimePeriod) String() string

func (*TimePeriod) UnmarshalGQL

func (e *TimePeriod) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

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