prome2e

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package prome2e provides scripts for E2E testing Prometheus API implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchSet

type BatchSet struct {
	Batches []pmetric.Metrics
	Labels  map[string]map[string]struct{}
	Series  []map[string]string

	Start pcommon.Timestamp
	End   pcommon.Timestamp
}

BatchSet is a set of batches.

func ParseBatchSet

func ParseBatchSet(r io.Reader) (s BatchSet, _ error)

ParseBatchSet parses JSON batches from given reader.

func (*BatchSet) MatchingSeries added in v0.13.0

func (s *BatchSet) MatchingSeries(match []string) (r []map[string]string, _ error)

MatchingSeries returns series that match given label matchers.

Jump to

Keyboard shortcuts

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