@pulumi/signalfx 7.0.0 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alertMutingRule.d.ts +37 -19
- package/alertMutingRule.js +22 -4
- package/alertMutingRule.js.map +1 -1
- package/aws/externalIntegration.d.ts +23 -11
- package/aws/externalIntegration.js +16 -4
- package/aws/externalIntegration.js.map +1 -1
- package/aws/integration.d.ts +141 -72
- package/aws/integration.js +41 -4
- package/aws/integration.js.map +1 -1
- package/aws/tokenIntegration.d.ts +18 -7
- package/aws/tokenIntegration.js +13 -2
- package/aws/tokenIntegration.js.map +1 -1
- package/azure/integration.d.ts +101 -45
- package/azure/integration.js +29 -3
- package/azure/integration.js.map +1 -1
- package/config/vars.d.ts +3 -3
- package/dashboard.d.ts +62 -62
- package/dashboardGroup.d.ts +62 -27
- package/dashboardGroup.js +41 -6
- package/dashboardGroup.js.map +1 -1
- package/dataLink.d.ts +52 -18
- package/dataLink.js +31 -3
- package/dataLink.js.map +1 -1
- package/detector.d.ts +133 -70
- package/detector.js +70 -15
- package/detector.js.map +1 -1
- package/eventFeedChart.d.ts +38 -20
- package/eventFeedChart.js +18 -0
- package/eventFeedChart.js.map +1 -1
- package/gcp/integration.d.ts +66 -35
- package/gcp/integration.js +24 -5
- package/gcp/integration.js.map +1 -1
- package/getDimensionValues.d.ts +18 -2
- package/getDimensionValues.js +18 -2
- package/getDimensionValues.js.map +1 -1
- package/heatmapChart.d.ts +80 -46
- package/heatmapChart.js +36 -2
- package/heatmapChart.js.map +1 -1
- package/jira/integration.d.ts +51 -24
- package/jira/integration.js +24 -3
- package/jira/integration.js.map +1 -1
- package/listChart.d.ts +111 -64
- package/listChart.js +46 -2
- package/listChart.js.map +1 -1
- package/log/timeline.d.ts +44 -24
- package/log/timeline.js +21 -1
- package/log/timeline.js.map +1 -1
- package/log/view.d.ts +54 -31
- package/log/view.js +25 -2
- package/log/view.js.map +1 -1
- package/metricRuleset.d.ts +33 -11
- package/metricRuleset.js +24 -2
- package/metricRuleset.js.map +1 -1
- package/opsgenie/integration.d.ts +28 -15
- package/opsgenie/integration.js +16 -3
- package/opsgenie/integration.js.map +1 -1
- package/orgToken.d.ts +50 -39
- package/orgToken.js +32 -3
- package/orgToken.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pagerduty/getIntegration.d.ts +22 -14
- package/pagerduty/getIntegration.js +22 -2
- package/pagerduty/getIntegration.js.map +1 -1
- package/pagerduty/integration.d.ts +23 -12
- package/pagerduty/integration.js +14 -3
- package/pagerduty/integration.js.map +1 -1
- package/provider.d.ts +6 -6
- package/servicenow/integration.d.ts +46 -17
- package/servicenow/integration.js +19 -2
- package/servicenow/integration.js.map +1 -1
- package/singleValueChart.d.ts +74 -39
- package/singleValueChart.js +36 -1
- package/singleValueChart.js.map +1 -1
- package/slack/integration.d.ts +24 -12
- package/slack/integration.js +15 -3
- package/slack/integration.js.map +1 -1
- package/tableChart.d.ts +32 -16
- package/tableChart.js +18 -2
- package/tableChart.js.map +1 -1
- package/team.d.ts +54 -33
- package/team.js +25 -4
- package/team.js.map +1 -1
- package/textChart.d.ts +27 -12
- package/textChart.js +16 -1
- package/textChart.js.map +1 -1
- package/timeChart.d.ts +148 -94
- package/timeChart.js +68 -2
- package/timeChart.js.map +1 -1
- package/types/input.d.ts +0 -577
- package/types/output.d.ts +0 -577
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/victorops/integration.d.ts +24 -12
- package/victorops/integration.js +15 -3
- package/victorops/integration.js.map +1 -1
- package/webhookIntegration.d.ts +31 -15
- package/webhookIntegration.js +19 -3
- package/webhookIntegration.js.map +1 -1
- package/scripts/install-pulumi-plugin.js +0 -21
package/utilities.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
1
2
|
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
3
|
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
4
|
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
5
|
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
4
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
6
16
|
function getEnv(...vars) {
|
|
7
17
|
for (const v of vars) {
|
|
8
18
|
const value = process.env[v];
|
|
@@ -66,4 +76,26 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
69
101
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAA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B,CAAC;CAAA;AAxBD,8BAwBC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Splunk On-Call integrations.
|
|
4
4
|
*
|
|
5
|
-
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the
|
|
5
|
+
* > **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.
|
|
6
6
|
*
|
|
7
|
-
* ## Example
|
|
7
|
+
* ## Example
|
|
8
8
|
*
|
|
9
9
|
* ```typescript
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -15,6 +15,18 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
15
15
|
* postUrl: "https://alert.victorops.com/integrations/generic/1234/alert/$key/$routing_key",
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Arguments
|
|
20
|
+
*
|
|
21
|
+
* * `name` - (Required) Name of the integration.
|
|
22
|
+
* * `enabled` - (Required) Whether the integration is enabled.
|
|
23
|
+
* * `postUrl` - (Optional) Splunk On-Call REST API URL.
|
|
24
|
+
*
|
|
25
|
+
* ## Attributes
|
|
26
|
+
*
|
|
27
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
28
|
+
*
|
|
29
|
+
* * `id` - The ID of the integration.
|
|
18
30
|
*/
|
|
19
31
|
export declare class Integration extends pulumi.CustomResource {
|
|
20
32
|
/**
|
|
@@ -33,15 +45,15 @@ export declare class Integration extends pulumi.CustomResource {
|
|
|
33
45
|
*/
|
|
34
46
|
static isInstance(obj: any): obj is Integration;
|
|
35
47
|
/**
|
|
36
|
-
* Whether the integration is enabled
|
|
48
|
+
* Whether the integration is enabled or not
|
|
37
49
|
*/
|
|
38
50
|
readonly enabled: pulumi.Output<boolean>;
|
|
39
51
|
/**
|
|
40
|
-
* Name of the integration
|
|
52
|
+
* Name of the integration
|
|
41
53
|
*/
|
|
42
54
|
readonly name: pulumi.Output<string>;
|
|
43
55
|
/**
|
|
44
|
-
*
|
|
56
|
+
* Opsgenie API URL for integration
|
|
45
57
|
*/
|
|
46
58
|
readonly postUrl: pulumi.Output<string | undefined>;
|
|
47
59
|
/**
|
|
@@ -58,15 +70,15 @@ export declare class Integration extends pulumi.CustomResource {
|
|
|
58
70
|
*/
|
|
59
71
|
export interface IntegrationState {
|
|
60
72
|
/**
|
|
61
|
-
* Whether the integration is enabled
|
|
73
|
+
* Whether the integration is enabled or not
|
|
62
74
|
*/
|
|
63
75
|
enabled?: pulumi.Input<boolean>;
|
|
64
76
|
/**
|
|
65
|
-
* Name of the integration
|
|
77
|
+
* Name of the integration
|
|
66
78
|
*/
|
|
67
79
|
name?: pulumi.Input<string>;
|
|
68
80
|
/**
|
|
69
|
-
*
|
|
81
|
+
* Opsgenie API URL for integration
|
|
70
82
|
*/
|
|
71
83
|
postUrl?: pulumi.Input<string>;
|
|
72
84
|
}
|
|
@@ -75,15 +87,15 @@ export interface IntegrationState {
|
|
|
75
87
|
*/
|
|
76
88
|
export interface IntegrationArgs {
|
|
77
89
|
/**
|
|
78
|
-
* Whether the integration is enabled
|
|
90
|
+
* Whether the integration is enabled or not
|
|
79
91
|
*/
|
|
80
92
|
enabled: pulumi.Input<boolean>;
|
|
81
93
|
/**
|
|
82
|
-
* Name of the integration
|
|
94
|
+
* Name of the integration
|
|
83
95
|
*/
|
|
84
96
|
name?: pulumi.Input<string>;
|
|
85
97
|
/**
|
|
86
|
-
*
|
|
98
|
+
* Opsgenie API URL for integration
|
|
87
99
|
*/
|
|
88
100
|
postUrl?: pulumi.Input<string>;
|
|
89
101
|
}
|
package/victorops/integration.js
CHANGED
|
@@ -6,11 +6,11 @@ exports.Integration = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Splunk On-Call integrations.
|
|
10
10
|
*
|
|
11
|
-
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the
|
|
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
12
|
*
|
|
13
|
-
* ## Example
|
|
13
|
+
* ## Example
|
|
14
14
|
*
|
|
15
15
|
* ```typescript
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -21,6 +21,18 @@ const utilities = require("../utilities");
|
|
|
21
21
|
* postUrl: "https://alert.victorops.com/integrations/generic/1234/alert/$key/$routing_key",
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Arguments
|
|
26
|
+
*
|
|
27
|
+
* * `name` - (Required) Name of the integration.
|
|
28
|
+
* * `enabled` - (Required) Whether the integration is enabled.
|
|
29
|
+
* * `postUrl` - (Optional) Splunk On-Call REST API URL.
|
|
30
|
+
*
|
|
31
|
+
* ## Attributes
|
|
32
|
+
*
|
|
33
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
34
|
+
*
|
|
35
|
+
* * `id` - The ID of the integration.
|
|
24
36
|
*/
|
|
25
37
|
class Integration extends pulumi.CustomResource {
|
|
26
38
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../victorops/integration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../victorops/integration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAC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,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AApEL,kCAqEC;AAvDG,gBAAgB;AACO,wBAAY,GAAG,4CAA4C,CAAC"}
|
package/webhookIntegration.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Splunk Observability Cloud webhook integration.
|
|
6
6
|
*
|
|
7
|
-
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the
|
|
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
8
|
*
|
|
9
|
-
* ## Example
|
|
9
|
+
* ## Example
|
|
10
10
|
*
|
|
11
11
|
* ```typescript
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -22,6 +22,22 @@ import * as outputs from "./types/output";
|
|
|
22
22
|
* url: "https://www.example.com",
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Arguments
|
|
27
|
+
*
|
|
28
|
+
* * `name` - (Required) Name of the integration.
|
|
29
|
+
* * `enabled` - (Required) Whether the integration is enabled.
|
|
30
|
+
* * `url` - (Required) The URL to request
|
|
31
|
+
* * `sharedSecret` - (Optional)
|
|
32
|
+
* * `headers` - (Optional) A header to send with the request
|
|
33
|
+
* * `headerKey` - (Required) The key of the header to send
|
|
34
|
+
* * `headerValue` - (Required) The value of the header to send
|
|
35
|
+
*
|
|
36
|
+
* ## Attributes
|
|
37
|
+
*
|
|
38
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
39
|
+
*
|
|
40
|
+
* * `id` - The ID of the integration.
|
|
25
41
|
*/
|
|
26
42
|
export declare class WebhookIntegration extends pulumi.CustomResource {
|
|
27
43
|
/**
|
|
@@ -40,20 +56,20 @@ export declare class WebhookIntegration extends pulumi.CustomResource {
|
|
|
40
56
|
*/
|
|
41
57
|
static isInstance(obj: any): obj is WebhookIntegration;
|
|
42
58
|
/**
|
|
43
|
-
* Whether the integration is enabled
|
|
59
|
+
* Whether the integration is enabled or not
|
|
44
60
|
*/
|
|
45
61
|
readonly enabled: pulumi.Output<boolean>;
|
|
46
62
|
/**
|
|
47
|
-
*
|
|
63
|
+
* HTTP headers to pass in the request
|
|
48
64
|
*/
|
|
49
65
|
readonly headers: pulumi.Output<outputs.WebhookIntegrationHeader[] | undefined>;
|
|
50
66
|
/**
|
|
51
|
-
* Name of the integration
|
|
67
|
+
* Name of the integration
|
|
52
68
|
*/
|
|
53
69
|
readonly name: pulumi.Output<string>;
|
|
54
70
|
readonly sharedSecret: pulumi.Output<string | undefined>;
|
|
55
71
|
/**
|
|
56
|
-
*
|
|
72
|
+
* Webhook URL
|
|
57
73
|
*/
|
|
58
74
|
readonly url: pulumi.Output<string | undefined>;
|
|
59
75
|
/**
|
|
@@ -70,20 +86,20 @@ export declare class WebhookIntegration extends pulumi.CustomResource {
|
|
|
70
86
|
*/
|
|
71
87
|
export interface WebhookIntegrationState {
|
|
72
88
|
/**
|
|
73
|
-
* Whether the integration is enabled
|
|
89
|
+
* Whether the integration is enabled or not
|
|
74
90
|
*/
|
|
75
91
|
enabled?: pulumi.Input<boolean>;
|
|
76
92
|
/**
|
|
77
|
-
*
|
|
93
|
+
* HTTP headers to pass in the request
|
|
78
94
|
*/
|
|
79
95
|
headers?: pulumi.Input<pulumi.Input<inputs.WebhookIntegrationHeader>[]>;
|
|
80
96
|
/**
|
|
81
|
-
* Name of the integration
|
|
97
|
+
* Name of the integration
|
|
82
98
|
*/
|
|
83
99
|
name?: pulumi.Input<string>;
|
|
84
100
|
sharedSecret?: pulumi.Input<string>;
|
|
85
101
|
/**
|
|
86
|
-
*
|
|
102
|
+
* Webhook URL
|
|
87
103
|
*/
|
|
88
104
|
url?: pulumi.Input<string>;
|
|
89
105
|
}
|
|
@@ -92,20 +108,20 @@ export interface WebhookIntegrationState {
|
|
|
92
108
|
*/
|
|
93
109
|
export interface WebhookIntegrationArgs {
|
|
94
110
|
/**
|
|
95
|
-
* Whether the integration is enabled
|
|
111
|
+
* Whether the integration is enabled or not
|
|
96
112
|
*/
|
|
97
113
|
enabled: pulumi.Input<boolean>;
|
|
98
114
|
/**
|
|
99
|
-
*
|
|
115
|
+
* HTTP headers to pass in the request
|
|
100
116
|
*/
|
|
101
117
|
headers?: pulumi.Input<pulumi.Input<inputs.WebhookIntegrationHeader>[]>;
|
|
102
118
|
/**
|
|
103
|
-
* Name of the integration
|
|
119
|
+
* Name of the integration
|
|
104
120
|
*/
|
|
105
121
|
name?: pulumi.Input<string>;
|
|
106
122
|
sharedSecret?: pulumi.Input<string>;
|
|
107
123
|
/**
|
|
108
|
-
*
|
|
124
|
+
* Webhook URL
|
|
109
125
|
*/
|
|
110
126
|
url?: pulumi.Input<string>;
|
|
111
127
|
}
|
package/webhookIntegration.js
CHANGED
|
@@ -6,11 +6,11 @@ exports.WebhookIntegration = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Splunk Observability Cloud webhook integration.
|
|
10
10
|
*
|
|
11
|
-
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the
|
|
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
12
|
*
|
|
13
|
-
* ## Example
|
|
13
|
+
* ## Example
|
|
14
14
|
*
|
|
15
15
|
* ```typescript
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -26,6 +26,22 @@ const utilities = require("./utilities");
|
|
|
26
26
|
* url: "https://www.example.com",
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Arguments
|
|
31
|
+
*
|
|
32
|
+
* * `name` - (Required) Name of the integration.
|
|
33
|
+
* * `enabled` - (Required) Whether the integration is enabled.
|
|
34
|
+
* * `url` - (Required) The URL to request
|
|
35
|
+
* * `sharedSecret` - (Optional)
|
|
36
|
+
* * `headers` - (Optional) A header to send with the request
|
|
37
|
+
* * `headerKey` - (Required) The key of the header to send
|
|
38
|
+
* * `headerValue` - (Required) The value of the header to send
|
|
39
|
+
*
|
|
40
|
+
* ## Attributes
|
|
41
|
+
*
|
|
42
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
43
|
+
*
|
|
44
|
+
* * `id` - The ID of the integration.
|
|
29
45
|
*/
|
|
30
46
|
class WebhookIntegration extends pulumi.CustomResource {
|
|
31
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookIntegration.js","sourceRoot":"","sources":["../webhookIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAA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AC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AA/EL,gDAgFC;AAlEG,gBAAgB;AACO,+BAAY,GAAG,sDAAsD,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var childProcess = require("child_process");
|
|
3
|
-
|
|
4
|
-
var args = process.argv.slice(2);
|
|
5
|
-
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
6
|
-
stdio: ["ignore", "inherit", "inherit"]
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
if (res.error && res.error.code === "ENOENT") {
|
|
10
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
11
|
-
"It looks like `pulumi` is not installed on your system. " +
|
|
12
|
-
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
13
|
-
"You may try manually installing the plugin by running " +
|
|
14
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
15
|
-
} else if (res.error || res.status !== 0) {
|
|
16
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
17
|
-
"You may try to manually installing the plugin by running " +
|
|
18
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
process.exit(0);
|