@pulumi/harness 0.11.5 → 0.11.6
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/autostopping/alert.d.ts
CHANGED
|
@@ -3,6 +3,56 @@ import * as inputs from "../types/input";
|
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
5
|
* Resource for creating and managing Harness AutoStopping alerts. Alerts notify users via email or Slack when events such as warmup failures, cooldown failures, or rule lifecycle changes occur.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* const specific_rule_alert = new harness.autostopping.Alert("specific-rule-alert", {
|
|
14
|
+
* name: "demo-alert",
|
|
15
|
+
* recipients: {
|
|
16
|
+
* emails: [
|
|
17
|
+
* "user1@example.com",
|
|
18
|
+
* "user2@example.com",
|
|
19
|
+
* ],
|
|
20
|
+
* slacks: [
|
|
21
|
+
* "slack-web-hook-1",
|
|
22
|
+
* "slack-web-hook-2",
|
|
23
|
+
* ],
|
|
24
|
+
* },
|
|
25
|
+
* events: [
|
|
26
|
+
* "autostopping_rule_created",
|
|
27
|
+
* "autostopping_rule_updated",
|
|
28
|
+
* "autostopping_rule_deleted",
|
|
29
|
+
* "autostopping_warmup_failed",
|
|
30
|
+
* "autostopping_cooldown_failed",
|
|
31
|
+
* ],
|
|
32
|
+
* ruleIdLists: [1234],
|
|
33
|
+
* });
|
|
34
|
+
* const all_rule_alert = new harness.autostopping.Alert("all-rule-alert", {
|
|
35
|
+
* name: "demo-alert",
|
|
36
|
+
* recipients: {
|
|
37
|
+
* emails: [
|
|
38
|
+
* "user1@example.com",
|
|
39
|
+
* "user2@example.com",
|
|
40
|
+
* ],
|
|
41
|
+
* slacks: [
|
|
42
|
+
* "slack-web-hook-1",
|
|
43
|
+
* "slack-web-hook-2",
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* events: [
|
|
47
|
+
* "autostopping_rule_created",
|
|
48
|
+
* "autostopping_rule_updated",
|
|
49
|
+
* "autostopping_rule_deleted",
|
|
50
|
+
* "autostopping_warmup_failed",
|
|
51
|
+
* "autostopping_cooldown_failed",
|
|
52
|
+
* ],
|
|
53
|
+
* applicableToAllRules: true,
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
6
56
|
*/
|
|
7
57
|
export declare class Alert extends pulumi.CustomResource {
|
|
8
58
|
/**
|
package/autostopping/alert.js
CHANGED
|
@@ -7,6 +7,56 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Resource for creating and managing Harness AutoStopping alerts. Alerts notify users via email or Slack when events such as warmup failures, cooldown failures, or rule lifecycle changes occur.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as harness from "@pulumi/harness";
|
|
16
|
+
*
|
|
17
|
+
* const specific_rule_alert = new harness.autostopping.Alert("specific-rule-alert", {
|
|
18
|
+
* name: "demo-alert",
|
|
19
|
+
* recipients: {
|
|
20
|
+
* emails: [
|
|
21
|
+
* "user1@example.com",
|
|
22
|
+
* "user2@example.com",
|
|
23
|
+
* ],
|
|
24
|
+
* slacks: [
|
|
25
|
+
* "slack-web-hook-1",
|
|
26
|
+
* "slack-web-hook-2",
|
|
27
|
+
* ],
|
|
28
|
+
* },
|
|
29
|
+
* events: [
|
|
30
|
+
* "autostopping_rule_created",
|
|
31
|
+
* "autostopping_rule_updated",
|
|
32
|
+
* "autostopping_rule_deleted",
|
|
33
|
+
* "autostopping_warmup_failed",
|
|
34
|
+
* "autostopping_cooldown_failed",
|
|
35
|
+
* ],
|
|
36
|
+
* ruleIdLists: [1234],
|
|
37
|
+
* });
|
|
38
|
+
* const all_rule_alert = new harness.autostopping.Alert("all-rule-alert", {
|
|
39
|
+
* name: "demo-alert",
|
|
40
|
+
* recipients: {
|
|
41
|
+
* emails: [
|
|
42
|
+
* "user1@example.com",
|
|
43
|
+
* "user2@example.com",
|
|
44
|
+
* ],
|
|
45
|
+
* slacks: [
|
|
46
|
+
* "slack-web-hook-1",
|
|
47
|
+
* "slack-web-hook-2",
|
|
48
|
+
* ],
|
|
49
|
+
* },
|
|
50
|
+
* events: [
|
|
51
|
+
* "autostopping_rule_created",
|
|
52
|
+
* "autostopping_rule_updated",
|
|
53
|
+
* "autostopping_rule_deleted",
|
|
54
|
+
* "autostopping_warmup_failed",
|
|
55
|
+
* "autostopping_cooldown_failed",
|
|
56
|
+
* ],
|
|
57
|
+
* applicableToAllRules: true,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
10
60
|
*/
|
|
11
61
|
class Alert extends pulumi.CustomResource {
|
|
12
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../autostopping/alert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../autostopping/alert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,E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AAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAzFL,sBA0FC;AA5EG,gBAAgB;AACO,kBAAY,GAAG,kCAAkC,CAAC"}
|
|
@@ -3,6 +3,8 @@ import * as inputs from "../types/input";
|
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
5
|
* Data source for retrieving a Harness AutoStopping alert by ID. Use the id (identifier) returned by the API when the alert was created.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
6
8
|
*/
|
|
7
9
|
export declare function getAlert(args: GetAlertArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertResult>;
|
|
8
10
|
/**
|
|
@@ -73,6 +75,8 @@ export interface GetAlertResult {
|
|
|
73
75
|
}
|
|
74
76
|
/**
|
|
75
77
|
* Data source for retrieving a Harness AutoStopping alert by ID. Use the id (identifier) returned by the API when the alert was created.
|
|
78
|
+
*
|
|
79
|
+
* ## Example Usage
|
|
76
80
|
*/
|
|
77
81
|
export declare function getAlertOutput(args: GetAlertOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertResult>;
|
|
78
82
|
/**
|
package/autostopping/getAlert.js
CHANGED
|
@@ -7,6 +7,8 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Data source for retrieving a Harness AutoStopping alert by ID. Use the id (identifier) returned by the API when the alert was created.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
10
12
|
*/
|
|
11
13
|
function getAlert(args, opts) {
|
|
12
14
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -22,6 +24,8 @@ function getAlert(args, opts) {
|
|
|
22
24
|
exports.getAlert = getAlert;
|
|
23
25
|
/**
|
|
24
26
|
* Data source for retrieving a Harness AutoStopping alert by ID. Use the id (identifier) returned by the API when the alert was created.
|
|
27
|
+
*
|
|
28
|
+
* ## Example Usage
|
|
25
29
|
*/
|
|
26
30
|
function getAlertOutput(args, opts) {
|
|
27
31
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAlert.js","sourceRoot":"","sources":["../../autostopping/getAlert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getAlert.js","sourceRoot":"","sources":["../../autostopping/getAlert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,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,wCAAwC,EAAE;QACnE,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,4BAUC;AAqED;;;;GAIG;AACH,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,wCAAwC,EAAE;QACzE,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,wCAUC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/harness",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Harness resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "harness",
|
|
26
|
-
"version": "0.11.
|
|
26
|
+
"version": "0.11.6",
|
|
27
27
|
"server": "github://api.github.com/pulumi"
|
|
28
28
|
}
|
|
29
29
|
}
|