analytics

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomTime added in v1.10.5

type CustomTime struct {
	time.Time
}

CustomTime is a wrapper around time.Time that formats to ISO-8601 with milliseconds

func (CustomTime) MarshalJSON added in v1.10.5

func (ct CustomTime) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface

func (*CustomTime) UnmarshalJSON added in v1.10.5

func (ct *CustomTime) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaler interface

type Filter

type Filter struct {
	ProjectID string     `json:"projectID"`
	StartTime CustomTime `json:"startTime,omitempty"`
	EndTime   CustomTime `json:"endTime,omitempty"`
	Limit     int        `json:"limit,omitempty"`
}

Filter represents the filter criteria for the query

type Query

type Query struct {
	Query []QueryItem `json:"query"`
}

Query represents the root structure of the JSON

type QueryItem

type QueryItem struct {
	Name   string `json:"name"`
	Filter Filter `json:"filter"`
}

QueryItem represents an individual query with a name and a filter

Jump to

Keyboard shortcuts

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