client

package
v0.0.0-...-e5bd767 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package client contains the client for Prometheus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardinalValue

type CardinalValue struct {
	Metric string
	Value  uint
}

type Client

type Client struct {
	v1.API
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, address, bearerToken string) *Client

func (*Client) EvaluateCardinalities

func (c *Client) EvaluateCardinalities(ctx context.Context, metricSet *sets.Set[string]) []CardinalValue

func (*Client) Init

func (c *Client) Init() error

func (*Client) Query

func (c *Client) Query(query string) (model.Value, v1.Warnings, error)

Jump to

Keyboard shortcuts

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