Params is an object used by the gRPC methods that generate RPC requests. Params contains request-specific options like headers that should be inserted into the request.
Name | Type | Description |
---|---|---|
Params.headers (< v0.37.0) | object | Deprecated, use metadata instead. |
Params.metadata | object | Object with key-value pairs representing custom metadata the user would like to add to the request. |
Params.tags | object | Key-value pairs where the keys are names of tags and the values are tag values. Response time metrics generated as a result of the request will have these tags added to them, allowing the user to filter out those results specifically, when looking at results data. |
Params.timeout | string / number | Request timeout to use. Default timeout is 60 seconds ("60s"). The type can also be a number, in which case k6 interprets it as milliseconds, e.g., 60000 is equivalent to "60s". |