@pulumiverse/grafana 2.28.0 → 2.29.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/apps/v0alpha1/provisioningRepository.d.ts +3 -0
- package/apps/v0alpha1/provisioningRepository.js +3 -0
- package/apps/v0alpha1/provisioningRepository.js.map +1 -1
- package/fleetmanagement/pipeline.d.ts +14 -0
- package/fleetmanagement/pipeline.js +4 -0
- package/fleetmanagement/pipeline.js.map +1 -1
- package/package.json +2 -2
- package/slo/slo.d.ts +6 -6
- package/types/input.d.ts +10 -0
- package/types/output.d.ts +11 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisioningRepository.js","sourceRoot":"","sources":["../../../apps/v0alpha1/provisioningRepository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,6CAA6C;AAE7C
|
|
1
|
+
{"version":3,"file":"provisioningRepository.js","sourceRoot":"","sources":["../../../apps/v0alpha1/provisioningRepository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,6CAA6C;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyLG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,C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AAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA7EL,wDA8EC;AAhEG,gBAAgB;AACO,mCAAY,GAAG,qEAAqE,CAAC"}
|
|
@@ -2,6 +2,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Manages Grafana Fleet Management pipelines.
|
|
4
4
|
*
|
|
5
|
+
* Pipelines are always sent to the API with a Terraform pipeline source (SOURCE_TYPE_TERRAFORM) so Fleet Management can show them as Terraform-managed. Use the optional terraformSourceNamespace argument (defaults to the string "default") for a stable namespace per root or workspace.
|
|
6
|
+
*
|
|
5
7
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
6
8
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/pipeline-api/)
|
|
7
9
|
* * Step-by-step guide
|
|
@@ -73,6 +75,10 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
73
75
|
* Name of the pipeline which is the unique identifier for the pipeline
|
|
74
76
|
*/
|
|
75
77
|
readonly name: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Namespace sent with the pipeline source (always `SOURCE_TYPE_TERRAFORM` in the Fleet Management API). Use a stable value per Terraform root or workspace so the UI shows Terraform as the source and API sync semantics stay consistent. If omitted, the namespace `default` is used.
|
|
80
|
+
*/
|
|
81
|
+
readonly terraformSourceNamespace: pulumi.Output<string>;
|
|
76
82
|
/**
|
|
77
83
|
* Create a Pipeline resource with the given unique name, arguments, and options.
|
|
78
84
|
*
|
|
@@ -106,6 +112,10 @@ export interface PipelineState {
|
|
|
106
112
|
* Name of the pipeline which is the unique identifier for the pipeline
|
|
107
113
|
*/
|
|
108
114
|
name?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Namespace sent with the pipeline source (always `SOURCE_TYPE_TERRAFORM` in the Fleet Management API). Use a stable value per Terraform root or workspace so the UI shows Terraform as the source and API sync semantics stay consistent. If omitted, the namespace `default` is used.
|
|
117
|
+
*/
|
|
118
|
+
terraformSourceNamespace?: pulumi.Input<string>;
|
|
109
119
|
}
|
|
110
120
|
/**
|
|
111
121
|
* The set of arguments for constructing a Pipeline resource.
|
|
@@ -131,4 +141,8 @@ export interface PipelineArgs {
|
|
|
131
141
|
* Name of the pipeline which is the unique identifier for the pipeline
|
|
132
142
|
*/
|
|
133
143
|
name?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Namespace sent with the pipeline source (always `SOURCE_TYPE_TERRAFORM` in the Fleet Management API). Use a stable value per Terraform root or workspace so the UI shows Terraform as the source and API sync semantics stay consistent. If omitted, the namespace `default` is used.
|
|
146
|
+
*/
|
|
147
|
+
terraformSourceNamespace?: pulumi.Input<string>;
|
|
134
148
|
}
|
|
@@ -8,6 +8,8 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages Grafana Fleet Management pipelines.
|
|
10
10
|
*
|
|
11
|
+
* Pipelines are always sent to the API with a Terraform pipeline source (SOURCE_TYPE_TERRAFORM) so Fleet Management can show them as Terraform-managed. Use the optional terraformSourceNamespace argument (defaults to the string "default") for a stable namespace per root or workspace.
|
|
12
|
+
*
|
|
11
13
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
12
14
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/pipeline-api/)
|
|
13
15
|
* * Step-by-step guide
|
|
@@ -76,6 +78,7 @@ class Pipeline extends pulumi.CustomResource {
|
|
|
76
78
|
resourceInputs["enabled"] = state?.enabled;
|
|
77
79
|
resourceInputs["matchers"] = state?.matchers;
|
|
78
80
|
resourceInputs["name"] = state?.name;
|
|
81
|
+
resourceInputs["terraformSourceNamespace"] = state?.terraformSourceNamespace;
|
|
79
82
|
}
|
|
80
83
|
else {
|
|
81
84
|
const args = argsOrState;
|
|
@@ -87,6 +90,7 @@ class Pipeline extends pulumi.CustomResource {
|
|
|
87
90
|
resourceInputs["enabled"] = args?.enabled;
|
|
88
91
|
resourceInputs["matchers"] = args?.matchers;
|
|
89
92
|
resourceInputs["name"] = args?.name;
|
|
93
|
+
resourceInputs["terraformSourceNamespace"] = args?.terraformSourceNamespace;
|
|
90
94
|
}
|
|
91
95
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
92
96
|
super(Pipeline.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../fleetmanagement/pipeline.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../fleetmanagement/pipeline.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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,I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C;;AAtFL,4BAuFC;AAzEG,gBAAgB;AACO,qBAAY,GAAG,2CAA2C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/grafana",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing grafana.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "grafana",
|
|
27
|
-
"version": "2.
|
|
27
|
+
"version": "2.29.0",
|
|
28
28
|
"server": "github://api.github.com/pulumiverse"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/slo/slo.d.ts
CHANGED
|
@@ -257,7 +257,7 @@ export declare class SLO extends pulumi.CustomResource {
|
|
|
257
257
|
*/
|
|
258
258
|
readonly destinationDatasource: pulumi.Output<outputs.slo.SLODestinationDatasource | undefined>;
|
|
259
259
|
/**
|
|
260
|
-
* UID for the SLO folder
|
|
260
|
+
* UID for the SLO folder. Must be non-empty if set; omit the attribute entirely to associate the SLO with the default Grafana SLO folder.
|
|
261
261
|
*/
|
|
262
262
|
readonly folderUid: pulumi.Output<string | undefined>;
|
|
263
263
|
/**
|
|
@@ -277,7 +277,7 @@ export declare class SLO extends pulumi.CustomResource {
|
|
|
277
277
|
*/
|
|
278
278
|
readonly queries: pulumi.Output<outputs.slo.SLOQuery[] | undefined>;
|
|
279
279
|
/**
|
|
280
|
-
* The name of a search expression in Grafana Asserts. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
|
|
280
|
+
* The name of a search expression in Grafana Asserts. Must be non-empty if set; omit the attribute entirely to leave it unset. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
|
|
281
281
|
*/
|
|
282
282
|
readonly searchExpression: pulumi.Output<string | undefined>;
|
|
283
283
|
/**
|
|
@@ -314,7 +314,7 @@ export interface SLOState {
|
|
|
314
314
|
*/
|
|
315
315
|
destinationDatasource?: pulumi.Input<inputs.slo.SLODestinationDatasource>;
|
|
316
316
|
/**
|
|
317
|
-
* UID for the SLO folder
|
|
317
|
+
* UID for the SLO folder. Must be non-empty if set; omit the attribute entirely to associate the SLO with the default Grafana SLO folder.
|
|
318
318
|
*/
|
|
319
319
|
folderUid?: pulumi.Input<string>;
|
|
320
320
|
/**
|
|
@@ -334,7 +334,7 @@ export interface SLOState {
|
|
|
334
334
|
*/
|
|
335
335
|
queries?: pulumi.Input<pulumi.Input<inputs.slo.SLOQuery>[]>;
|
|
336
336
|
/**
|
|
337
|
-
* The name of a search expression in Grafana Asserts. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
|
|
337
|
+
* The name of a search expression in Grafana Asserts. Must be non-empty if set; omit the attribute entirely to leave it unset. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
|
|
338
338
|
*/
|
|
339
339
|
searchExpression?: pulumi.Input<string>;
|
|
340
340
|
/**
|
|
@@ -363,7 +363,7 @@ export interface SLOArgs {
|
|
|
363
363
|
*/
|
|
364
364
|
destinationDatasource?: pulumi.Input<inputs.slo.SLODestinationDatasource>;
|
|
365
365
|
/**
|
|
366
|
-
* UID for the SLO folder
|
|
366
|
+
* UID for the SLO folder. Must be non-empty if set; omit the attribute entirely to associate the SLO with the default Grafana SLO folder.
|
|
367
367
|
*/
|
|
368
368
|
folderUid?: pulumi.Input<string>;
|
|
369
369
|
/**
|
|
@@ -383,7 +383,7 @@ export interface SLOArgs {
|
|
|
383
383
|
*/
|
|
384
384
|
queries?: pulumi.Input<pulumi.Input<inputs.slo.SLOQuery>[]>;
|
|
385
385
|
/**
|
|
386
|
-
* The name of a search expression in Grafana Asserts. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
|
|
386
|
+
* The name of a search expression in Grafana Asserts. Must be non-empty if set; omit the attribute entirely to leave it unset. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
|
|
387
387
|
*/
|
|
388
388
|
searchExpression?: pulumi.Input<string>;
|
|
389
389
|
/**
|
package/types/input.d.ts
CHANGED
|
@@ -3435,6 +3435,10 @@ export declare namespace apps {
|
|
|
3435
3435
|
* Repository provider type: local, github, git, bitbucket, or gitlab.
|
|
3436
3436
|
*/
|
|
3437
3437
|
type: pulumi.Input<string>;
|
|
3438
|
+
/**
|
|
3439
|
+
* Webhook delivery configuration.
|
|
3440
|
+
*/
|
|
3441
|
+
webhook?: pulumi.Input<inputs.apps.v0alpha1.ProvisioningRepositorySpecWebhook>;
|
|
3438
3442
|
/**
|
|
3439
3443
|
* Allowed change workflows: write, branch.
|
|
3440
3444
|
*/
|
|
@@ -3534,6 +3538,12 @@ export declare namespace apps {
|
|
|
3534
3538
|
*/
|
|
3535
3539
|
target: pulumi.Input<string>;
|
|
3536
3540
|
}
|
|
3541
|
+
interface ProvisioningRepositorySpecWebhook {
|
|
3542
|
+
/**
|
|
3543
|
+
* Optional public webhook base URL override used when incoming webhook delivery must target a different host than the Grafana UI URL.
|
|
3544
|
+
*/
|
|
3545
|
+
baseUrl?: pulumi.Input<string>;
|
|
3546
|
+
}
|
|
3537
3547
|
}
|
|
3538
3548
|
namespace v1 {
|
|
3539
3549
|
interface PlaylistMetadata {
|
package/types/output.d.ts
CHANGED
|
@@ -3434,6 +3434,10 @@ export declare namespace apps {
|
|
|
3434
3434
|
* Repository provider type: local, github, git, bitbucket, or gitlab.
|
|
3435
3435
|
*/
|
|
3436
3436
|
type: string;
|
|
3437
|
+
/**
|
|
3438
|
+
* Webhook delivery configuration.
|
|
3439
|
+
*/
|
|
3440
|
+
webhook?: outputs.apps.v0alpha1.ProvisioningRepositorySpecWebhook;
|
|
3437
3441
|
/**
|
|
3438
3442
|
* Allowed change workflows: write, branch.
|
|
3439
3443
|
*/
|
|
@@ -3533,6 +3537,12 @@ export declare namespace apps {
|
|
|
3533
3537
|
*/
|
|
3534
3538
|
target: string;
|
|
3535
3539
|
}
|
|
3540
|
+
interface ProvisioningRepositorySpecWebhook {
|
|
3541
|
+
/**
|
|
3542
|
+
* Optional public webhook base URL override used when incoming webhook delivery must target a different host than the Grafana UI URL.
|
|
3543
|
+
*/
|
|
3544
|
+
baseUrl?: string;
|
|
3545
|
+
}
|
|
3536
3546
|
}
|
|
3537
3547
|
namespace v1 {
|
|
3538
3548
|
interface PlaylistMetadata {
|
|
@@ -6437,7 +6447,7 @@ export declare namespace slo {
|
|
|
6437
6447
|
/**
|
|
6438
6448
|
* Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
|
|
6439
6449
|
*/
|
|
6440
|
-
groupByLabels
|
|
6450
|
+
groupByLabels: string[];
|
|
6441
6451
|
/**
|
|
6442
6452
|
* Counter metric for success events (numerator)
|
|
6443
6453
|
*/
|