insights

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package insights builds deterministic comparisons from official Google Play report exports. It performs no network or credential access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DailyReport

type DailyReport struct {
	Package      string   `json:"package"`
	Source       string   `json:"source"`
	Date         string   `json:"date"`
	PreviousDate string   `json:"previous_date"`
	Sources      []Source `json:"sources"`
	Metrics      []Metric `json:"metrics"`
}

func Daily

func Daily(request DailyRequest) (DailyReport, error)

Daily compares one selected UTC report date with the preceding date.

type DailyRequest

type DailyRequest struct {
	Package              string
	Date                 string
	InstallsFile         string
	CrashesFile          string
	StorePerformanceFile string
}

type Metric

type Metric struct {
	Name         string   `json:"name"`
	Unit         string   `json:"unit"`
	Current      *float64 `json:"current,omitempty"`
	Previous     *float64 `json:"previous,omitempty"`
	Delta        *float64 `json:"delta,omitempty"`
	DeltaPercent *float64 `json:"delta_percent,omitempty"`
	Status       string   `json:"status"`
	Reason       string   `json:"reason,omitempty"`
}

type Range

type Range struct {
	Start string `json:"start"`
	End   string `json:"end"`
}

type Report

type Report struct {
	Package      string   `json:"package"`
	Source       string   `json:"source"`
	Week         Range    `json:"week"`
	PreviousWeek Range    `json:"previous_week"`
	Sources      []Source `json:"sources"`
	Metrics      []Metric `json:"metrics"`
}

func Weekly

func Weekly(request WeeklyRequest) (Report, error)

Weekly compares the selected week with the immediately preceding week.

type Source

type Source struct {
	Type         string `json:"type"`
	Path         string `json:"path,omitempty"`
	CurrentRows  int    `json:"current_rows"`
	PreviousRows int    `json:"previous_rows"`
	Status       string `json:"status"`
	Reason       string `json:"reason,omitempty"`
}

type WeeklyRequest

type WeeklyRequest struct {
	Package              string
	Week                 string
	InstallsFile         string
	CrashesFile          string
	StorePerformanceFile string
}

WeeklyRequest selects one Monday-to-Sunday window and optional official report exports. Each file should contain one breakdown/dimension.

Jump to

Keyboard shortcuts

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