Documentation ¶
Index ¶
- type PromethsInstance
- func (m *PromethsInstance) Query(ctx context.Context, query string, time time.Time) (model.Value, error)
- func (m *PromethsInstance) QueryMatrix(ctx context.Context, query string, time time.Time) (model.Matrix, error)
- func (m *PromethsInstance) QueryRange(ctx context.Context, query string, r v1.Range) (model.Value, error)
- func (m *PromethsInstance) QueryRangeMatrix(ctx context.Context, query string, r v1.Range) (model.Matrix, error)
- func (m *PromethsInstance) QueryRangeScalar(ctx context.Context, query string, r v1.Range) (*model.Scalar, error)
- func (m *PromethsInstance) QueryRangeString(ctx context.Context, query string, r v1.Range) (*model.String, error)
- func (m *PromethsInstance) QueryRangeVector(ctx context.Context, query string, r v1.Range) (model.Vector, error)
- func (m *PromethsInstance) QueryScalar(ctx context.Context, query string, time time.Time) (*model.Scalar, error)
- func (m *PromethsInstance) QueryString(ctx context.Context, query string, time time.Time) (*model.String, error)
- func (m *PromethsInstance) QueryVector(ctx context.Context, query string, time time.Time) (model.Vector, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromethsInstance ¶
func NewPromethsInstance ¶
func NewPromethsInstance(addr string) (*PromethsInstance, error)
func NewPromethsInstanceWichApi ¶
func NewPromethsInstanceWichApi(api v1.API) *PromethsInstance
func (*PromethsInstance) QueryMatrix ¶
func (*PromethsInstance) QueryRange ¶
func (*PromethsInstance) QueryRangeMatrix ¶
func (*PromethsInstance) QueryRangeScalar ¶
func (*PromethsInstance) QueryRangeString ¶
func (*PromethsInstance) QueryRangeVector ¶
func (*PromethsInstance) QueryScalar ¶
func (*PromethsInstance) QueryString ¶
Click to show internal directories.
Click to hide internal directories.