Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) CreateTestRun(testRun *TestRun) (*CreateTestRunResponse, error)
- func (c *Client) Do(req *http.Request, v interface{}) error
- func (c *Client) NewRequest(method, url string, data interface{}) (*http.Request, error)
- func (c *Client) PushMetric(referenceID string, samples []*sample) error
- func (c *Client) TestFinished(referenceID string, thresholds ThresholdResult, tained bool) error
- type Collector
- type CreateTestRunResponse
- type ErrorResponse
- type TestRun
- type ThresholdResult
Constants ¶
View Source
const ( TestName = "k6 test" MetricPushinteral = 1 * time.Second )
View Source
const (
RequestTimeout = 10 * time.Second
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles communication with Load Impact cloud API.
func (*Client) CreateTestRun ¶
func (c *Client) CreateTestRun(testRun *TestRun) (*CreateTestRunResponse, error)
func (*Client) NewRequest ¶
func (*Client) PushMetric ¶
func (*Client) TestFinished ¶
func (c *Client) TestFinished(referenceID string, thresholds ThresholdResult, tained bool) error
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector sends result data to the Load Impact cloud service.
type CreateTestRunResponse ¶
type CreateTestRunResponse struct {
ReferenceID string `json:"reference_id"`
}
type ErrorResponse ¶
ErrorResponse represents an error cause by talking to the API
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type ThresholdResult ¶
Click to show internal directories.
Click to hide internal directories.