UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

127 lines (126 loc) 3.79 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Retrieves all k6 load tests that belong to a project. * * ## 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!'); * } * `, * }, { * dependsOn: [loadTestProject], * }); * const testLoadTest2 = new grafana.k6.LoadTest("test_load_test_2", { * projectId: loadTestProject.id, * name: "Terraform Test Load Test (2)", * script: `export default function() { * console.log('Hello from k6!'); * } * `, * }, { * dependsOn: [testLoadTest], * }); * const fromProjectId = grafana.k6.getLoadTestsOutput({ * projectId: loadTestProject.id, * }); * const filterByName = grafana.k6.getLoadTestsOutput({ * name: "Terraform Test Load Test (2)", * projectId: loadTestProject.id, * }); * ``` */ export declare function getLoadTests(args: GetLoadTestsArgs, opts?: pulumi.InvokeOptions): Promise<GetLoadTestsResult>; /** * A collection of arguments for invoking getLoadTests. */ export interface GetLoadTestsArgs { /** * Human-friendly identifier of the load test. */ name?: string; /** * The identifier of the project the load tests belong to. */ projectId: string; } /** * A collection of values returned by getLoadTests. */ export interface GetLoadTestsResult { /** * The identifier of the project the load tests belong to. This is set to the same as the project_id. */ readonly id: string; readonly loadTests: outputs.k6.GetLoadTestsLoadTest[]; /** * Human-friendly identifier of the load test. */ readonly name?: string; /** * The identifier of the project the load tests belong to. */ readonly projectId: string; } /** * Retrieves all k6 load tests that belong to a project. * * ## 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!'); * } * `, * }, { * dependsOn: [loadTestProject], * }); * const testLoadTest2 = new grafana.k6.LoadTest("test_load_test_2", { * projectId: loadTestProject.id, * name: "Terraform Test Load Test (2)", * script: `export default function() { * console.log('Hello from k6!'); * } * `, * }, { * dependsOn: [testLoadTest], * }); * const fromProjectId = grafana.k6.getLoadTestsOutput({ * projectId: loadTestProject.id, * }); * const filterByName = grafana.k6.getLoadTestsOutput({ * name: "Terraform Test Load Test (2)", * projectId: loadTestProject.id, * }); * ``` */ export declare function getLoadTestsOutput(args: GetLoadTestsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLoadTestsResult>; /** * A collection of arguments for invoking getLoadTests. */ export interface GetLoadTestsOutputArgs { /** * Human-friendly identifier of the load test. */ name?: pulumi.Input<string>; /** * The identifier of the project the load tests belong to. */ projectId: pulumi.Input<string>; }