@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
127 lines (126 loc) • 4.13 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages 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!');
* }
* `,
* });
* ```
*
* ## Import
*
* ```sh
* terraform import grafana_k6_load_test.name "{{ id }}"
* ```
*/
export declare class LoadTest extends pulumi.CustomResource {
/**
* Get an existing LoadTest resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LoadTestState, opts?: pulumi.CustomResourceOptions): LoadTest;
/**
* Returns true if the given object is an instance of LoadTest. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is LoadTest;
/**
* Identifier of a baseline test run used for results comparison.
*/
readonly baselineTestRunId: pulumi.Output<string | undefined>;
/**
* The date when the load test was created.
*/
readonly created: pulumi.Output<string>;
/**
* Human-friendly identifier of the load test.
*/
readonly name: pulumi.Output<string>;
/**
* The identifier of the project this load test belongs to.
*/
readonly projectId: pulumi.Output<string>;
/**
* The k6 test script content. Can be provided inline or via the `file()` function.
*/
readonly script: pulumi.Output<string>;
/**
* The date when the load test was last updated.
*/
readonly updated: pulumi.Output<string>;
/**
* Create a LoadTest resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: LoadTestArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering LoadTest resources.
*/
export interface LoadTestState {
/**
* Identifier of a baseline test run used for results comparison.
*/
baselineTestRunId?: pulumi.Input<string>;
/**
* The date when the load test was created.
*/
created?: pulumi.Input<string>;
/**
* Human-friendly identifier of the load test.
*/
name?: pulumi.Input<string>;
/**
* The identifier of the project this load test belongs to.
*/
projectId?: pulumi.Input<string>;
/**
* The k6 test script content. Can be provided inline or via the `file()` function.
*/
script?: pulumi.Input<string>;
/**
* The date when the load test was last updated.
*/
updated?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a LoadTest resource.
*/
export interface LoadTestArgs {
/**
* Identifier of a baseline test run used for results comparison.
*/
baselineTestRunId?: pulumi.Input<string>;
/**
* Human-friendly identifier of the load test.
*/
name?: pulumi.Input<string>;
/**
* The identifier of the project this load test belongs to.
*/
projectId: pulumi.Input<string>;
/**
* The k6 test script content. Can be provided inline or via the `file()` function.
*/
script: pulumi.Input<string>;
}