Documentation ¶
Index ¶
- type PyroscopeTest
- func (p *PyroscopeTest) Ingest(t *testing.T, req *http.Request, expectStatus int)
- func (p *PyroscopeTest) NewRequestBuilder(t *testing.T) *RequestBuilder
- func (p *PyroscopeTest) Start(t *testing.T)
- func (p *PyroscopeTest) Stop(t *testing.T)
- func (p *PyroscopeTest) TempAppName() string
- func (p *PyroscopeTest) URL() string
- type RequestBuilder
- func (b *RequestBuilder) IngestJFRRequestBody(jfr []byte, labels []byte) *http.Request
- func (b *RequestBuilder) IngestJFRRequestFiles(jfrPath, labelsPath string) *http.Request
- func (b *RequestBuilder) IngestPPROFRequest(profilePath, prevProfilePath, sampleTypeConfigPath string) *http.Request
- func (b *RequestBuilder) Push(request *connect.Request[pushv1.PushRequest], expectStatus int, ...)
- func (b *RequestBuilder) PushClient() pushv1connect.PusherServiceClient
- func (b *RequestBuilder) PushPPROFRequestFromBytes(rawProfile []byte, name string) *connect.Request[pushv1.PushRequest]
- func (b *RequestBuilder) PushPPROFRequestFromFile(file string, metric string) *connect.Request[pushv1.PushRequest]
- func (b *RequestBuilder) QueryClient() querierv1connect.QuerierServiceClient
- func (b *RequestBuilder) Render(metric string) *flamebearer.FlamebearerProfile
- func (b *RequestBuilder) SelectMergeProfile(metric string, query map[string]string) *connect.Response[profilev1.Profile]
- func (b *RequestBuilder) Spy(spy string) *RequestBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PyroscopeTest ¶
type PyroscopeTest struct {
// contains filtered or unexported fields
}
func (*PyroscopeTest) NewRequestBuilder ¶ added in v1.6.0
func (p *PyroscopeTest) NewRequestBuilder(t *testing.T) *RequestBuilder
func (*PyroscopeTest) Start ¶
func (p *PyroscopeTest) Start(t *testing.T)
func (*PyroscopeTest) Stop ¶
func (p *PyroscopeTest) Stop(t *testing.T)
func (*PyroscopeTest) TempAppName ¶ added in v1.6.0
func (p *PyroscopeTest) TempAppName() string
func (*PyroscopeTest) URL ¶ added in v1.2.0
func (p *PyroscopeTest) URL() string
type RequestBuilder ¶ added in v1.6.0
type RequestBuilder struct { AppName string // contains filtered or unexported fields }
func (*RequestBuilder) IngestJFRRequestBody ¶ added in v1.6.0
func (b *RequestBuilder) IngestJFRRequestBody(jfr []byte, labels []byte) *http.Request
func (*RequestBuilder) IngestJFRRequestFiles ¶ added in v1.6.0
func (b *RequestBuilder) IngestJFRRequestFiles(jfrPath, labelsPath string) *http.Request
func (*RequestBuilder) IngestPPROFRequest ¶ added in v1.6.0
func (b *RequestBuilder) IngestPPROFRequest(profilePath, prevProfilePath, sampleTypeConfigPath string) *http.Request
func (*RequestBuilder) Push ¶ added in v1.6.0
func (b *RequestBuilder) Push(request *connect.Request[pushv1.PushRequest], expectStatus int, expectedError string)
func (*RequestBuilder) PushClient ¶ added in v1.6.0
func (b *RequestBuilder) PushClient() pushv1connect.PusherServiceClient
func (*RequestBuilder) PushPPROFRequestFromBytes ¶ added in v1.7.0
func (b *RequestBuilder) PushPPROFRequestFromBytes(rawProfile []byte, name string) *connect.Request[pushv1.PushRequest]
func (*RequestBuilder) PushPPROFRequestFromFile ¶ added in v1.7.0
func (b *RequestBuilder) PushPPROFRequestFromFile(file string, metric string) *connect.Request[pushv1.PushRequest]
func (*RequestBuilder) QueryClient ¶ added in v1.6.0
func (b *RequestBuilder) QueryClient() querierv1connect.QuerierServiceClient
func (*RequestBuilder) Render ¶ added in v1.6.0
func (b *RequestBuilder) Render(metric string) *flamebearer.FlamebearerProfile
func (*RequestBuilder) SelectMergeProfile ¶ added in v1.6.0
func (*RequestBuilder) Spy ¶ added in v1.6.0
func (b *RequestBuilder) Spy(spy string) *RequestBuilder
Click to show internal directories.
Click to hide internal directories.