@jooon/pulumi-signoz 0.1.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/LICENSE +202 -0
- package/README.md +114 -0
- package/alert.d.ts +307 -0
- package/alert.d.ts.map +1 -0
- package/alert.js +128 -0
- package/alert.js.map +1 -0
- package/config/index.d.ts +2 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +22 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +54 -0
- package/config/vars.js.map +1 -0
- package/dashboard.d.ts +186 -0
- package/dashboard.d.ts.map +1 -0
- package/dashboard.js +126 -0
- package/dashboard.js.map +1 -0
- package/getAlert.d.ts +47 -0
- package/getAlert.d.ts.map +1 -0
- package/getAlert.js +45 -0
- package/getAlert.js.map +1 -0
- package/getDashboard.d.ts +36 -0
- package/getDashboard.d.ts.map +1 -0
- package/getDashboard.js +47 -0
- package/getDashboard.js.map +1 -0
- package/index.d.ts +17 -0
- package/index.d.ts.map +1 -0
- package/index.js +75 -0
- package/index.js.map +1 -0
- package/package.json +30 -0
- package/provider.d.ts +74 -0
- package/provider.d.ts.map +1 -0
- package/provider.js +81 -0
- package/provider.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +34 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +31 -0
- package/types/input.d.ts.map +1 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +58 -0
- package/types/output.d.ts.map +1 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +5 -0
- package/utilities.d.ts.map +1 -0
- package/utilities.js +114 -0
- package/utilities.js.map +1 -0
package/getAlert.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getAlertOutput = exports.getAlert = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
function getAlert(args, opts) {
|
|
32
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
33
|
+
return pulumi.runtime.invoke("signoz:index/getAlert:getAlert", {
|
|
34
|
+
"id": args.id,
|
|
35
|
+
}, opts);
|
|
36
|
+
}
|
|
37
|
+
exports.getAlert = getAlert;
|
|
38
|
+
function getAlertOutput(args, opts) {
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
40
|
+
return pulumi.runtime.invokeOutput("signoz:index/getAlert:getAlert", {
|
|
41
|
+
"id": args.id,
|
|
42
|
+
}, opts);
|
|
43
|
+
}
|
|
44
|
+
exports.getAlertOutput = getAlertOutput;
|
|
45
|
+
//# sourceMappingURL=getAlert.js.map
|
package/getAlert.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAlert.js","sourceRoot":"","sources":["../getAlert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IACpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4BAKC;AAqCD,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAAiC;IACtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gCAAgC,EAAE;QACjE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wCAKC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getDashboard(args: GetDashboardArgs, opts?: pulumi.InvokeOptions): Promise<GetDashboardResult>;
|
|
3
|
+
/**
|
|
4
|
+
* A collection of arguments for invoking getDashboard.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetDashboardArgs {
|
|
7
|
+
id: string;
|
|
8
|
+
version?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A collection of values returned by getDashboard.
|
|
12
|
+
*/
|
|
13
|
+
export interface GetDashboardResult {
|
|
14
|
+
readonly collapsableRowsMigrated: boolean;
|
|
15
|
+
readonly description: string;
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly layout: string;
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly panelMap: string;
|
|
20
|
+
readonly source: string;
|
|
21
|
+
readonly tags: string[];
|
|
22
|
+
readonly title: string;
|
|
23
|
+
readonly uploadedGrafana: boolean;
|
|
24
|
+
readonly variables: string;
|
|
25
|
+
readonly version: string;
|
|
26
|
+
readonly widgets: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function getDashboardOutput(args: GetDashboardOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDashboardResult>;
|
|
29
|
+
/**
|
|
30
|
+
* A collection of arguments for invoking getDashboard.
|
|
31
|
+
*/
|
|
32
|
+
export interface GetDashboardOutputArgs {
|
|
33
|
+
id: pulumi.Input<string>;
|
|
34
|
+
version?: pulumi.Input<string | undefined>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=getDashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDashboard.d.ts","sourceRoot":"","sources":["../getDashboard.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAM7G;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B;AACD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAMrI;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C"}
|
package/getDashboard.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getDashboardOutput = exports.getDashboard = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
function getDashboard(args, opts) {
|
|
32
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
33
|
+
return pulumi.runtime.invoke("signoz:index/getDashboard:getDashboard", {
|
|
34
|
+
"id": args.id,
|
|
35
|
+
"version": args.version,
|
|
36
|
+
}, opts);
|
|
37
|
+
}
|
|
38
|
+
exports.getDashboard = getDashboard;
|
|
39
|
+
function getDashboardOutput(args, opts) {
|
|
40
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
41
|
+
return pulumi.runtime.invokeOutput("signoz:index/getDashboard:getDashboard", {
|
|
42
|
+
"id": args.id,
|
|
43
|
+
"version": args.version,
|
|
44
|
+
}, opts);
|
|
45
|
+
}
|
|
46
|
+
exports.getDashboardOutput = getDashboardOutput;
|
|
47
|
+
//# sourceMappingURL=getDashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDashboard.js","sourceRoot":"","sources":["../getDashboard.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC;AA4BD,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { AlertArgs, AlertState } from "./alert";
|
|
2
|
+
export type Alert = import("./alert").Alert;
|
|
3
|
+
export declare const Alert: typeof import("./alert").Alert;
|
|
4
|
+
export { DashboardArgs, DashboardState } from "./dashboard";
|
|
5
|
+
export type Dashboard = import("./dashboard").Dashboard;
|
|
6
|
+
export declare const Dashboard: typeof import("./dashboard").Dashboard;
|
|
7
|
+
export { GetAlertArgs, GetAlertResult, GetAlertOutputArgs } from "./getAlert";
|
|
8
|
+
export declare const getAlert: typeof import("./getAlert").getAlert;
|
|
9
|
+
export declare const getAlertOutput: typeof import("./getAlert").getAlertOutput;
|
|
10
|
+
export { GetDashboardArgs, GetDashboardResult, GetDashboardOutputArgs } from "./getDashboard";
|
|
11
|
+
export declare const getDashboard: typeof import("./getDashboard").getDashboard;
|
|
12
|
+
export declare const getDashboardOutput: typeof import("./getDashboard").getDashboardOutput;
|
|
13
|
+
export * from "./provider";
|
|
14
|
+
import * as config from "./config";
|
|
15
|
+
import * as types from "./types";
|
|
16
|
+
export { config, types, };
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAChD,MAAM,MAAM,KAAK,GAAG,OAAO,SAAS,EAAE,KAAK,CAAC;AAC5C,eAAO,MAAM,KAAK,EAAE,cAAc,SAAS,EAAE,KAAmB,CAAC;AAGjE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,MAAM,MAAM,SAAS,GAAG,OAAO,aAAa,EAAE,SAAS,CAAC;AACxD,eAAO,MAAM,SAAS,EAAE,cAAc,aAAa,EAAE,SAAuB,CAAC;AAG7E,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC9E,eAAO,MAAM,QAAQ,EAAE,cAAc,YAAY,EAAE,QAAsB,CAAC;AAC1E,eAAO,MAAM,cAAc,EAAE,cAAc,YAAY,EAAE,cAA4B,CAAC;AAGtF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC9F,eAAO,MAAM,YAAY,EAAE,cAAc,gBAAgB,EAAE,YAA0B,CAAC;AACtF,eAAO,MAAM,kBAAkB,EAAE,cAAc,gBAAgB,EAAE,kBAAgC,CAAC;AAGlG,cAAc,YAAY,CAAC;AAK3B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EACH,MAAM,EACN,KAAK,GACR,CAAC"}
|
package/index.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
28
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.types = exports.config = exports.getDashboardOutput = exports.getDashboard = exports.getAlertOutput = exports.getAlert = exports.Dashboard = exports.Alert = void 0;
|
|
32
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
33
|
+
const utilities = __importStar(require("./utilities"));
|
|
34
|
+
exports.Alert = null;
|
|
35
|
+
utilities.lazyLoad(exports, ["Alert"], () => require("./alert"));
|
|
36
|
+
exports.Dashboard = null;
|
|
37
|
+
utilities.lazyLoad(exports, ["Dashboard"], () => require("./dashboard"));
|
|
38
|
+
exports.getAlert = null;
|
|
39
|
+
exports.getAlertOutput = null;
|
|
40
|
+
utilities.lazyLoad(exports, ["getAlert", "getAlertOutput"], () => require("./getAlert"));
|
|
41
|
+
exports.getDashboard = null;
|
|
42
|
+
exports.getDashboardOutput = null;
|
|
43
|
+
utilities.lazyLoad(exports, ["getDashboard", "getDashboardOutput"], () => require("./getDashboard"));
|
|
44
|
+
__exportStar(require("./provider"), exports);
|
|
45
|
+
const provider_1 = require("./provider");
|
|
46
|
+
// Export sub-modules:
|
|
47
|
+
const config = __importStar(require("./config"));
|
|
48
|
+
exports.config = config;
|
|
49
|
+
const types = __importStar(require("./types"));
|
|
50
|
+
exports.types = types;
|
|
51
|
+
const _module = {
|
|
52
|
+
version: utilities.getVersion(),
|
|
53
|
+
construct: (name, type, urn) => {
|
|
54
|
+
switch (type) {
|
|
55
|
+
case "signoz:index/alert:Alert":
|
|
56
|
+
return new exports.Alert(name, undefined, { urn });
|
|
57
|
+
case "signoz:index/dashboard:Dashboard":
|
|
58
|
+
return new exports.Dashboard(name, undefined, { urn });
|
|
59
|
+
default:
|
|
60
|
+
throw new Error(`unknown resource type ${type}`);
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
pulumi.runtime.registerResourceModule("signoz", "index/alert", _module);
|
|
65
|
+
pulumi.runtime.registerResourceModule("signoz", "index/dashboard", _module);
|
|
66
|
+
pulumi.runtime.registerResourcePackage("signoz", {
|
|
67
|
+
version: utilities.getVersion(),
|
|
68
|
+
constructProvider: (name, type, urn) => {
|
|
69
|
+
if (type !== "pulumi:providers:signoz") {
|
|
70
|
+
throw new Error(`unknown provider type ${type}`);
|
|
71
|
+
}
|
|
72
|
+
return new provider_1.Provider(name, undefined, { urn });
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAK5B,QAAA,KAAK,GAAmC,IAAW,CAAC;AACjE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AAIpD,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAG5D,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC7D,QAAA,cAAc,GAA+C,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,EAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAG3E,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,QAAA,kBAAkB,GAAuD,IAAW,CAAC;AAClG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,EAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAEpG,6CAA2B;AAC3B,yCAAsC;AAGtC,sBAAsB;AACtB,iDAAmC;AAI/B,wBAAM;AAHV,+CAAiC;AAI7B,sBAAK;AAGT,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,0BAA0B;gBAC3B,OAAO,IAAI,aAAK,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACnD,KAAK,kCAAkC;gBACnC,OAAO,IAAI,iBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AACvE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,yBAAyB,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jooon/pulumi-signoz",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A Pulumi provider for SigNoz, bridged from the official SigNoz Terraform provider. Manage SigNoz dashboards and alerts as code.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"signoz",
|
|
7
|
+
"observability",
|
|
8
|
+
"monitoring",
|
|
9
|
+
"tracing",
|
|
10
|
+
"category/cloud"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://signoz.io",
|
|
13
|
+
"repository": "https://github.com/jgautheron/pulumi-signoz",
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^20",
|
|
23
|
+
"typescript": "^4.7.0"
|
|
24
|
+
},
|
|
25
|
+
"pulumi": {
|
|
26
|
+
"resource": true,
|
|
27
|
+
"name": "signoz",
|
|
28
|
+
"version": "0.1.0"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/provider.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The provider type for the signoz package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
/**
|
|
15
|
+
* Access token of the SigNoz API. You can retrieve it from SigNoz UI
|
|
16
|
+
* with Admin Role ([documentation](https://signoz.io/newsroom/launch-week-1-day-5/#using-access-token)).
|
|
17
|
+
* Also, you can set it using environment variable SIGNOZ_ACCESS_TOKEN.
|
|
18
|
+
*/
|
|
19
|
+
readonly accessToken: pulumi.Output<string | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Endpoint of the SigNoz. It is the root URL of the SigNoz UI.
|
|
22
|
+
* Also, you can set it using environment variable SIGNOZ_ENDPOINT. If not set, it defaults to http://localhost:3301.
|
|
23
|
+
*/
|
|
24
|
+
readonly endpoint: pulumi.Output<string | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resource.
|
|
29
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
30
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
31
|
+
*/
|
|
32
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
33
|
+
/**
|
|
34
|
+
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
|
35
|
+
*/
|
|
36
|
+
terraformConfig(): pulumi.Output<Provider.TerraformConfigResult>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The set of arguments for constructing a Provider resource.
|
|
40
|
+
*/
|
|
41
|
+
export interface ProviderArgs {
|
|
42
|
+
/**
|
|
43
|
+
* Access token of the SigNoz API. You can retrieve it from SigNoz UI
|
|
44
|
+
* with Admin Role ([documentation](https://signoz.io/newsroom/launch-week-1-day-5/#using-access-token)).
|
|
45
|
+
* Also, you can set it using environment variable SIGNOZ_ACCESS_TOKEN.
|
|
46
|
+
*/
|
|
47
|
+
accessToken?: pulumi.Input<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Endpoint of the SigNoz. It is the root URL of the SigNoz UI.
|
|
50
|
+
* Also, you can set it using environment variable SIGNOZ_ENDPOINT. If not set, it defaults to http://localhost:3301.
|
|
51
|
+
*/
|
|
52
|
+
endpoint?: pulumi.Input<string | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Specifies the max retry limit for the HTTP requests made to SigNoz.
|
|
55
|
+
* Also, you can set it using environment variable SIGNOZ_HTTP_MAX_RETRY. If not set, it defaults to 10.
|
|
56
|
+
*/
|
|
57
|
+
httpMaxRetry?: pulumi.Input<number | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Specifies the timeout limit in seconds for the HTTP requests made to SigNoz.
|
|
60
|
+
* Also, you can set it using environment variable SIGNOZ_HTTP_TIMEOUT. If not set, it defaults to 35.
|
|
61
|
+
*/
|
|
62
|
+
httpTimeout?: pulumi.Input<number | undefined>;
|
|
63
|
+
}
|
|
64
|
+
export declare namespace Provider {
|
|
65
|
+
/**
|
|
66
|
+
* The results of the Provider.terraformConfig method.
|
|
67
|
+
*/
|
|
68
|
+
interface TerraformConfigResult {
|
|
69
|
+
readonly result: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;IAOnD;;;;OAIG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvE;;;OAGG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEpE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,eAAe;IAe5E;;OAEG;IACH,eAAe,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAKnE;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD;AAED,yBAAiB,QAAQ,CAAC;IACtB;;OAEG;IACH,UAAiB,qBAAqB;QAClC,QAAQ,CAAC,MAAM,EAAE;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAC,CAAC;KACzC;CAEJ"}
|
package/provider.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Provider = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* The provider type for the signoz package. By default, resources use package-wide configuration
|
|
33
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
34
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
35
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
36
|
+
*/
|
|
37
|
+
class Provider extends pulumi.ProviderResource {
|
|
38
|
+
/** @internal */
|
|
39
|
+
static __pulumiType = 'signoz';
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj) {
|
|
45
|
+
if (obj === undefined || obj === null) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resource.
|
|
54
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
55
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
56
|
+
*/
|
|
57
|
+
constructor(name, args, opts) {
|
|
58
|
+
let resourceInputs = {};
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
{
|
|
61
|
+
resourceInputs["accessToken"] = args?.accessToken ? pulumi.secret(args.accessToken) : undefined;
|
|
62
|
+
resourceInputs["endpoint"] = args?.endpoint;
|
|
63
|
+
resourceInputs["httpMaxRetry"] = pulumi.output(args?.httpMaxRetry).apply(JSON.stringify);
|
|
64
|
+
resourceInputs["httpTimeout"] = pulumi.output(args?.httpTimeout).apply(JSON.stringify);
|
|
65
|
+
}
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
const secretOpts = { additionalSecretOutputs: ["accessToken"] };
|
|
68
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
69
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
|
73
|
+
*/
|
|
74
|
+
terraformConfig() {
|
|
75
|
+
return pulumi.runtime.call("pulumi:providers:signoz/terraformConfig", {
|
|
76
|
+
"__self__": this,
|
|
77
|
+
}, this);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Provider = Provider;
|
|
81
|
+
//# sourceMappingURL=provider.js.map
|
package/provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IACjD,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,QAAQ,CAAC;IAE/C;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAcD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzF,cAAc,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE;YAClE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AAxDL,4BAyDC"}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EACH,KAAK,EACL,MAAM,GACT,CAAC"}
|
package/types/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.output = exports.input = void 0;
|
|
29
|
+
// Export sub-modules:
|
|
30
|
+
const input = __importStar(require("./input"));
|
|
31
|
+
exports.input = input;
|
|
32
|
+
const output = __importStar(require("./output"));
|
|
33
|
+
exports.output = output;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjF,sBAAsB;AACtB,+CAAiC;AAI7B,sBAAK;AAHT,iDAAmC;AAI/B,wBAAM"}
|
package/types/input.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
export interface AlertNotificationSettings {
|
|
4
|
+
/**
|
|
5
|
+
* Group by the alert. By default, it is empty, use '__all__' to get different notification for each unique parameters.
|
|
6
|
+
*/
|
|
7
|
+
groupBies?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* The alert re-notification settings.
|
|
10
|
+
*/
|
|
11
|
+
renotify?: pulumi.Input<inputs.AlertNotificationSettingsRenotify | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* Use policy in the alert. By default, it is false.
|
|
14
|
+
*/
|
|
15
|
+
usePolicy?: pulumi.Input<boolean | undefined>;
|
|
16
|
+
}
|
|
17
|
+
export interface AlertNotificationSettingsRenotify {
|
|
18
|
+
/**
|
|
19
|
+
* For which AlertStates of the alert want to get renotified.
|
|
20
|
+
*/
|
|
21
|
+
alertStates: pulumi.Input<pulumi.Input<string>[]>;
|
|
22
|
+
/**
|
|
23
|
+
* To enable the re-notification of the alert.
|
|
24
|
+
*/
|
|
25
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Re-notify interval of the alert.
|
|
28
|
+
*/
|
|
29
|
+
interval: pulumi.Input<string>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC7D;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,iCAAiC,GAAG,SAAS,CAAC,CAAC;IAC9E;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
package/types/input.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as outputs from "../types/output";
|
|
2
|
+
export interface AlertNotificationSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Group by the alert. By default, it is empty, use '__all__' to get different notification for each unique parameters.
|
|
5
|
+
*/
|
|
6
|
+
groupBies: string[];
|
|
7
|
+
/**
|
|
8
|
+
* The alert re-notification settings.
|
|
9
|
+
*/
|
|
10
|
+
renotify: outputs.AlertNotificationSettingsRenotify;
|
|
11
|
+
/**
|
|
12
|
+
* Use policy in the alert. By default, it is false.
|
|
13
|
+
*/
|
|
14
|
+
usePolicy: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface AlertNotificationSettingsRenotify {
|
|
17
|
+
/**
|
|
18
|
+
* For which AlertStates of the alert want to get renotified.
|
|
19
|
+
*/
|
|
20
|
+
alertStates: string[];
|
|
21
|
+
/**
|
|
22
|
+
* To enable the re-notification of the alert.
|
|
23
|
+
*/
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Re-notify interval of the alert.
|
|
27
|
+
*/
|
|
28
|
+
interval: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GetAlertNotificationSettings {
|
|
31
|
+
/**
|
|
32
|
+
* Group by labels for notification.
|
|
33
|
+
*/
|
|
34
|
+
groupBies: string[];
|
|
35
|
+
/**
|
|
36
|
+
* Renotify settings for the alert.
|
|
37
|
+
*/
|
|
38
|
+
renotify: outputs.GetAlertNotificationSettingsRenotify;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to use notification policy.
|
|
41
|
+
*/
|
|
42
|
+
usePolicy: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface GetAlertNotificationSettingsRenotify {
|
|
45
|
+
/**
|
|
46
|
+
* Alert states for renotify.
|
|
47
|
+
*/
|
|
48
|
+
alertStates: string[];
|
|
49
|
+
/**
|
|
50
|
+
* Whether renotify is enabled.
|
|
51
|
+
*/
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Interval for renotify.
|
|
55
|
+
*/
|
|
56
|
+
interval: string;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAE3C,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC,iCAAiC,CAAC;IACpD;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC,oCAAoC,CAAC;IACvD;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,oCAAoC;IACjD;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
package/types/output.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
|
5
|
+
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":"AAOA,wBAAgB,MAAM,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ5D;AAED,wBAAgB,aAAa,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAapE;AAED,wBAAgB,YAAY,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CASlE;AAED,wBAAgB,UAAU,IAAI,MAAM,CAQnC"}
|