testutil

package
v0.0.0-...-d287805 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDataSamples

func GenerateDataSamples(numSamples int, seed int64, timeStep time.Duration) model.Samples

FIXME: Test distribution of randomness FIXME: Test for uniqueness of time-series generated FIXME: Support characters other than lowercase letters

func GenerateRemoteRequest

func GenerateRemoteRequest(samples model.Samples) *prompb.WriteRequest

func PostWriteRequest

func PostWriteRequest(baseURL string, req *prompb.WriteRequest, internal bool) (*http.Response, error)

func QueryAPI

func QueryAPI(baseURL, query string, ts time.Time) (model.Value, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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