@pulumiverse/grafana 2.17.0 → 2.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/alerting/alertRuleV0Alpha1.d.ts +4 -0
- package/alerting/alertRuleV0Alpha1.js +4 -0
- package/alerting/alertRuleV0Alpha1.js.map +1 -1
- package/cloud/index.d.ts +3 -0
- package/cloud/index.js +6 -1
- package/cloud/index.js.map +1 -1
- package/cloud/stackServiceAccountRotatingToken.d.ts +163 -0
- package/cloud/stackServiceAccountRotatingToken.js +119 -0
- package/cloud/stackServiceAccountRotatingToken.js.map +1 -0
- package/cloud/stackServiceAccountToken.d.ts +46 -0
- package/cloud/stackServiceAccountToken.js +1 -0
- package/cloud/stackServiceAccountToken.js.map +1 -1
- package/cloudprovider/azureCredential.d.ts +49 -0
- package/cloudprovider/azureCredential.js +49 -0
- package/cloudprovider/azureCredential.js.map +1 -1
- package/cloudprovider/getAzureCredential.d.ts +106 -0
- package/cloudprovider/getAzureCredential.js +106 -0
- package/cloudprovider/getAzureCredential.js.map +1 -1
- package/fleetmanagement/collector.d.ts +14 -0
- package/fleetmanagement/collector.js +14 -0
- package/fleetmanagement/collector.js.map +1 -1
- package/fleetmanagement/pipeline.d.ts +20 -0
- package/fleetmanagement/pipeline.js +20 -0
- package/fleetmanagement/pipeline.js.map +1 -1
- package/oss/getLibraryPanel.d.ts +136 -0
- package/oss/getLibraryPanel.js +136 -0
- package/oss/getLibraryPanel.js.map +1 -1
- package/oss/index.d.ts +3 -0
- package/oss/index.js +6 -1
- package/oss/index.js.map +1 -1
- package/oss/serviceAccountRotatingToken.d.ts +152 -0
- package/oss/serviceAccountRotatingToken.js +106 -0
- package/oss/serviceAccountRotatingToken.js.map +1 -0
- package/package.json +2 -2
- package/types/input.d.ts +60 -2
- package/types/output.d.ts +60 -2
|
@@ -3,6 +3,59 @@ import * as inputs from "../types/input";
|
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
5
|
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
10
|
+
*
|
|
11
|
+
* const testAzureCredential = new grafana.cloudprovider.AzureCredential("test", {
|
|
12
|
+
* stackId: "1",
|
|
13
|
+
* name: "test-name",
|
|
14
|
+
* clientId: "my-client-id",
|
|
15
|
+
* clientSecret: "my-client-secret",
|
|
16
|
+
* tenantId: "my-tenant-id",
|
|
17
|
+
* resourceTagsToAddToMetrics: [
|
|
18
|
+
* "tag1",
|
|
19
|
+
* "tag2",
|
|
20
|
+
* ],
|
|
21
|
+
* resourceDiscoveryTagFilters: [
|
|
22
|
+
* {
|
|
23
|
+
* key: "key-1",
|
|
24
|
+
* value: "value-1",
|
|
25
|
+
* },
|
|
26
|
+
* {
|
|
27
|
+
* key: "key-2",
|
|
28
|
+
* value: "value-2",
|
|
29
|
+
* },
|
|
30
|
+
* ],
|
|
31
|
+
* autoDiscoveryConfigurations: [{
|
|
32
|
+
* subscriptionId: "my-subscription_id",
|
|
33
|
+
* resourceTypeConfigurations: [
|
|
34
|
+
* {
|
|
35
|
+
* resourceTypeName: "Microsoft.App/containerApps",
|
|
36
|
+
* metricConfiguration: [{
|
|
37
|
+
* name: "TotalCoresQuotaUsed",
|
|
38
|
+
* }],
|
|
39
|
+
* },
|
|
40
|
+
* {
|
|
41
|
+
* resourceTypeName: "Microsoft.Storage/storageAccounts/tableServices",
|
|
42
|
+
* metricConfiguration: [{
|
|
43
|
+
* name: "Availability",
|
|
44
|
+
* dimensions: [
|
|
45
|
+
* "GeoType",
|
|
46
|
+
* "ApiName",
|
|
47
|
+
* ],
|
|
48
|
+
* aggregations: ["Average"],
|
|
49
|
+
* }],
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* }],
|
|
53
|
+
* });
|
|
54
|
+
* const test = grafana.cloudProvider.getAzureCredentialOutput({
|
|
55
|
+
* stackId: testAzureCredential.stackId,
|
|
56
|
+
* resourceId: testAzureCredential.resourceId,
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
6
59
|
*/
|
|
7
60
|
export declare function getAzureCredential(args: GetAzureCredentialArgs, opts?: pulumi.InvokeOptions): Promise<GetAzureCredentialResult>;
|
|
8
61
|
/**
|
|
@@ -64,6 +117,59 @@ export interface GetAzureCredentialResult {
|
|
|
64
117
|
}
|
|
65
118
|
/**
|
|
66
119
|
* ## Example Usage
|
|
120
|
+
*
|
|
121
|
+
* ```typescript
|
|
122
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
123
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
124
|
+
*
|
|
125
|
+
* const testAzureCredential = new grafana.cloudprovider.AzureCredential("test", {
|
|
126
|
+
* stackId: "1",
|
|
127
|
+
* name: "test-name",
|
|
128
|
+
* clientId: "my-client-id",
|
|
129
|
+
* clientSecret: "my-client-secret",
|
|
130
|
+
* tenantId: "my-tenant-id",
|
|
131
|
+
* resourceTagsToAddToMetrics: [
|
|
132
|
+
* "tag1",
|
|
133
|
+
* "tag2",
|
|
134
|
+
* ],
|
|
135
|
+
* resourceDiscoveryTagFilters: [
|
|
136
|
+
* {
|
|
137
|
+
* key: "key-1",
|
|
138
|
+
* value: "value-1",
|
|
139
|
+
* },
|
|
140
|
+
* {
|
|
141
|
+
* key: "key-2",
|
|
142
|
+
* value: "value-2",
|
|
143
|
+
* },
|
|
144
|
+
* ],
|
|
145
|
+
* autoDiscoveryConfigurations: [{
|
|
146
|
+
* subscriptionId: "my-subscription_id",
|
|
147
|
+
* resourceTypeConfigurations: [
|
|
148
|
+
* {
|
|
149
|
+
* resourceTypeName: "Microsoft.App/containerApps",
|
|
150
|
+
* metricConfiguration: [{
|
|
151
|
+
* name: "TotalCoresQuotaUsed",
|
|
152
|
+
* }],
|
|
153
|
+
* },
|
|
154
|
+
* {
|
|
155
|
+
* resourceTypeName: "Microsoft.Storage/storageAccounts/tableServices",
|
|
156
|
+
* metricConfiguration: [{
|
|
157
|
+
* name: "Availability",
|
|
158
|
+
* dimensions: [
|
|
159
|
+
* "GeoType",
|
|
160
|
+
* "ApiName",
|
|
161
|
+
* ],
|
|
162
|
+
* aggregations: ["Average"],
|
|
163
|
+
* }],
|
|
164
|
+
* },
|
|
165
|
+
* ],
|
|
166
|
+
* }],
|
|
167
|
+
* });
|
|
168
|
+
* const test = grafana.cloudProvider.getAzureCredentialOutput({
|
|
169
|
+
* stackId: testAzureCredential.stackId,
|
|
170
|
+
* resourceId: testAzureCredential.resourceId,
|
|
171
|
+
* });
|
|
172
|
+
* ```
|
|
67
173
|
*/
|
|
68
174
|
export declare function getAzureCredentialOutput(args: GetAzureCredentialOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAzureCredentialResult>;
|
|
69
175
|
/**
|
|
@@ -7,6 +7,59 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
14
|
+
*
|
|
15
|
+
* const testAzureCredential = new grafana.cloudprovider.AzureCredential("test", {
|
|
16
|
+
* stackId: "1",
|
|
17
|
+
* name: "test-name",
|
|
18
|
+
* clientId: "my-client-id",
|
|
19
|
+
* clientSecret: "my-client-secret",
|
|
20
|
+
* tenantId: "my-tenant-id",
|
|
21
|
+
* resourceTagsToAddToMetrics: [
|
|
22
|
+
* "tag1",
|
|
23
|
+
* "tag2",
|
|
24
|
+
* ],
|
|
25
|
+
* resourceDiscoveryTagFilters: [
|
|
26
|
+
* {
|
|
27
|
+
* key: "key-1",
|
|
28
|
+
* value: "value-1",
|
|
29
|
+
* },
|
|
30
|
+
* {
|
|
31
|
+
* key: "key-2",
|
|
32
|
+
* value: "value-2",
|
|
33
|
+
* },
|
|
34
|
+
* ],
|
|
35
|
+
* autoDiscoveryConfigurations: [{
|
|
36
|
+
* subscriptionId: "my-subscription_id",
|
|
37
|
+
* resourceTypeConfigurations: [
|
|
38
|
+
* {
|
|
39
|
+
* resourceTypeName: "Microsoft.App/containerApps",
|
|
40
|
+
* metricConfiguration: [{
|
|
41
|
+
* name: "TotalCoresQuotaUsed",
|
|
42
|
+
* }],
|
|
43
|
+
* },
|
|
44
|
+
* {
|
|
45
|
+
* resourceTypeName: "Microsoft.Storage/storageAccounts/tableServices",
|
|
46
|
+
* metricConfiguration: [{
|
|
47
|
+
* name: "Availability",
|
|
48
|
+
* dimensions: [
|
|
49
|
+
* "GeoType",
|
|
50
|
+
* "ApiName",
|
|
51
|
+
* ],
|
|
52
|
+
* aggregations: ["Average"],
|
|
53
|
+
* }],
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* }],
|
|
57
|
+
* });
|
|
58
|
+
* const test = grafana.cloudProvider.getAzureCredentialOutput({
|
|
59
|
+
* stackId: testAzureCredential.stackId,
|
|
60
|
+
* resourceId: testAzureCredential.resourceId,
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
10
63
|
*/
|
|
11
64
|
function getAzureCredential(args, opts) {
|
|
12
65
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -20,6 +73,59 @@ function getAzureCredential(args, opts) {
|
|
|
20
73
|
exports.getAzureCredential = getAzureCredential;
|
|
21
74
|
/**
|
|
22
75
|
* ## Example Usage
|
|
76
|
+
*
|
|
77
|
+
* ```typescript
|
|
78
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
79
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
80
|
+
*
|
|
81
|
+
* const testAzureCredential = new grafana.cloudprovider.AzureCredential("test", {
|
|
82
|
+
* stackId: "1",
|
|
83
|
+
* name: "test-name",
|
|
84
|
+
* clientId: "my-client-id",
|
|
85
|
+
* clientSecret: "my-client-secret",
|
|
86
|
+
* tenantId: "my-tenant-id",
|
|
87
|
+
* resourceTagsToAddToMetrics: [
|
|
88
|
+
* "tag1",
|
|
89
|
+
* "tag2",
|
|
90
|
+
* ],
|
|
91
|
+
* resourceDiscoveryTagFilters: [
|
|
92
|
+
* {
|
|
93
|
+
* key: "key-1",
|
|
94
|
+
* value: "value-1",
|
|
95
|
+
* },
|
|
96
|
+
* {
|
|
97
|
+
* key: "key-2",
|
|
98
|
+
* value: "value-2",
|
|
99
|
+
* },
|
|
100
|
+
* ],
|
|
101
|
+
* autoDiscoveryConfigurations: [{
|
|
102
|
+
* subscriptionId: "my-subscription_id",
|
|
103
|
+
* resourceTypeConfigurations: [
|
|
104
|
+
* {
|
|
105
|
+
* resourceTypeName: "Microsoft.App/containerApps",
|
|
106
|
+
* metricConfiguration: [{
|
|
107
|
+
* name: "TotalCoresQuotaUsed",
|
|
108
|
+
* }],
|
|
109
|
+
* },
|
|
110
|
+
* {
|
|
111
|
+
* resourceTypeName: "Microsoft.Storage/storageAccounts/tableServices",
|
|
112
|
+
* metricConfiguration: [{
|
|
113
|
+
* name: "Availability",
|
|
114
|
+
* dimensions: [
|
|
115
|
+
* "GeoType",
|
|
116
|
+
* "ApiName",
|
|
117
|
+
* ],
|
|
118
|
+
* aggregations: ["Average"],
|
|
119
|
+
* }],
|
|
120
|
+
* },
|
|
121
|
+
* ],
|
|
122
|
+
* }],
|
|
123
|
+
* });
|
|
124
|
+
* const test = grafana.cloudProvider.getAzureCredentialOutput({
|
|
125
|
+
* stackId: testAzureCredential.stackId,
|
|
126
|
+
* resourceId: testAzureCredential.resourceId,
|
|
127
|
+
* });
|
|
128
|
+
* ```
|
|
23
129
|
*/
|
|
24
130
|
function getAzureCredentialOutput(args, opts) {
|
|
25
131
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAzureCredential.js","sourceRoot":"","sources":["../../cloudprovider/getAzureCredential.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getAzureCredential.js","sourceRoot":"","sources":["../../cloudprovider/getAzureCredential.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6DAA6D,EAAE;QACxF,6BAA6B,EAAE,IAAI,CAAC,2BAA2B;QAC/D,6BAA6B,EAAE,IAAI,CAAC,2BAA2B;QAC/D,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC;AA4DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAAiC;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6DAA6D,EAAE;QAC9F,6BAA6B,EAAE,IAAI,CAAC,2BAA2B;QAC/D,6BAA6B,EAAE,IAAI,CAAC,2BAA2B;QAC/D,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4DAQC"}
|
|
@@ -12,6 +12,20 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
18
|
+
*
|
|
19
|
+
* const test = new grafana.fleetmanagement.Collector("test", {
|
|
20
|
+
* id: "my_collector",
|
|
21
|
+
* remoteAttributes: {
|
|
22
|
+
* env: "PROD",
|
|
23
|
+
* owner: "TEAM-A",
|
|
24
|
+
* },
|
|
25
|
+
* enabled: true,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
15
29
|
* ## Import
|
|
16
30
|
*
|
|
17
31
|
* ```sh
|
|
@@ -18,6 +18,20 @@ const utilities = require("../utilities");
|
|
|
18
18
|
*
|
|
19
19
|
* ## Example Usage
|
|
20
20
|
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
24
|
+
*
|
|
25
|
+
* const test = new grafana.fleetmanagement.Collector("test", {
|
|
26
|
+
* id: "my_collector",
|
|
27
|
+
* remoteAttributes: {
|
|
28
|
+
* env: "PROD",
|
|
29
|
+
* owner: "TEAM-A",
|
|
30
|
+
* },
|
|
31
|
+
* enabled: true,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
21
35
|
* ## Import
|
|
22
36
|
*
|
|
23
37
|
* ```sh
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collector.js","sourceRoot":"","sources":["../../fleetmanagement/collector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"collector.js","sourceRoot":"","sources":["../../fleetmanagement/collector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,gBAAgB,CAAC;SAChE;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA3DL,8BA4DC;AA9CG,gBAAgB;AACO,sBAAY,GAAG,6CAA6C,CAAC"}
|
|
@@ -10,6 +10,26 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
* * fleet-management:read
|
|
11
11
|
* * fleet-management:write
|
|
12
12
|
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
18
|
+
* import * as std from "@pulumi/std";
|
|
19
|
+
*
|
|
20
|
+
* const test = new grafana.fleetmanagement.Pipeline("test", {
|
|
21
|
+
* name: "my_pipeline",
|
|
22
|
+
* contents: std.index.file({
|
|
23
|
+
* input: "config.alloy",
|
|
24
|
+
* }).result,
|
|
25
|
+
* matchers: [
|
|
26
|
+
* "collector.os=~\".*\"",
|
|
27
|
+
* "env=\"PROD\"",
|
|
28
|
+
* ],
|
|
29
|
+
* enabled: true,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
13
33
|
* ## Import
|
|
14
34
|
*
|
|
15
35
|
* ```sh
|
|
@@ -16,6 +16,26 @@ const utilities = require("../utilities");
|
|
|
16
16
|
* * fleet-management:read
|
|
17
17
|
* * fleet-management:write
|
|
18
18
|
*
|
|
19
|
+
* ## Example Usage
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
24
|
+
* import * as std from "@pulumi/std";
|
|
25
|
+
*
|
|
26
|
+
* const test = new grafana.fleetmanagement.Pipeline("test", {
|
|
27
|
+
* name: "my_pipeline",
|
|
28
|
+
* contents: std.index.file({
|
|
29
|
+
* input: "config.alloy",
|
|
30
|
+
* }).result,
|
|
31
|
+
* matchers: [
|
|
32
|
+
* "collector.os=~\".*\"",
|
|
33
|
+
* "env=\"PROD\"",
|
|
34
|
+
* ],
|
|
35
|
+
* enabled: true,
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
19
39
|
* ## Import
|
|
20
40
|
*
|
|
21
41
|
* ```sh
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;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;IA2BD,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,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;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;;AA1EL,4BA2EC;AA7DG,gBAAgB;AACO,qBAAY,GAAG,2CAA2C,CAAC"}
|
package/oss/getLibraryPanel.d.ts
CHANGED
|
@@ -1,6 +1,74 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
3
|
* Data source for retrieving a single library panel by name or uid.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
10
|
+
* import * as std from "@pulumi/std";
|
|
11
|
+
*
|
|
12
|
+
* // create a minimal library panel inside the General folder
|
|
13
|
+
* const test = new grafana.oss.LibraryPanel("test", {
|
|
14
|
+
* name: "test name",
|
|
15
|
+
* modelJson: JSON.stringify({
|
|
16
|
+
* title: "test name",
|
|
17
|
+
* type: "text",
|
|
18
|
+
* version: 0,
|
|
19
|
+
* }),
|
|
20
|
+
* });
|
|
21
|
+
* const fromName = grafana.oss.getLibraryPanelOutput({
|
|
22
|
+
* name: test.name,
|
|
23
|
+
* });
|
|
24
|
+
* const fromUid = grafana.oss.getLibraryPanelOutput({
|
|
25
|
+
* uid: test.uid,
|
|
26
|
+
* });
|
|
27
|
+
* // create library panels to be added to a dashboard
|
|
28
|
+
* const dashboard = new grafana.oss.LibraryPanel("dashboard", {
|
|
29
|
+
* name: "panel",
|
|
30
|
+
* modelJson: JSON.stringify({
|
|
31
|
+
* gridPos: {
|
|
32
|
+
* x: 0,
|
|
33
|
+
* y: 0,
|
|
34
|
+
* h: 10,
|
|
35
|
+
* w: 10,
|
|
36
|
+
* },
|
|
37
|
+
* title: "panel",
|
|
38
|
+
* type: "text",
|
|
39
|
+
* version: 0,
|
|
40
|
+
* }),
|
|
41
|
+
* });
|
|
42
|
+
* // create a dashboard using the library panel
|
|
43
|
+
* // `merge()` will add `libraryPanel` attribute to each library panel JSON
|
|
44
|
+
* // Grafana will then connect any library panels found in dashboard JSON
|
|
45
|
+
* const withLibraryPanel = new grafana.oss.Dashboard("with_library_panel", {configJson: JSON.stringify({
|
|
46
|
+
* id: 12345,
|
|
47
|
+
* panels: [std.index.merge({
|
|
48
|
+
* input: [
|
|
49
|
+
* std.index.jsondecode({
|
|
50
|
+
* input: dashboard.modelJson,
|
|
51
|
+
* }).result,
|
|
52
|
+
* {
|
|
53
|
+
* libraryPanel: {
|
|
54
|
+
* name: dashboard.name,
|
|
55
|
+
* uid: dashboard.uid,
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* }).result],
|
|
60
|
+
* title: "Production Overview",
|
|
61
|
+
* tags: ["templated"],
|
|
62
|
+
* timezone: "browser",
|
|
63
|
+
* schemaVersion: 16,
|
|
64
|
+
* version: 0,
|
|
65
|
+
* refresh: "25s",
|
|
66
|
+
* })});
|
|
67
|
+
* // dashboard_ids list attribute should contain dashboard id 12345
|
|
68
|
+
* const connectedToDashboard = grafana.oss.getLibraryPanelOutput({
|
|
69
|
+
* uid: dashboard.uid,
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
4
72
|
*/
|
|
5
73
|
export declare function getLibraryPanel(args?: GetLibraryPanelArgs, opts?: pulumi.InvokeOptions): Promise<GetLibraryPanelResult>;
|
|
6
74
|
/**
|
|
@@ -83,6 +151,74 @@ export interface GetLibraryPanelResult {
|
|
|
83
151
|
}
|
|
84
152
|
/**
|
|
85
153
|
* Data source for retrieving a single library panel by name or uid.
|
|
154
|
+
*
|
|
155
|
+
* ## Example Usage
|
|
156
|
+
*
|
|
157
|
+
* ```typescript
|
|
158
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
159
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
160
|
+
* import * as std from "@pulumi/std";
|
|
161
|
+
*
|
|
162
|
+
* // create a minimal library panel inside the General folder
|
|
163
|
+
* const test = new grafana.oss.LibraryPanel("test", {
|
|
164
|
+
* name: "test name",
|
|
165
|
+
* modelJson: JSON.stringify({
|
|
166
|
+
* title: "test name",
|
|
167
|
+
* type: "text",
|
|
168
|
+
* version: 0,
|
|
169
|
+
* }),
|
|
170
|
+
* });
|
|
171
|
+
* const fromName = grafana.oss.getLibraryPanelOutput({
|
|
172
|
+
* name: test.name,
|
|
173
|
+
* });
|
|
174
|
+
* const fromUid = grafana.oss.getLibraryPanelOutput({
|
|
175
|
+
* uid: test.uid,
|
|
176
|
+
* });
|
|
177
|
+
* // create library panels to be added to a dashboard
|
|
178
|
+
* const dashboard = new grafana.oss.LibraryPanel("dashboard", {
|
|
179
|
+
* name: "panel",
|
|
180
|
+
* modelJson: JSON.stringify({
|
|
181
|
+
* gridPos: {
|
|
182
|
+
* x: 0,
|
|
183
|
+
* y: 0,
|
|
184
|
+
* h: 10,
|
|
185
|
+
* w: 10,
|
|
186
|
+
* },
|
|
187
|
+
* title: "panel",
|
|
188
|
+
* type: "text",
|
|
189
|
+
* version: 0,
|
|
190
|
+
* }),
|
|
191
|
+
* });
|
|
192
|
+
* // create a dashboard using the library panel
|
|
193
|
+
* // `merge()` will add `libraryPanel` attribute to each library panel JSON
|
|
194
|
+
* // Grafana will then connect any library panels found in dashboard JSON
|
|
195
|
+
* const withLibraryPanel = new grafana.oss.Dashboard("with_library_panel", {configJson: JSON.stringify({
|
|
196
|
+
* id: 12345,
|
|
197
|
+
* panels: [std.index.merge({
|
|
198
|
+
* input: [
|
|
199
|
+
* std.index.jsondecode({
|
|
200
|
+
* input: dashboard.modelJson,
|
|
201
|
+
* }).result,
|
|
202
|
+
* {
|
|
203
|
+
* libraryPanel: {
|
|
204
|
+
* name: dashboard.name,
|
|
205
|
+
* uid: dashboard.uid,
|
|
206
|
+
* },
|
|
207
|
+
* },
|
|
208
|
+
* ],
|
|
209
|
+
* }).result],
|
|
210
|
+
* title: "Production Overview",
|
|
211
|
+
* tags: ["templated"],
|
|
212
|
+
* timezone: "browser",
|
|
213
|
+
* schemaVersion: 16,
|
|
214
|
+
* version: 0,
|
|
215
|
+
* refresh: "25s",
|
|
216
|
+
* })});
|
|
217
|
+
* // dashboard_ids list attribute should contain dashboard id 12345
|
|
218
|
+
* const connectedToDashboard = grafana.oss.getLibraryPanelOutput({
|
|
219
|
+
* uid: dashboard.uid,
|
|
220
|
+
* });
|
|
221
|
+
* ```
|
|
86
222
|
*/
|
|
87
223
|
export declare function getLibraryPanelOutput(args?: GetLibraryPanelOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLibraryPanelResult>;
|
|
88
224
|
/**
|
package/oss/getLibraryPanel.js
CHANGED
|
@@ -7,6 +7,74 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Data source for retrieving a single library panel by name or uid.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
16
|
+
* import * as std from "@pulumi/std";
|
|
17
|
+
*
|
|
18
|
+
* // create a minimal library panel inside the General folder
|
|
19
|
+
* const test = new grafana.oss.LibraryPanel("test", {
|
|
20
|
+
* name: "test name",
|
|
21
|
+
* modelJson: JSON.stringify({
|
|
22
|
+
* title: "test name",
|
|
23
|
+
* type: "text",
|
|
24
|
+
* version: 0,
|
|
25
|
+
* }),
|
|
26
|
+
* });
|
|
27
|
+
* const fromName = grafana.oss.getLibraryPanelOutput({
|
|
28
|
+
* name: test.name,
|
|
29
|
+
* });
|
|
30
|
+
* const fromUid = grafana.oss.getLibraryPanelOutput({
|
|
31
|
+
* uid: test.uid,
|
|
32
|
+
* });
|
|
33
|
+
* // create library panels to be added to a dashboard
|
|
34
|
+
* const dashboard = new grafana.oss.LibraryPanel("dashboard", {
|
|
35
|
+
* name: "panel",
|
|
36
|
+
* modelJson: JSON.stringify({
|
|
37
|
+
* gridPos: {
|
|
38
|
+
* x: 0,
|
|
39
|
+
* y: 0,
|
|
40
|
+
* h: 10,
|
|
41
|
+
* w: 10,
|
|
42
|
+
* },
|
|
43
|
+
* title: "panel",
|
|
44
|
+
* type: "text",
|
|
45
|
+
* version: 0,
|
|
46
|
+
* }),
|
|
47
|
+
* });
|
|
48
|
+
* // create a dashboard using the library panel
|
|
49
|
+
* // `merge()` will add `libraryPanel` attribute to each library panel JSON
|
|
50
|
+
* // Grafana will then connect any library panels found in dashboard JSON
|
|
51
|
+
* const withLibraryPanel = new grafana.oss.Dashboard("with_library_panel", {configJson: JSON.stringify({
|
|
52
|
+
* id: 12345,
|
|
53
|
+
* panels: [std.index.merge({
|
|
54
|
+
* input: [
|
|
55
|
+
* std.index.jsondecode({
|
|
56
|
+
* input: dashboard.modelJson,
|
|
57
|
+
* }).result,
|
|
58
|
+
* {
|
|
59
|
+
* libraryPanel: {
|
|
60
|
+
* name: dashboard.name,
|
|
61
|
+
* uid: dashboard.uid,
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* }).result],
|
|
66
|
+
* title: "Production Overview",
|
|
67
|
+
* tags: ["templated"],
|
|
68
|
+
* timezone: "browser",
|
|
69
|
+
* schemaVersion: 16,
|
|
70
|
+
* version: 0,
|
|
71
|
+
* refresh: "25s",
|
|
72
|
+
* })});
|
|
73
|
+
* // dashboard_ids list attribute should contain dashboard id 12345
|
|
74
|
+
* const connectedToDashboard = grafana.oss.getLibraryPanelOutput({
|
|
75
|
+
* uid: dashboard.uid,
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
10
78
|
*/
|
|
11
79
|
function getLibraryPanel(args, opts) {
|
|
12
80
|
args = args || {};
|
|
@@ -20,6 +88,74 @@ function getLibraryPanel(args, opts) {
|
|
|
20
88
|
exports.getLibraryPanel = getLibraryPanel;
|
|
21
89
|
/**
|
|
22
90
|
* Data source for retrieving a single library panel by name or uid.
|
|
91
|
+
*
|
|
92
|
+
* ## Example Usage
|
|
93
|
+
*
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
96
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
97
|
+
* import * as std from "@pulumi/std";
|
|
98
|
+
*
|
|
99
|
+
* // create a minimal library panel inside the General folder
|
|
100
|
+
* const test = new grafana.oss.LibraryPanel("test", {
|
|
101
|
+
* name: "test name",
|
|
102
|
+
* modelJson: JSON.stringify({
|
|
103
|
+
* title: "test name",
|
|
104
|
+
* type: "text",
|
|
105
|
+
* version: 0,
|
|
106
|
+
* }),
|
|
107
|
+
* });
|
|
108
|
+
* const fromName = grafana.oss.getLibraryPanelOutput({
|
|
109
|
+
* name: test.name,
|
|
110
|
+
* });
|
|
111
|
+
* const fromUid = grafana.oss.getLibraryPanelOutput({
|
|
112
|
+
* uid: test.uid,
|
|
113
|
+
* });
|
|
114
|
+
* // create library panels to be added to a dashboard
|
|
115
|
+
* const dashboard = new grafana.oss.LibraryPanel("dashboard", {
|
|
116
|
+
* name: "panel",
|
|
117
|
+
* modelJson: JSON.stringify({
|
|
118
|
+
* gridPos: {
|
|
119
|
+
* x: 0,
|
|
120
|
+
* y: 0,
|
|
121
|
+
* h: 10,
|
|
122
|
+
* w: 10,
|
|
123
|
+
* },
|
|
124
|
+
* title: "panel",
|
|
125
|
+
* type: "text",
|
|
126
|
+
* version: 0,
|
|
127
|
+
* }),
|
|
128
|
+
* });
|
|
129
|
+
* // create a dashboard using the library panel
|
|
130
|
+
* // `merge()` will add `libraryPanel` attribute to each library panel JSON
|
|
131
|
+
* // Grafana will then connect any library panels found in dashboard JSON
|
|
132
|
+
* const withLibraryPanel = new grafana.oss.Dashboard("with_library_panel", {configJson: JSON.stringify({
|
|
133
|
+
* id: 12345,
|
|
134
|
+
* panels: [std.index.merge({
|
|
135
|
+
* input: [
|
|
136
|
+
* std.index.jsondecode({
|
|
137
|
+
* input: dashboard.modelJson,
|
|
138
|
+
* }).result,
|
|
139
|
+
* {
|
|
140
|
+
* libraryPanel: {
|
|
141
|
+
* name: dashboard.name,
|
|
142
|
+
* uid: dashboard.uid,
|
|
143
|
+
* },
|
|
144
|
+
* },
|
|
145
|
+
* ],
|
|
146
|
+
* }).result],
|
|
147
|
+
* title: "Production Overview",
|
|
148
|
+
* tags: ["templated"],
|
|
149
|
+
* timezone: "browser",
|
|
150
|
+
* schemaVersion: 16,
|
|
151
|
+
* version: 0,
|
|
152
|
+
* refresh: "25s",
|
|
153
|
+
* })});
|
|
154
|
+
* // dashboard_ids list attribute should contain dashboard id 12345
|
|
155
|
+
* const connectedToDashboard = grafana.oss.getLibraryPanelOutput({
|
|
156
|
+
* uid: dashboard.uid,
|
|
157
|
+
* });
|
|
158
|
+
* ```
|
|
23
159
|
*/
|
|
24
160
|
function getLibraryPanelOutput(args, opts) {
|
|
25
161
|
args = args || {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLibraryPanel.js","sourceRoot":"","sources":["../../oss/getLibraryPanel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getLibraryPanel.js","sourceRoot":"","sources":["../../oss/getLibraryPanel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6CAA6C,EAAE;QACxE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0CAQC;AAiFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAAiC;IACrG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6CAA6C,EAAE;QAC9E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC"}
|
package/oss/index.d.ts
CHANGED
|
@@ -91,6 +91,9 @@ export declare const ServiceAccountPermission: typeof import("./serviceAccountPe
|
|
|
91
91
|
export { ServiceAccountPermissionItemArgs, ServiceAccountPermissionItemState } from "./serviceAccountPermissionItem";
|
|
92
92
|
export type ServiceAccountPermissionItem = import("./serviceAccountPermissionItem").ServiceAccountPermissionItem;
|
|
93
93
|
export declare const ServiceAccountPermissionItem: typeof import("./serviceAccountPermissionItem").ServiceAccountPermissionItem;
|
|
94
|
+
export { ServiceAccountRotatingTokenArgs, ServiceAccountRotatingTokenState } from "./serviceAccountRotatingToken";
|
|
95
|
+
export type ServiceAccountRotatingToken = import("./serviceAccountRotatingToken").ServiceAccountRotatingToken;
|
|
96
|
+
export declare const ServiceAccountRotatingToken: typeof import("./serviceAccountRotatingToken").ServiceAccountRotatingToken;
|
|
94
97
|
export { ServiceAccountTokenArgs, ServiceAccountTokenState } from "./serviceAccountToken";
|
|
95
98
|
export type ServiceAccountToken = import("./serviceAccountToken").ServiceAccountToken;
|
|
96
99
|
export declare const ServiceAccountToken: typeof import("./serviceAccountToken").ServiceAccountToken;
|