@pulumi/signalfx 7.20.0-alpha.1762844344 → 7.20.0-alpha.1763189884
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/eventFeedChart.d.ts +15 -0
- package/eventFeedChart.js +15 -0
- package/eventFeedChart.js.map +1 -1
- package/gcp/integration.d.ts +31 -0
- package/gcp/integration.js +31 -0
- package/gcp/integration.js.map +1 -1
- package/getDimensionValues.d.ts +78 -0
- package/getDimensionValues.js +78 -0
- package/getDimensionValues.js.map +1 -1
- package/package.json +2 -2
package/eventFeedChart.d.ts
CHANGED
|
@@ -3,6 +3,21 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* Displays a listing of events as a widget in a dashboard.
|
|
4
4
|
*
|
|
5
5
|
* ## Example
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as signalfx from "@pulumi/signalfx";
|
|
10
|
+
*
|
|
11
|
+
* const mynote0 = new signalfx.EventFeedChart("mynote0", {
|
|
12
|
+
* name: "Important Dashboard Note",
|
|
13
|
+
* description: "Lorem ipsum dolor sit amet",
|
|
14
|
+
* programText: "A = events(eventType='My Event Type').publish(label='A')",
|
|
15
|
+
* vizOptions: [{
|
|
16
|
+
* label: "A",
|
|
17
|
+
* color: "orange",
|
|
18
|
+
* }],
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
6
21
|
*/
|
|
7
22
|
export declare class EventFeedChart extends pulumi.CustomResource {
|
|
8
23
|
/**
|
package/eventFeedChart.js
CHANGED
|
@@ -9,6 +9,21 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Displays a listing of events as a widget in a dashboard.
|
|
10
10
|
*
|
|
11
11
|
* ## Example
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as signalfx from "@pulumi/signalfx";
|
|
16
|
+
*
|
|
17
|
+
* const mynote0 = new signalfx.EventFeedChart("mynote0", {
|
|
18
|
+
* name: "Important Dashboard Note",
|
|
19
|
+
* description: "Lorem ipsum dolor sit amet",
|
|
20
|
+
* programText: "A = events(eventType='My Event Type').publish(label='A')",
|
|
21
|
+
* vizOptions: [{
|
|
22
|
+
* label: "A",
|
|
23
|
+
* color: "orange",
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
12
27
|
*/
|
|
13
28
|
class EventFeedChart extends pulumi.CustomResource {
|
|
14
29
|
/**
|
package/eventFeedChart.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventFeedChart.js","sourceRoot":"","sources":["../eventFeedChart.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"eventFeedChart.js","sourceRoot":"","sources":["../eventFeedChart.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IA2CD,YAAY,IAAY,EA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AW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAlGL,wCAmGC;AArFG,gBAAgB;AACO,2BAAY,GAAG,8CAA8C,CAAC"}
|
package/gcp/integration.d.ts
CHANGED
|
@@ -5,6 +5,37 @@ import * as outputs from "../types/output";
|
|
|
5
5
|
* Splunk Observability Cloud GCP Integration.
|
|
6
6
|
*
|
|
7
7
|
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the Splunk Observability Cloud provider. See [Operations that require a session token for an administrator](https://dev.splunk.com/observability/docs/administration/authtokens#Operations-that-require-a-session-token-for-an-administrator). Otherwise you'll receive a 4xx error.
|
|
8
|
+
*
|
|
9
|
+
* ## Example
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as signalfx from "@pulumi/signalfx";
|
|
14
|
+
* import * as std from "@pulumi/std";
|
|
15
|
+
*
|
|
16
|
+
* const gcpMyteam = new signalfx.gcp.Integration("gcp_myteam", {
|
|
17
|
+
* name: "GCP - My Team",
|
|
18
|
+
* enabled: true,
|
|
19
|
+
* pollRate: 300,
|
|
20
|
+
* services: ["compute"],
|
|
21
|
+
* customMetricTypeDomains: ["istio.io"],
|
|
22
|
+
* importGcpMetrics: true,
|
|
23
|
+
* projectServiceKeys: [
|
|
24
|
+
* {
|
|
25
|
+
* projectId: "gcp_project_id_1",
|
|
26
|
+
* projectKey: std.index.file({
|
|
27
|
+
* input: "/path/to/gcp_credentials_1.json",
|
|
28
|
+
* }).result,
|
|
29
|
+
* },
|
|
30
|
+
* {
|
|
31
|
+
* projectId: "gcp_project_id_2",
|
|
32
|
+
* projectKey: std.index.file({
|
|
33
|
+
* input: "/path/to/gcp_credentials_2.json",
|
|
34
|
+
* }).result,
|
|
35
|
+
* },
|
|
36
|
+
* ],
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
8
39
|
*/
|
|
9
40
|
export declare class Integration extends pulumi.CustomResource {
|
|
10
41
|
/**
|
package/gcp/integration.js
CHANGED
|
@@ -9,6 +9,37 @@ const utilities = require("../utilities");
|
|
|
9
9
|
* Splunk Observability Cloud GCP Integration.
|
|
10
10
|
*
|
|
11
11
|
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the Splunk Observability Cloud provider. See [Operations that require a session token for an administrator](https://dev.splunk.com/observability/docs/administration/authtokens#Operations-that-require-a-session-token-for-an-administrator). Otherwise you'll receive a 4xx error.
|
|
12
|
+
*
|
|
13
|
+
* ## Example
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as signalfx from "@pulumi/signalfx";
|
|
18
|
+
* import * as std from "@pulumi/std";
|
|
19
|
+
*
|
|
20
|
+
* const gcpMyteam = new signalfx.gcp.Integration("gcp_myteam", {
|
|
21
|
+
* name: "GCP - My Team",
|
|
22
|
+
* enabled: true,
|
|
23
|
+
* pollRate: 300,
|
|
24
|
+
* services: ["compute"],
|
|
25
|
+
* customMetricTypeDomains: ["istio.io"],
|
|
26
|
+
* importGcpMetrics: true,
|
|
27
|
+
* projectServiceKeys: [
|
|
28
|
+
* {
|
|
29
|
+
* projectId: "gcp_project_id_1",
|
|
30
|
+
* projectKey: std.index.file({
|
|
31
|
+
* input: "/path/to/gcp_credentials_1.json",
|
|
32
|
+
* }).result,
|
|
33
|
+
* },
|
|
34
|
+
* {
|
|
35
|
+
* projectId: "gcp_project_id_2",
|
|
36
|
+
* projectKey: std.index.file({
|
|
37
|
+
* input: "/path/to/gcp_credentials_2.json",
|
|
38
|
+
* }).result,
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
12
43
|
*/
|
|
13
44
|
class Integration extends pulumi.CustomResource {
|
|
14
45
|
/**
|
package/gcp/integration.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../gcp/integration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../gcp/integration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAyED,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,Y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c,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAhJL,kCAiJC;AAnIG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/getDimensionValues.d.ts
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
3
|
* This data sources allows for obtaining a list of dimension values by on query provided.
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as signalfx from "@pulumi/signalfx";
|
|
8
|
+
* import * as std from "@pulumi/std";
|
|
9
|
+
*
|
|
10
|
+
* const mydashboardgroup0 = new signalfx.DashboardGroup("mydashboardgroup0", {
|
|
11
|
+
* name: "My team dashboard group",
|
|
12
|
+
* description: "Cool dashboard group",
|
|
13
|
+
* });
|
|
14
|
+
* const hosts = signalfx.getDimensionValues({
|
|
15
|
+
* query: "key:host",
|
|
16
|
+
* });
|
|
17
|
+
* const hostCharts: signalfx.TimeChart[] = [];
|
|
18
|
+
* for (const range = {value: 0}; range.value < std.index.toset({
|
|
19
|
+
* input: hosts.values,
|
|
20
|
+
* }).result; range.value++) {
|
|
21
|
+
* hostCharts.push(new signalfx.TimeChart(`host_charts-${range.value}`, {
|
|
22
|
+
* name: `CPU Total Idle ${range.value}`,
|
|
23
|
+
* plotType: "ColumnChart",
|
|
24
|
+
* axesIncludeZero: true,
|
|
25
|
+
* colorBy: "Metric",
|
|
26
|
+
* programText: `A = data(\"cpu.idle\", filter('host', '${range.key}').publish(label=\"CPU\")
|
|
27
|
+
* `,
|
|
28
|
+
* }));
|
|
29
|
+
* }
|
|
30
|
+
* const mydashboard1 = new signalfx.Dashboard("mydashboard1", {
|
|
31
|
+
* name: "My Dashboard",
|
|
32
|
+
* dashboardGroup: mydashboardgroup0.id,
|
|
33
|
+
* timeRange: "-30m",
|
|
34
|
+
* grids: [{
|
|
35
|
+
* chartIds: std.index.toset({
|
|
36
|
+
* input: hostCharts.map(v => (v.id)),
|
|
37
|
+
* }).result,
|
|
38
|
+
* width: 3,
|
|
39
|
+
* height: 1,
|
|
40
|
+
* }],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
4
43
|
*/
|
|
5
44
|
export declare function getDimensionValues(args: GetDimensionValuesArgs, opts?: pulumi.InvokeOptions): Promise<GetDimensionValuesResult>;
|
|
6
45
|
/**
|
|
@@ -41,6 +80,45 @@ export interface GetDimensionValuesResult {
|
|
|
41
80
|
}
|
|
42
81
|
/**
|
|
43
82
|
* This data sources allows for obtaining a list of dimension values by on query provided.
|
|
83
|
+
*
|
|
84
|
+
* ```typescript
|
|
85
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
86
|
+
* import * as signalfx from "@pulumi/signalfx";
|
|
87
|
+
* import * as std from "@pulumi/std";
|
|
88
|
+
*
|
|
89
|
+
* const mydashboardgroup0 = new signalfx.DashboardGroup("mydashboardgroup0", {
|
|
90
|
+
* name: "My team dashboard group",
|
|
91
|
+
* description: "Cool dashboard group",
|
|
92
|
+
* });
|
|
93
|
+
* const hosts = signalfx.getDimensionValues({
|
|
94
|
+
* query: "key:host",
|
|
95
|
+
* });
|
|
96
|
+
* const hostCharts: signalfx.TimeChart[] = [];
|
|
97
|
+
* for (const range = {value: 0}; range.value < std.index.toset({
|
|
98
|
+
* input: hosts.values,
|
|
99
|
+
* }).result; range.value++) {
|
|
100
|
+
* hostCharts.push(new signalfx.TimeChart(`host_charts-${range.value}`, {
|
|
101
|
+
* name: `CPU Total Idle ${range.value}`,
|
|
102
|
+
* plotType: "ColumnChart",
|
|
103
|
+
* axesIncludeZero: true,
|
|
104
|
+
* colorBy: "Metric",
|
|
105
|
+
* programText: `A = data(\"cpu.idle\", filter('host', '${range.key}').publish(label=\"CPU\")
|
|
106
|
+
* `,
|
|
107
|
+
* }));
|
|
108
|
+
* }
|
|
109
|
+
* const mydashboard1 = new signalfx.Dashboard("mydashboard1", {
|
|
110
|
+
* name: "My Dashboard",
|
|
111
|
+
* dashboardGroup: mydashboardgroup0.id,
|
|
112
|
+
* timeRange: "-30m",
|
|
113
|
+
* grids: [{
|
|
114
|
+
* chartIds: std.index.toset({
|
|
115
|
+
* input: hostCharts.map(v => (v.id)),
|
|
116
|
+
* }).result,
|
|
117
|
+
* width: 3,
|
|
118
|
+
* height: 1,
|
|
119
|
+
* }],
|
|
120
|
+
* });
|
|
121
|
+
* ```
|
|
44
122
|
*/
|
|
45
123
|
export declare function getDimensionValuesOutput(args: GetDimensionValuesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDimensionValuesResult>;
|
|
46
124
|
/**
|
package/getDimensionValues.js
CHANGED
|
@@ -7,6 +7,45 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* This data sources allows for obtaining a list of dimension values by on query provided.
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as signalfx from "@pulumi/signalfx";
|
|
14
|
+
* import * as std from "@pulumi/std";
|
|
15
|
+
*
|
|
16
|
+
* const mydashboardgroup0 = new signalfx.DashboardGroup("mydashboardgroup0", {
|
|
17
|
+
* name: "My team dashboard group",
|
|
18
|
+
* description: "Cool dashboard group",
|
|
19
|
+
* });
|
|
20
|
+
* const hosts = signalfx.getDimensionValues({
|
|
21
|
+
* query: "key:host",
|
|
22
|
+
* });
|
|
23
|
+
* const hostCharts: signalfx.TimeChart[] = [];
|
|
24
|
+
* for (const range = {value: 0}; range.value < std.index.toset({
|
|
25
|
+
* input: hosts.values,
|
|
26
|
+
* }).result; range.value++) {
|
|
27
|
+
* hostCharts.push(new signalfx.TimeChart(`host_charts-${range.value}`, {
|
|
28
|
+
* name: `CPU Total Idle ${range.value}`,
|
|
29
|
+
* plotType: "ColumnChart",
|
|
30
|
+
* axesIncludeZero: true,
|
|
31
|
+
* colorBy: "Metric",
|
|
32
|
+
* programText: `A = data(\"cpu.idle\", filter('host', '${range.key}').publish(label=\"CPU\")
|
|
33
|
+
* `,
|
|
34
|
+
* }));
|
|
35
|
+
* }
|
|
36
|
+
* const mydashboard1 = new signalfx.Dashboard("mydashboard1", {
|
|
37
|
+
* name: "My Dashboard",
|
|
38
|
+
* dashboardGroup: mydashboardgroup0.id,
|
|
39
|
+
* timeRange: "-30m",
|
|
40
|
+
* grids: [{
|
|
41
|
+
* chartIds: std.index.toset({
|
|
42
|
+
* input: hostCharts.map(v => (v.id)),
|
|
43
|
+
* }).result,
|
|
44
|
+
* width: 3,
|
|
45
|
+
* height: 1,
|
|
46
|
+
* }],
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
10
49
|
*/
|
|
11
50
|
function getDimensionValues(args, opts) {
|
|
12
51
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -19,6 +58,45 @@ function getDimensionValues(args, opts) {
|
|
|
19
58
|
exports.getDimensionValues = getDimensionValues;
|
|
20
59
|
/**
|
|
21
60
|
* This data sources allows for obtaining a list of dimension values by on query provided.
|
|
61
|
+
*
|
|
62
|
+
* ```typescript
|
|
63
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
64
|
+
* import * as signalfx from "@pulumi/signalfx";
|
|
65
|
+
* import * as std from "@pulumi/std";
|
|
66
|
+
*
|
|
67
|
+
* const mydashboardgroup0 = new signalfx.DashboardGroup("mydashboardgroup0", {
|
|
68
|
+
* name: "My team dashboard group",
|
|
69
|
+
* description: "Cool dashboard group",
|
|
70
|
+
* });
|
|
71
|
+
* const hosts = signalfx.getDimensionValues({
|
|
72
|
+
* query: "key:host",
|
|
73
|
+
* });
|
|
74
|
+
* const hostCharts: signalfx.TimeChart[] = [];
|
|
75
|
+
* for (const range = {value: 0}; range.value < std.index.toset({
|
|
76
|
+
* input: hosts.values,
|
|
77
|
+
* }).result; range.value++) {
|
|
78
|
+
* hostCharts.push(new signalfx.TimeChart(`host_charts-${range.value}`, {
|
|
79
|
+
* name: `CPU Total Idle ${range.value}`,
|
|
80
|
+
* plotType: "ColumnChart",
|
|
81
|
+
* axesIncludeZero: true,
|
|
82
|
+
* colorBy: "Metric",
|
|
83
|
+
* programText: `A = data(\"cpu.idle\", filter('host', '${range.key}').publish(label=\"CPU\")
|
|
84
|
+
* `,
|
|
85
|
+
* }));
|
|
86
|
+
* }
|
|
87
|
+
* const mydashboard1 = new signalfx.Dashboard("mydashboard1", {
|
|
88
|
+
* name: "My Dashboard",
|
|
89
|
+
* dashboardGroup: mydashboardgroup0.id,
|
|
90
|
+
* timeRange: "-30m",
|
|
91
|
+
* grids: [{
|
|
92
|
+
* chartIds: std.index.toset({
|
|
93
|
+
* input: hostCharts.map(v => (v.id)),
|
|
94
|
+
* }).result,
|
|
95
|
+
* width: 3,
|
|
96
|
+
* height: 1,
|
|
97
|
+
* }],
|
|
98
|
+
* });
|
|
99
|
+
* ```
|
|
22
100
|
*/
|
|
23
101
|
function getDimensionValuesOutput(args, opts) {
|
|
24
102
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDimensionValues.js","sourceRoot":"","sources":["../getDimensionValues.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getDimensionValues.js","sourceRoot":"","sources":["../getDimensionValues.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;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,sDAAsD,EAAE;QACjF,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gDAOC;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;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,sDAAsD,EAAE;QACvF,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4DAOC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/signalfx",
|
|
3
|
-
"version": "7.20.0-alpha.
|
|
3
|
+
"version": "7.20.0-alpha.1763189884",
|
|
4
4
|
"description": "A Pulumi package for creating and managing SignalFx resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "signalfx",
|
|
26
|
-
"version": "7.20.0-alpha.
|
|
26
|
+
"version": "7.20.0-alpha.1763189884"
|
|
27
27
|
}
|
|
28
28
|
}
|