test

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePromReadRequest

func GeneratePromReadRequest() *prompb.ReadRequest

GeneratePromReadRequest generates a Prometheus remote read request.

func GeneratePromReadRequestBody

func GeneratePromReadRequestBody(
	t *testing.T,
	req *prompb.ReadRequest,
) io.Reader

GeneratePromReadRequestBody generates a Prometheus remote read request body.

func GeneratePromWriteRequest

func GeneratePromWriteRequest() *prompb.WriteRequest

GeneratePromWriteRequest generates a Prometheus remote write request.

func GeneratePromWriteRequestBody

func GeneratePromWriteRequestBody(
	t require.TestingT,
	req *prompb.WriteRequest,
) io.Reader

GeneratePromWriteRequestBody generates a Prometheus remote write request body.

func GeneratePromWriteRequestBodyBytes added in v0.15.0

func GeneratePromWriteRequestBodyBytes(
	t require.TestingT,
	req *prompb.WriteRequest,
) []byte

GeneratePromWriteRequestBodyBytes generates a Prometheus remote write request body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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