# CommunityToolkit.Aspire.Hosting.k6

- Module: `CommunityToolkit.Aspire.Hosting.k6`
- Version: `13.6.1`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)
- Functions: `3`
- Types: `2`

## Handles

- [K6Resource](/reference/api/go/communitytoolkit.aspire.hosting.k6/k6resource.md) -- `handle` - 3 members -- A resource that represents a Grafana k6 instance

## Enums

- [K6SummaryMode](/reference/api/go/communitytoolkit.aspire.hosting.k6/k6summarymode.md) -- `enum` - 3 values -- Define how detailed the end-of-test summary should be.

## Functions

- [AddK6](/reference/api/go/communitytoolkit.aspire.hosting.k6/addk6.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Grafana k6 container resource to the application model. The default image is and the tag is .
- [WithK6OtlpEnvironment](/reference/api/go/communitytoolkit.aspire.hosting.k6/withk6otlpenvironment.md) -- `method` - on `K6Resource` -- Set K6 environment variables from the existing OTEL environment set for this resource. See https://grafana.com/docs/k6/latest/results-output/real-time/opentelemetry/#configuration.
- [WithScript](/reference/api/go/communitytoolkit.aspire.hosting.k6/withscript.md) -- `method` - on `K6Resource` -- Runs a k6 JS script when starting the Grafana k6 container resource.
