@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
101 lines (100 loc) • 2.71 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves a k6 load test.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const loadTestProject = new grafana.k6.Project("load_test_project", {name: "Terraform Load Test Project"});
* const testLoadTest = new grafana.k6.LoadTest("test_load_test", {
* projectId: loadTestProject.id,
* name: "Terraform Test Load Test",
* script: `export default function() {
* console.log('Hello from k6!');
* }
* `,
* });
* const fromId = grafana.k6.getLoadTestOutput({
* id: testLoadTest.id,
* });
* ```
*/
export declare function getLoadTest(args: GetLoadTestArgs, opts?: pulumi.InvokeOptions): Promise<GetLoadTestResult>;
/**
* A collection of arguments for invoking getLoadTest.
*/
export interface GetLoadTestArgs {
/**
* Numeric identifier of the load test.
*/
id: string;
}
/**
* A collection of values returned by getLoadTest.
*/
export interface GetLoadTestResult {
/**
* Identifier of a baseline test run used for results comparison.
*/
readonly baselineTestRunId: string;
/**
* The date when the load test was created.
*/
readonly created: string;
/**
* Numeric identifier of the load test.
*/
readonly id: string;
/**
* Human-friendly identifier of the load test.
*/
readonly name: string;
/**
* The identifier of the project this load test belongs to.
*/
readonly projectId: string;
/**
* The k6 test script content.
*/
readonly script: string;
/**
* The date when the load test was last updated.
*/
readonly updated: string;
}
/**
* Retrieves a k6 load test.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const loadTestProject = new grafana.k6.Project("load_test_project", {name: "Terraform Load Test Project"});
* const testLoadTest = new grafana.k6.LoadTest("test_load_test", {
* projectId: loadTestProject.id,
* name: "Terraform Test Load Test",
* script: `export default function() {
* console.log('Hello from k6!');
* }
* `,
* });
* const fromId = grafana.k6.getLoadTestOutput({
* id: testLoadTest.id,
* });
* ```
*/
export declare function getLoadTestOutput(args: GetLoadTestOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLoadTestResult>;
/**
* A collection of arguments for invoking getLoadTest.
*/
export interface GetLoadTestOutputArgs {
/**
* Numeric identifier of the load test.
*/
id: pulumi.Input<string>;
}