@pulumiverse/grafana 0.16.1 → 0.16.2
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/alerting/notificationPolicy.d.ts +1 -1
- package/alerting/notificationPolicy.js +1 -1
- package/enterprise/dataSourceConfigLbacRules.d.ts +14 -0
- package/enterprise/dataSourceConfigLbacRules.js +14 -0
- package/enterprise/dataSourceConfigLbacRules.js.map +1 -1
- package/frontendobservability/app.d.ts +8 -0
- package/frontendobservability/app.js +2 -0
- package/frontendobservability/app.js.map +1 -1
- package/frontendobservability/getApp.d.ts +4 -0
- package/frontendobservability/getApp.js.map +1 -1
- package/notificationPolicy.d.ts +1 -1
- package/notificationPolicy.js +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Sets the global notification policy for Grafana.
|
|
6
6
|
*
|
|
7
|
-
* !> This resource manages the entire notification policy tree
|
|
7
|
+
* !> This resource manages the entire notification policy tree and overwrites its policies. However, it does not overwrite internal policies created when alert rules directly set a contact point for notifications.
|
|
8
8
|
*
|
|
9
9
|
* * Official documentation
|
|
10
10
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#notification-policies)
|
|
@@ -8,7 +8,7 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Sets the global notification policy for Grafana.
|
|
10
10
|
*
|
|
11
|
-
* !> This resource manages the entire notification policy tree
|
|
11
|
+
* !> This resource manages the entire notification policy tree and overwrites its policies. However, it does not overwrite internal policies created when alert rules directly set a contact point for notifications.
|
|
12
12
|
*
|
|
13
13
|
* * Official documentation
|
|
14
14
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#notification-policies)
|
|
@@ -27,6 +27,20 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
27
27
|
* basicAuthPassword: "password",
|
|
28
28
|
* }),
|
|
29
29
|
* });
|
|
30
|
+
* const testRule = new grafana.enterprise.DataSourceConfigLbacRules("test_rule", {
|
|
31
|
+
* datasourceUid: test.uid,
|
|
32
|
+
* rules: pulumi.jsonStringify(team.teamUid.apply(teamUid => {
|
|
33
|
+
* [teamUid]: [
|
|
34
|
+
* "{ cluster = \"dev-us-central-0\", namespace = \"hosted-grafana\" }",
|
|
35
|
+
* "{ foo = \"qux\" }",
|
|
36
|
+
* ],
|
|
37
|
+
* })),
|
|
38
|
+
* }, {
|
|
39
|
+
* dependsOn: [
|
|
40
|
+
* team,
|
|
41
|
+
* test,
|
|
42
|
+
* ],
|
|
43
|
+
* });
|
|
30
44
|
* ```
|
|
31
45
|
*
|
|
32
46
|
* ## Import
|
|
@@ -33,6 +33,20 @@ const utilities = require("../utilities");
|
|
|
33
33
|
* basicAuthPassword: "password",
|
|
34
34
|
* }),
|
|
35
35
|
* });
|
|
36
|
+
* const testRule = new grafana.enterprise.DataSourceConfigLbacRules("test_rule", {
|
|
37
|
+
* datasourceUid: test.uid,
|
|
38
|
+
* rules: pulumi.jsonStringify(team.teamUid.apply(teamUid => {
|
|
39
|
+
* [teamUid]: [
|
|
40
|
+
* "{ cluster = \"dev-us-central-0\", namespace = \"hosted-grafana\" }",
|
|
41
|
+
* "{ foo = \"qux\" }",
|
|
42
|
+
* ],
|
|
43
|
+
* })),
|
|
44
|
+
* }, {
|
|
45
|
+
* dependsOn: [
|
|
46
|
+
* team,
|
|
47
|
+
* test,
|
|
48
|
+
* ],
|
|
49
|
+
* });
|
|
36
50
|
* ```
|
|
37
51
|
*
|
|
38
52
|
* ## Import
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSourceConfigLbacRules.js","sourceRoot":"","sources":["../../enterprise/dataSourceConfigLbacRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"dataSourceConfigLbacRules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AAG,EAAE;gBAC1D,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAjEL,8DAkEC;AApDG,gBAAgB;AACO,sCAAY,GAAG,wEAAwE,CAAC"}
|
|
@@ -28,6 +28,10 @@ export declare class App extends pulumi.CustomResource {
|
|
|
28
28
|
* A list of allowed origins for CORS.
|
|
29
29
|
*/
|
|
30
30
|
readonly allowedOrigins: pulumi.Output<string[]>;
|
|
31
|
+
/**
|
|
32
|
+
* The collector URL Grafana Cloud Frontend Observability. Use this endpoint to send your Telemetry.
|
|
33
|
+
*/
|
|
34
|
+
readonly collectorEndpoint: pulumi.Output<string>;
|
|
31
35
|
/**
|
|
32
36
|
* The extra attributes to append in each signal.
|
|
33
37
|
*/
|
|
@@ -59,6 +63,10 @@ export interface AppState {
|
|
|
59
63
|
* A list of allowed origins for CORS.
|
|
60
64
|
*/
|
|
61
65
|
allowedOrigins?: pulumi.Input<pulumi.Input<string>[]>;
|
|
66
|
+
/**
|
|
67
|
+
* The collector URL Grafana Cloud Frontend Observability. Use this endpoint to send your Telemetry.
|
|
68
|
+
*/
|
|
69
|
+
collectorEndpoint?: pulumi.Input<string>;
|
|
62
70
|
/**
|
|
63
71
|
* The extra attributes to append in each signal.
|
|
64
72
|
*/
|
|
@@ -43,6 +43,7 @@ class App extends pulumi.CustomResource {
|
|
|
43
43
|
if (opts.id) {
|
|
44
44
|
const state = argsOrState;
|
|
45
45
|
resourceInputs["allowedOrigins"] = state ? state.allowedOrigins : undefined;
|
|
46
|
+
resourceInputs["collectorEndpoint"] = state ? state.collectorEndpoint : undefined;
|
|
46
47
|
resourceInputs["extraLogAttributes"] = state ? state.extraLogAttributes : undefined;
|
|
47
48
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
48
49
|
resourceInputs["settings"] = state ? state.settings : undefined;
|
|
@@ -67,6 +68,7 @@ class App extends pulumi.CustomResource {
|
|
|
67
68
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
68
69
|
resourceInputs["settings"] = args ? args.settings : undefined;
|
|
69
70
|
resourceInputs["stackId"] = args ? args.stackId : undefined;
|
|
71
|
+
resourceInputs["collectorEndpoint"] = undefined /*out*/;
|
|
70
72
|
}
|
|
71
73
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
74
|
super(App.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../frontendobservability/app.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1D,CAA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AG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AAzFL,kBA0FC;AA5EG,gBAAgB;AACO,gBAAY,GAAG,uCAAuC,CAAC"}
|
|
@@ -18,6 +18,10 @@ export interface GetAppResult {
|
|
|
18
18
|
* A list of allowed origins for CORS.
|
|
19
19
|
*/
|
|
20
20
|
readonly allowedOrigins: string[];
|
|
21
|
+
/**
|
|
22
|
+
* The collector URL Grafana Cloud Frontend Observability. Use this endpoint to send your Telemetry.
|
|
23
|
+
*/
|
|
24
|
+
readonly collectorEndpoint: string;
|
|
21
25
|
/**
|
|
22
26
|
* The extra attributes to append in each signal.
|
|
23
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getApp.js","sourceRoot":"","sources":["../../frontendobservability/getApp.ts"],"names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,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC"}
|
package/notificationPolicy.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as outputs from "./types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Sets the global notification policy for Grafana.
|
|
6
6
|
*
|
|
7
|
-
* !> This resource manages the entire notification policy tree
|
|
7
|
+
* !> This resource manages the entire notification policy tree and overwrites its policies. However, it does not overwrite internal policies created when alert rules directly set a contact point for notifications.
|
|
8
8
|
*
|
|
9
9
|
* * Official documentation
|
|
10
10
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#notification-policies)
|
package/notificationPolicy.js
CHANGED
|
@@ -8,7 +8,7 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Sets the global notification policy for Grafana.
|
|
10
10
|
*
|
|
11
|
-
* !> This resource manages the entire notification policy tree
|
|
11
|
+
* !> This resource manages the entire notification policy tree and overwrites its policies. However, it does not overwrite internal policies created when alert rules directly set a contact point for notifications.
|
|
12
12
|
*
|
|
13
13
|
* * Official documentation
|
|
14
14
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#notification-policies)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/grafana",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
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": "0.16.
|
|
27
|
+
"version": "0.16.2",
|
|
28
28
|
"server": "github://api.github.com/pulumiverse"
|
|
29
29
|
}
|
|
30
30
|
}
|