@pulumiverse/grafana 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cloud/getProviderAwsCloudwatchScrapeJob.d.ts +12 -12
- package/cloud/providerAwsCloudwatchScrapeJob.d.ts +11 -11
- package/cloudprovider/awsCloudwatchScrapeJob.d.ts +11 -11
- package/cloudprovider/awsResourceMetadataScrapeJob.d.ts +166 -0
- package/cloudprovider/awsResourceMetadataScrapeJob.js +117 -0
- package/cloudprovider/awsResourceMetadataScrapeJob.js.map +1 -0
- package/cloudprovider/getAwsCloudwatchScrapeJob.d.ts +12 -12
- package/cloudprovider/index.d.ts +3 -0
- package/cloudprovider/index.js +6 -1
- package/cloudprovider/index.js.map +1 -1
- package/config/vars.d.ts +8 -0
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/k6/getLoadTest.d.ts +100 -0
- package/k6/getLoadTest.js +68 -0
- package/k6/getLoadTest.js.map +1 -0
- package/k6/getLoadTests.d.ts +126 -0
- package/k6/getLoadTests.js +102 -0
- package/k6/getLoadTests.js.map +1 -0
- package/k6/getProject.d.ts +80 -0
- package/k6/getProject.js +52 -0
- package/k6/getProject.js.map +1 -0
- package/k6/getProjectLimits.d.ts +80 -0
- package/k6/getProjectLimits.js +52 -0
- package/k6/getProjectLimits.js.map +1 -0
- package/k6/getProjects.d.ts +68 -0
- package/k6/getProjects.js +56 -0
- package/k6/getProjects.js.map +1 -0
- package/k6/index.d.ts +27 -0
- package/k6/index.js +52 -0
- package/k6/index.js.map +1 -0
- package/k6/installation.d.ts +154 -0
- package/k6/installation.js +127 -0
- package/k6/installation.js.map +1 -0
- package/k6/loadTest.d.ts +126 -0
- package/k6/loadTest.js +91 -0
- package/k6/loadTest.js.map +1 -0
- package/k6/project.d.ts +98 -0
- package/k6/project.js +75 -0
- package/k6/project.js.map +1 -0
- package/k6/projectLimits.d.ts +121 -0
- package/k6/projectLimits.js +85 -0
- package/k6/projectLimits.js.map +1 -0
- package/package.json +2 -2
- package/provider.d.ts +16 -0
- package/provider.js +3 -1
- package/provider.js.map +1 -1
- package/types/input.d.ts +58 -32
- package/types/output.d.ts +59 -16
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Sets up the k6 App on a Grafana Cloud instance and generates a token.
|
|
4
|
+
* Once a Grafana Cloud stack is created, a user can either use this resource or go into the UI to install k6.
|
|
5
|
+
* This resource cannot be imported but it can be used on an existing k6 App installation without issues.
|
|
6
|
+
*
|
|
7
|
+
* **Note that this resource must be used on a provider configured with Grafana Cloud credentials.**
|
|
8
|
+
*
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/testing/k6/)
|
|
10
|
+
*
|
|
11
|
+
* Required access policy scopes:
|
|
12
|
+
*
|
|
13
|
+
* * stacks:read
|
|
14
|
+
* * stacks:write
|
|
15
|
+
* * subscriptions:read
|
|
16
|
+
* * orgs:read
|
|
17
|
+
*
|
|
18
|
+
* ## Example Usage
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
23
|
+
*
|
|
24
|
+
* const config = new pulumi.Config();
|
|
25
|
+
* // Cloud Access Policy token for Grafana Cloud with the following scopes: stacks:read|write|delete, stack-service-accounts:write
|
|
26
|
+
* const cloudAccessPolicyToken = config.requireObject<any>("cloudAccessPolicyToken");
|
|
27
|
+
* const stackSlug = config.requireObject<any>("stackSlug");
|
|
28
|
+
* const cloudRegion = config.get("cloudRegion") || "us";
|
|
29
|
+
* const k6Stack = new grafana.cloud.Stack("k6_stack", {
|
|
30
|
+
* name: stackSlug,
|
|
31
|
+
* slug: stackSlug,
|
|
32
|
+
* regionSlug: cloudRegion,
|
|
33
|
+
* });
|
|
34
|
+
* // Step 2: Create a Service Account and a token to install the k6 App
|
|
35
|
+
* const k6Sa = new grafana.cloud.StackServiceAccount("k6_sa", {
|
|
36
|
+
* stackSlug: stackSlug,
|
|
37
|
+
* name: `${stackSlug}-k6-app`,
|
|
38
|
+
* role: "Admin",
|
|
39
|
+
* isDisabled: false,
|
|
40
|
+
* });
|
|
41
|
+
* const k6SaToken = new grafana.cloud.StackServiceAccountToken("k6_sa_token", {
|
|
42
|
+
* stackSlug: stackSlug,
|
|
43
|
+
* name: `${stackSlug}-k6-app-token`,
|
|
44
|
+
* serviceAccountId: k6Sa.id,
|
|
45
|
+
* });
|
|
46
|
+
* // Step 3: Install the k6 App on the stack
|
|
47
|
+
* const k6Installation = new grafana.k6.Installation("k6_installation", {
|
|
48
|
+
* cloudAccessPolicyToken: cloudAccessPolicyToken,
|
|
49
|
+
* stackId: k6Stack.id,
|
|
50
|
+
* grafanaSaToken: k6SaToken.key,
|
|
51
|
+
* grafanaUser: "admin",
|
|
52
|
+
* });
|
|
53
|
+
* const myK6Project = new grafana.k6.Project("my_k6_project", {name: "k6 Project created with TF"});
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare class Installation extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing Installation resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstallationState, opts?: pulumi.CustomResourceOptions): Installation;
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of Installation. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj: any): obj is Installation;
|
|
72
|
+
/**
|
|
73
|
+
* The [Grafana Cloud access policy](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/).
|
|
74
|
+
*/
|
|
75
|
+
readonly cloudAccessPolicyToken: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The [service account](https://grafana.com/docs/grafana/latest/administration/service-accounts/) token.
|
|
78
|
+
*/
|
|
79
|
+
readonly grafanaSaToken: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The user to use for the installation.
|
|
82
|
+
*/
|
|
83
|
+
readonly grafanaUser: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Generated token to access the k6 API.
|
|
86
|
+
*/
|
|
87
|
+
readonly k6AccessToken: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The identifier of the k6 organization.
|
|
90
|
+
*/
|
|
91
|
+
readonly k6Organization: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The identifier of the stack to install k6 on.
|
|
94
|
+
*/
|
|
95
|
+
readonly stackId: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a Installation resource with the given unique name, arguments, and options.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resource.
|
|
100
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
101
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
102
|
+
*/
|
|
103
|
+
constructor(name: string, args: InstallationArgs, opts?: pulumi.CustomResourceOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Input properties used for looking up and filtering Installation resources.
|
|
107
|
+
*/
|
|
108
|
+
export interface InstallationState {
|
|
109
|
+
/**
|
|
110
|
+
* The [Grafana Cloud access policy](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/).
|
|
111
|
+
*/
|
|
112
|
+
cloudAccessPolicyToken?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The [service account](https://grafana.com/docs/grafana/latest/administration/service-accounts/) token.
|
|
115
|
+
*/
|
|
116
|
+
grafanaSaToken?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The user to use for the installation.
|
|
119
|
+
*/
|
|
120
|
+
grafanaUser?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Generated token to access the k6 API.
|
|
123
|
+
*/
|
|
124
|
+
k6AccessToken?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The identifier of the k6 organization.
|
|
127
|
+
*/
|
|
128
|
+
k6Organization?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The identifier of the stack to install k6 on.
|
|
131
|
+
*/
|
|
132
|
+
stackId?: pulumi.Input<string>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The set of arguments for constructing a Installation resource.
|
|
136
|
+
*/
|
|
137
|
+
export interface InstallationArgs {
|
|
138
|
+
/**
|
|
139
|
+
* The [Grafana Cloud access policy](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/).
|
|
140
|
+
*/
|
|
141
|
+
cloudAccessPolicyToken: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The [service account](https://grafana.com/docs/grafana/latest/administration/service-accounts/) token.
|
|
144
|
+
*/
|
|
145
|
+
grafanaSaToken: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* The user to use for the installation.
|
|
148
|
+
*/
|
|
149
|
+
grafanaUser: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* The identifier of the stack to install k6 on.
|
|
152
|
+
*/
|
|
153
|
+
stackId: pulumi.Input<string>;
|
|
154
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Installation = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Sets up the k6 App on a Grafana Cloud instance and generates a token.
|
|
10
|
+
* Once a Grafana Cloud stack is created, a user can either use this resource or go into the UI to install k6.
|
|
11
|
+
* This resource cannot be imported but it can be used on an existing k6 App installation without issues.
|
|
12
|
+
*
|
|
13
|
+
* **Note that this resource must be used on a provider configured with Grafana Cloud credentials.**
|
|
14
|
+
*
|
|
15
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/testing/k6/)
|
|
16
|
+
*
|
|
17
|
+
* Required access policy scopes:
|
|
18
|
+
*
|
|
19
|
+
* * stacks:read
|
|
20
|
+
* * stacks:write
|
|
21
|
+
* * subscriptions:read
|
|
22
|
+
* * orgs:read
|
|
23
|
+
*
|
|
24
|
+
* ## Example Usage
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
28
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
29
|
+
*
|
|
30
|
+
* const config = new pulumi.Config();
|
|
31
|
+
* // Cloud Access Policy token for Grafana Cloud with the following scopes: stacks:read|write|delete, stack-service-accounts:write
|
|
32
|
+
* const cloudAccessPolicyToken = config.requireObject<any>("cloudAccessPolicyToken");
|
|
33
|
+
* const stackSlug = config.requireObject<any>("stackSlug");
|
|
34
|
+
* const cloudRegion = config.get("cloudRegion") || "us";
|
|
35
|
+
* const k6Stack = new grafana.cloud.Stack("k6_stack", {
|
|
36
|
+
* name: stackSlug,
|
|
37
|
+
* slug: stackSlug,
|
|
38
|
+
* regionSlug: cloudRegion,
|
|
39
|
+
* });
|
|
40
|
+
* // Step 2: Create a Service Account and a token to install the k6 App
|
|
41
|
+
* const k6Sa = new grafana.cloud.StackServiceAccount("k6_sa", {
|
|
42
|
+
* stackSlug: stackSlug,
|
|
43
|
+
* name: `${stackSlug}-k6-app`,
|
|
44
|
+
* role: "Admin",
|
|
45
|
+
* isDisabled: false,
|
|
46
|
+
* });
|
|
47
|
+
* const k6SaToken = new grafana.cloud.StackServiceAccountToken("k6_sa_token", {
|
|
48
|
+
* stackSlug: stackSlug,
|
|
49
|
+
* name: `${stackSlug}-k6-app-token`,
|
|
50
|
+
* serviceAccountId: k6Sa.id,
|
|
51
|
+
* });
|
|
52
|
+
* // Step 3: Install the k6 App on the stack
|
|
53
|
+
* const k6Installation = new grafana.k6.Installation("k6_installation", {
|
|
54
|
+
* cloudAccessPolicyToken: cloudAccessPolicyToken,
|
|
55
|
+
* stackId: k6Stack.id,
|
|
56
|
+
* grafanaSaToken: k6SaToken.key,
|
|
57
|
+
* grafanaUser: "admin",
|
|
58
|
+
* });
|
|
59
|
+
* const myK6Project = new grafana.k6.Project("my_k6_project", {name: "k6 Project created with TF"});
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
class Installation extends pulumi.CustomResource {
|
|
63
|
+
/**
|
|
64
|
+
* Get an existing Installation resource's state with the given name, ID, and optional extra
|
|
65
|
+
* properties used to qualify the lookup.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resulting resource.
|
|
68
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
69
|
+
* @param state Any extra arguments used during the lookup.
|
|
70
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
|
+
*/
|
|
72
|
+
static get(name, id, state, opts) {
|
|
73
|
+
return new Installation(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if the given object is an instance of Installation. This is designed to work even
|
|
77
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
78
|
+
*/
|
|
79
|
+
static isInstance(obj) {
|
|
80
|
+
if (obj === undefined || obj === null) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
return obj['__pulumiType'] === Installation.__pulumiType;
|
|
84
|
+
}
|
|
85
|
+
constructor(name, argsOrState, opts) {
|
|
86
|
+
let resourceInputs = {};
|
|
87
|
+
opts = opts || {};
|
|
88
|
+
if (opts.id) {
|
|
89
|
+
const state = argsOrState;
|
|
90
|
+
resourceInputs["cloudAccessPolicyToken"] = state ? state.cloudAccessPolicyToken : undefined;
|
|
91
|
+
resourceInputs["grafanaSaToken"] = state ? state.grafanaSaToken : undefined;
|
|
92
|
+
resourceInputs["grafanaUser"] = state ? state.grafanaUser : undefined;
|
|
93
|
+
resourceInputs["k6AccessToken"] = state ? state.k6AccessToken : undefined;
|
|
94
|
+
resourceInputs["k6Organization"] = state ? state.k6Organization : undefined;
|
|
95
|
+
resourceInputs["stackId"] = state ? state.stackId : undefined;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
const args = argsOrState;
|
|
99
|
+
if ((!args || args.cloudAccessPolicyToken === undefined) && !opts.urn) {
|
|
100
|
+
throw new Error("Missing required property 'cloudAccessPolicyToken'");
|
|
101
|
+
}
|
|
102
|
+
if ((!args || args.grafanaSaToken === undefined) && !opts.urn) {
|
|
103
|
+
throw new Error("Missing required property 'grafanaSaToken'");
|
|
104
|
+
}
|
|
105
|
+
if ((!args || args.grafanaUser === undefined) && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'grafanaUser'");
|
|
107
|
+
}
|
|
108
|
+
if ((!args || args.stackId === undefined) && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'stackId'");
|
|
110
|
+
}
|
|
111
|
+
resourceInputs["cloudAccessPolicyToken"] = (args === null || args === void 0 ? void 0 : args.cloudAccessPolicyToken) ? pulumi.secret(args.cloudAccessPolicyToken) : undefined;
|
|
112
|
+
resourceInputs["grafanaSaToken"] = (args === null || args === void 0 ? void 0 : args.grafanaSaToken) ? pulumi.secret(args.grafanaSaToken) : undefined;
|
|
113
|
+
resourceInputs["grafanaUser"] = args ? args.grafanaUser : undefined;
|
|
114
|
+
resourceInputs["stackId"] = args ? args.stackId : undefined;
|
|
115
|
+
resourceInputs["k6AccessToken"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["k6Organization"] = undefined /*out*/;
|
|
117
|
+
}
|
|
118
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
119
|
+
const secretOpts = { additionalSecretOutputs: ["cloudAccessPolicyToken", "grafanaSaToken", "k6AccessToken"] };
|
|
120
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
121
|
+
super(Installation.__pulumiType, name, resourceInputs, opts);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.Installation = Installation;
|
|
125
|
+
/** @internal */
|
|
126
|
+
Installation.__pulumiType = 'grafana:k6/installation:Installation';
|
|
127
|
+
//# sourceMappingURL=installation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installation.js","sourceRoot":"","sources":["../../k6/installation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAm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AAE,eAAe,CAAC,EAAE,CAAC;QAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAjGL,oCAkGC;AApFG,gBAAgB;AACO,yBAAY,GAAG,sCAAsC,CAAC"}
|
package/k6/loadTest.d.ts
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a k6 load test.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
10
|
+
*
|
|
11
|
+
* const loadTestProject = new grafana.k6.Project("load_test_project", {name: "Terraform Load Test Project"});
|
|
12
|
+
* const testLoadTest = new grafana.k6.LoadTest("test_load_test", {
|
|
13
|
+
* projectId: loadTestProject.id,
|
|
14
|
+
* name: "Terraform Test Load Test",
|
|
15
|
+
* script: `export default function() {
|
|
16
|
+
* console.log('Hello from k6!');
|
|
17
|
+
* }
|
|
18
|
+
* `,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import grafana:k6/loadTest:LoadTest name "{{ id }}"
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class LoadTest extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing LoadTest resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LoadTestState, opts?: pulumi.CustomResourceOptions): LoadTest;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of LoadTest. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj: any): obj is LoadTest;
|
|
44
|
+
/**
|
|
45
|
+
* Identifier of a baseline test run used for results comparison.
|
|
46
|
+
*/
|
|
47
|
+
readonly baselineTestRunId: pulumi.Output<number | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The date when the load test was created.
|
|
50
|
+
*/
|
|
51
|
+
readonly created: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Human-friendly identifier of the load test.
|
|
54
|
+
*/
|
|
55
|
+
readonly name: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The identifier of the project this load test belongs to.
|
|
58
|
+
*/
|
|
59
|
+
readonly projectId: pulumi.Output<number>;
|
|
60
|
+
/**
|
|
61
|
+
* The k6 test script content. Can be provided inline or via the `file()` function.
|
|
62
|
+
*/
|
|
63
|
+
readonly script: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The date when the load test was last updated.
|
|
66
|
+
*/
|
|
67
|
+
readonly updated: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Create a LoadTest resource with the given unique name, arguments, and options.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resource.
|
|
72
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
73
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
74
|
+
*/
|
|
75
|
+
constructor(name: string, args: LoadTestArgs, opts?: pulumi.CustomResourceOptions);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Input properties used for looking up and filtering LoadTest resources.
|
|
79
|
+
*/
|
|
80
|
+
export interface LoadTestState {
|
|
81
|
+
/**
|
|
82
|
+
* Identifier of a baseline test run used for results comparison.
|
|
83
|
+
*/
|
|
84
|
+
baselineTestRunId?: pulumi.Input<number>;
|
|
85
|
+
/**
|
|
86
|
+
* The date when the load test was created.
|
|
87
|
+
*/
|
|
88
|
+
created?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Human-friendly identifier of the load test.
|
|
91
|
+
*/
|
|
92
|
+
name?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The identifier of the project this load test belongs to.
|
|
95
|
+
*/
|
|
96
|
+
projectId?: pulumi.Input<number>;
|
|
97
|
+
/**
|
|
98
|
+
* The k6 test script content. Can be provided inline or via the `file()` function.
|
|
99
|
+
*/
|
|
100
|
+
script?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The date when the load test was last updated.
|
|
103
|
+
*/
|
|
104
|
+
updated?: pulumi.Input<string>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The set of arguments for constructing a LoadTest resource.
|
|
108
|
+
*/
|
|
109
|
+
export interface LoadTestArgs {
|
|
110
|
+
/**
|
|
111
|
+
* Identifier of a baseline test run used for results comparison.
|
|
112
|
+
*/
|
|
113
|
+
baselineTestRunId?: pulumi.Input<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Human-friendly identifier of the load test.
|
|
116
|
+
*/
|
|
117
|
+
name?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The identifier of the project this load test belongs to.
|
|
120
|
+
*/
|
|
121
|
+
projectId: pulumi.Input<number>;
|
|
122
|
+
/**
|
|
123
|
+
* The k6 test script content. Can be provided inline or via the `file()` function.
|
|
124
|
+
*/
|
|
125
|
+
script: pulumi.Input<string>;
|
|
126
|
+
}
|
package/k6/loadTest.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.LoadTest = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a k6 load test.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
16
|
+
*
|
|
17
|
+
* const loadTestProject = new grafana.k6.Project("load_test_project", {name: "Terraform Load Test Project"});
|
|
18
|
+
* const testLoadTest = new grafana.k6.LoadTest("test_load_test", {
|
|
19
|
+
* projectId: loadTestProject.id,
|
|
20
|
+
* name: "Terraform Test Load Test",
|
|
21
|
+
* script: `export default function() {
|
|
22
|
+
* console.log('Hello from k6!');
|
|
23
|
+
* }
|
|
24
|
+
* `,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import grafana:k6/loadTest:LoadTest name "{{ id }}"
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class LoadTest extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing LoadTest resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name, id, state, opts) {
|
|
45
|
+
return new LoadTest(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of LoadTest. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj) {
|
|
52
|
+
if (obj === undefined || obj === null) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return obj['__pulumiType'] === LoadTest.__pulumiType;
|
|
56
|
+
}
|
|
57
|
+
constructor(name, argsOrState, opts) {
|
|
58
|
+
let resourceInputs = {};
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
if (opts.id) {
|
|
61
|
+
const state = argsOrState;
|
|
62
|
+
resourceInputs["baselineTestRunId"] = state ? state.baselineTestRunId : undefined;
|
|
63
|
+
resourceInputs["created"] = state ? state.created : undefined;
|
|
64
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
65
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
66
|
+
resourceInputs["script"] = state ? state.script : undefined;
|
|
67
|
+
resourceInputs["updated"] = state ? state.updated : undefined;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
const args = argsOrState;
|
|
71
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'projectId'");
|
|
73
|
+
}
|
|
74
|
+
if ((!args || args.script === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'script'");
|
|
76
|
+
}
|
|
77
|
+
resourceInputs["baselineTestRunId"] = args ? args.baselineTestRunId : undefined;
|
|
78
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
79
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
80
|
+
resourceInputs["script"] = args ? args.script : undefined;
|
|
81
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["updated"] = undefined /*out*/;
|
|
83
|
+
}
|
|
84
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
+
super(LoadTest.__pulumiType, name, resourceInputs, opts);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.LoadTest = LoadTest;
|
|
89
|
+
/** @internal */
|
|
90
|
+
LoadTest.__pulumiType = 'grafana:k6/loadTest:LoadTest';
|
|
91
|
+
//# sourceMappingURL=loadTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadTest.js","sourceRoot":"","sources":["../../k6/loadTest.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,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AS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAzFL,4BA0FC;AA5EG,gBAAgB;AACO,qBAAY,GAAG,8BAA8B,CAAC"}
|
package/k6/project.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a k6 project.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
10
|
+
*
|
|
11
|
+
* const testProject = new grafana.k6.Project("test_project", {name: "Terraform Test Project"});
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* ## Import
|
|
15
|
+
*
|
|
16
|
+
* ```sh
|
|
17
|
+
* $ pulumi import grafana:k6/project:Project name "{{ id }}"
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class Project extends pulumi.CustomResource {
|
|
21
|
+
/**
|
|
22
|
+
* Get an existing Project resource's state with the given name, ID, and optional extra
|
|
23
|
+
* properties used to qualify the lookup.
|
|
24
|
+
*
|
|
25
|
+
* @param name The _unique_ name of the resulting resource.
|
|
26
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
27
|
+
* @param state Any extra arguments used during the lookup.
|
|
28
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
29
|
+
*/
|
|
30
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectState, opts?: pulumi.CustomResourceOptions): Project;
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of Project. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj: any): obj is Project;
|
|
36
|
+
/**
|
|
37
|
+
* The date when the project was created.
|
|
38
|
+
*/
|
|
39
|
+
readonly created: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* The Grafana folder uid.
|
|
42
|
+
*/
|
|
43
|
+
readonly grafanaFolderUid: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Use this project as default for running tests when no explicit project identifier is provided.
|
|
46
|
+
*/
|
|
47
|
+
readonly isDefault: pulumi.Output<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Human-friendly identifier of the project.
|
|
50
|
+
*/
|
|
51
|
+
readonly name: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The date when the project was last updated.
|
|
54
|
+
*/
|
|
55
|
+
readonly updated: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Create a Project resource with the given unique name, arguments, and options.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resource.
|
|
60
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
61
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
62
|
+
*/
|
|
63
|
+
constructor(name: string, args?: ProjectArgs, opts?: pulumi.CustomResourceOptions);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Input properties used for looking up and filtering Project resources.
|
|
67
|
+
*/
|
|
68
|
+
export interface ProjectState {
|
|
69
|
+
/**
|
|
70
|
+
* The date when the project was created.
|
|
71
|
+
*/
|
|
72
|
+
created?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The Grafana folder uid.
|
|
75
|
+
*/
|
|
76
|
+
grafanaFolderUid?: pulumi.Input<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Use this project as default for running tests when no explicit project identifier is provided.
|
|
79
|
+
*/
|
|
80
|
+
isDefault?: pulumi.Input<boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Human-friendly identifier of the project.
|
|
83
|
+
*/
|
|
84
|
+
name?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The date when the project was last updated.
|
|
87
|
+
*/
|
|
88
|
+
updated?: pulumi.Input<string>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The set of arguments for constructing a Project resource.
|
|
92
|
+
*/
|
|
93
|
+
export interface ProjectArgs {
|
|
94
|
+
/**
|
|
95
|
+
* Human-friendly identifier of the project.
|
|
96
|
+
*/
|
|
97
|
+
name?: pulumi.Input<string>;
|
|
98
|
+
}
|