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.
Click to show internal directories.
Click to hide internal directories.