metrics

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThanosClient

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

ThanosClient is a client for working with metrics from Thanos.

func NewThanosClient

func NewThanosClient(url string) *ThanosClient

NewThanosClient returns a new Thanos client.

func (*ThanosClient) GetInstallationNewPostCount

func (tc *ThanosClient) GetInstallationNewPostCount(installationID string, days int) (float64, error)

GetInstallationNewPostCount returns the number of new posts an installation in the given number of days.

func (*ThanosClient) GetInstallationUserMetrics

func (tc *ThanosClient) GetInstallationUserMetrics() (map[string]int64, error)

GetInstallationUserMetrics returns a current snapshot of user metrics for all installations.

Jump to

Keyboard shortcuts

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