property
PrimaryEndpoint EndpointReference getGets the primary endpoint for the Grafana k6 instance. This endpoint is used for all API calls over HTTP.
PrimaryEndpoint() EndpointReferenceAPI references are intentionally omitted from this search. To find API references, please search these dedicated API pages instead:
A resource that represents a Grafana k6 instance
type K6Resource interface { IComputeResource Resource ResourceWithArgs ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}PrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceWithK6OtlpEnvironment() K6ResourceReturns
K6Resource The I.
Returns a handle; failures surface later via Err().
WithScript( scriptPath string, options ...*WithScriptOptions,) K6ResourceParameters
scriptPath stringThe path to the JS script to run.options...*WithScriptOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithScriptOptions argument.
VirtualUsers *float64The number of virtual users for the test..Duration*stringThe duration of the test, e.g. 30s.SummaryMode *K6SummaryMode The summary mode of the test execution.Returns
K6Resource The I.
Returns a handle; failures surface later via Err().