@pulumiverse/grafana 0.18.0 → 0.19.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/cloud/getStack.d.ts +4 -0
- package/cloud/getStack.js.map +1 -1
- package/cloud/providerAwsCloudwatchScrapeJob.d.ts +6 -6
- package/cloud/stack.d.ts +8 -0
- package/cloud/stack.js +2 -0
- package/cloud/stack.js.map +1 -1
- package/cloudStack.d.ts +8 -0
- package/cloudStack.js +2 -0
- package/cloudStack.js.map +1 -1
- package/cloudprovider/awsCloudwatchScrapeJob.d.ts +6 -6
- package/cloudprovider/awsResourceMetadataScrapeJob.d.ts +3 -3
- package/enterprise/index.d.ts +3 -0
- package/enterprise/index.js +6 -1
- package/enterprise/index.js.map +1 -1
- package/enterprise/scimConfig.d.ts +87 -0
- package/enterprise/scimConfig.js +74 -0
- package/enterprise/scimConfig.js.map +1 -0
- package/frontendobservability/app.d.ts +3 -3
- package/getCloudStack.d.ts +4 -0
- package/getCloudStack.js.map +1 -1
- package/getOncallIntegration.d.ts +4 -0
- package/getOncallIntegration.js.map +1 -1
- package/getOncallTeam.d.ts +10 -4
- package/getOncallTeam.js +10 -4
- package/getOncallTeam.js.map +1 -1
- package/k6/getLoadTest.d.ts +11 -11
- package/k6/getLoadTest.js +6 -6
- package/k6/getLoadTests.d.ts +16 -16
- package/k6/getLoadTests.js +12 -12
- package/k6/getProject.d.ts +9 -9
- package/k6/getProject.js +6 -6
- package/k6/getProjectLimits.d.ts +10 -10
- package/k6/getProjectLimits.js +6 -6
- package/k6/getProjects.d.ts +0 -2
- package/k6/getProjects.js +0 -2
- package/k6/getProjects.js.map +1 -1
- package/k6/loadTest.d.ts +6 -6
- package/k6/projectLimits.d.ts +3 -3
- package/oncall/escalationChain.d.ts +13 -4
- package/oncall/escalationChain.js +10 -1
- package/oncall/escalationChain.js.map +1 -1
- package/oncall/getIntegration.d.ts +4 -0
- package/oncall/getIntegration.js.map +1 -1
- package/oncall/getTeam.d.ts +10 -4
- package/oncall/getTeam.js +10 -4
- package/oncall/getTeam.js.map +1 -1
- package/oncall/integration.d.ts +24 -36
- package/oncall/integration.js +2 -30
- package/oncall/integration.js.map +1 -1
- package/oncall/onCallShift.d.ts +3 -3
- package/oncall/outgoingWebhook.d.ts +10 -3
- package/oncall/outgoingWebhook.js +7 -0
- package/oncall/outgoingWebhook.js.map +1 -1
- package/oncall/schedule.d.ts +6 -6
- package/oncallEscalationChain.d.ts +13 -4
- package/oncallEscalationChain.js +10 -1
- package/oncallEscalationChain.js.map +1 -1
- package/oncallIntegration.d.ts +24 -36
- package/oncallIntegration.js +2 -30
- package/oncallIntegration.js.map +1 -1
- package/oncallOnCallShift.d.ts +3 -3
- package/oncallOutgoingWebhook.d.ts +10 -3
- package/oncallOutgoingWebhook.js +7 -0
- package/oncallOutgoingWebhook.js.map +1 -1
- package/oncallSchedule.d.ts +6 -6
- package/package.json +2 -2
- package/syntheticMonitoringCheck.d.ts +3 -3
- package/syntheticmonitoring/check.d.ts +3 -3
- package/syntheticmonitoring/checkAlerts.d.ts +109 -0
- package/syntheticmonitoring/checkAlerts.js +104 -0
- package/syntheticmonitoring/checkAlerts.js.map +1 -0
- package/syntheticmonitoring/index.d.ts +3 -0
- package/syntheticmonitoring/index.js +6 -1
- package/syntheticmonitoring/index.js.map +1 -1
- package/types/input.d.ts +35 -5
- package/types/output.d.ts +39 -9
package/oncallIntegration.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oncallIntegration.js","sourceRoot":"","sources":["../oncallIntegration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"oncallIntegration.js","sourceRoot":"","sources":["../oncallIntegration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;GA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,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAzGL,8CA0GC;AA3FG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
package/oncallOnCallShift.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare class OncallOnCallShift extends pulumi.CustomResource {
|
|
|
71
71
|
*/
|
|
72
72
|
readonly startRotationFromUserIndex: pulumi.Output<number | undefined>;
|
|
73
73
|
/**
|
|
74
|
-
* The ID of the OnCall team
|
|
74
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
75
75
|
*/
|
|
76
76
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
77
77
|
/**
|
|
@@ -153,7 +153,7 @@ export interface OncallOnCallShiftState {
|
|
|
153
153
|
*/
|
|
154
154
|
startRotationFromUserIndex?: pulumi.Input<number>;
|
|
155
155
|
/**
|
|
156
|
-
* The ID of the OnCall team
|
|
156
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
157
157
|
*/
|
|
158
158
|
teamId?: pulumi.Input<string>;
|
|
159
159
|
/**
|
|
@@ -226,7 +226,7 @@ export interface OncallOnCallShiftArgs {
|
|
|
226
226
|
*/
|
|
227
227
|
startRotationFromUserIndex?: pulumi.Input<number>;
|
|
228
228
|
/**
|
|
229
|
-
* The ID of the OnCall team
|
|
229
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
230
230
|
*/
|
|
231
231
|
teamId?: pulumi.Input<string>;
|
|
232
232
|
/**
|
|
@@ -8,9 +8,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as grafana from "@pulumiverse/grafana";
|
|
10
10
|
*
|
|
11
|
+
* const myTeam = grafana.oss.getTeam({
|
|
12
|
+
* name: "my team",
|
|
13
|
+
* });
|
|
14
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
15
|
+
* name: myTeam.name,
|
|
16
|
+
* }));
|
|
11
17
|
* const test_acc_outgoingWebhook = new grafana.oncall.OutgoingWebhook("test-acc-outgoing_webhook", {
|
|
12
18
|
* name: "my outgoing webhook",
|
|
13
19
|
* url: "https://example.com/",
|
|
20
|
+
* teamId: myTeamGetTeam.then(myTeamGetTeam => myTeamGetTeam.id),
|
|
14
21
|
* });
|
|
15
22
|
* ```
|
|
16
23
|
*
|
|
@@ -75,7 +82,7 @@ export declare class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
|
75
82
|
*/
|
|
76
83
|
readonly password: pulumi.Output<string | undefined>;
|
|
77
84
|
/**
|
|
78
|
-
* The ID of the OnCall team
|
|
85
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
79
86
|
*/
|
|
80
87
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
81
88
|
/**
|
|
@@ -145,7 +152,7 @@ export interface OncallOutgoingWebhookState {
|
|
|
145
152
|
*/
|
|
146
153
|
password?: pulumi.Input<string>;
|
|
147
154
|
/**
|
|
148
|
-
* The ID of the OnCall team
|
|
155
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
149
156
|
*/
|
|
150
157
|
teamId?: pulumi.Input<string>;
|
|
151
158
|
/**
|
|
@@ -206,7 +213,7 @@ export interface OncallOutgoingWebhookArgs {
|
|
|
206
213
|
*/
|
|
207
214
|
password?: pulumi.Input<string>;
|
|
208
215
|
/**
|
|
209
|
-
* The ID of the OnCall team
|
|
216
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
210
217
|
*/
|
|
211
218
|
teamId?: pulumi.Input<string>;
|
|
212
219
|
/**
|
package/oncallOutgoingWebhook.js
CHANGED
|
@@ -14,9 +14,16 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as grafana from "@pulumiverse/grafana";
|
|
16
16
|
*
|
|
17
|
+
* const myTeam = grafana.oss.getTeam({
|
|
18
|
+
* name: "my team",
|
|
19
|
+
* });
|
|
20
|
+
* const myTeamGetTeam = myTeam.then(myTeam => grafana.onCall.getTeam({
|
|
21
|
+
* name: myTeam.name,
|
|
22
|
+
* }));
|
|
17
23
|
* const test_acc_outgoingWebhook = new grafana.oncall.OutgoingWebhook("test-acc-outgoing_webhook", {
|
|
18
24
|
* name: "my outgoing webhook",
|
|
19
25
|
* url: "https://example.com/",
|
|
26
|
+
* teamId: myTeamGetTeam.then(myTeamGetTeam => myTeamGetTeam.id),
|
|
20
27
|
* });
|
|
21
28
|
* ```
|
|
22
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oncallOutgoingWebhook.js","sourceRoot":"","sources":["../oncallOutgoingWebhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"oncallOutgoingWebhook.js","sourceRoot":"","sources":["../oncallOutgoing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
|
|
54
54
|
readonly slack: pulumi.Output<outputs.OncallScheduleSlack | undefined>;
|
|
55
55
|
/**
|
|
56
|
-
* The ID of the OnCall team
|
|
56
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
57
57
|
*/
|
|
58
58
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
59
59
|
/**
|
|
@@ -61,7 +61,7 @@ export declare class OncallSchedule extends pulumi.CustomResource {
|
|
|
61
61
|
*/
|
|
62
62
|
readonly timeZone: pulumi.Output<string | undefined>;
|
|
63
63
|
/**
|
|
64
|
-
* The schedule's type. Valid values are `ical`, `calendar`.
|
|
64
|
+
* The schedule's type. Valid values are `ical`, `calendar`, `web`.
|
|
65
65
|
*/
|
|
66
66
|
readonly type: pulumi.Output<string>;
|
|
67
67
|
/**
|
|
@@ -103,7 +103,7 @@ export interface OncallScheduleState {
|
|
|
103
103
|
*/
|
|
104
104
|
slack?: pulumi.Input<inputs.OncallScheduleSlack>;
|
|
105
105
|
/**
|
|
106
|
-
* The ID of the OnCall team
|
|
106
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
107
107
|
*/
|
|
108
108
|
teamId?: pulumi.Input<string>;
|
|
109
109
|
/**
|
|
@@ -111,7 +111,7 @@ export interface OncallScheduleState {
|
|
|
111
111
|
*/
|
|
112
112
|
timeZone?: pulumi.Input<string>;
|
|
113
113
|
/**
|
|
114
|
-
* The schedule's type. Valid values are `ical`, `calendar`.
|
|
114
|
+
* The schedule's type. Valid values are `ical`, `calendar`, `web`.
|
|
115
115
|
*/
|
|
116
116
|
type?: pulumi.Input<string>;
|
|
117
117
|
}
|
|
@@ -144,7 +144,7 @@ export interface OncallScheduleArgs {
|
|
|
144
144
|
*/
|
|
145
145
|
slack?: pulumi.Input<inputs.OncallScheduleSlack>;
|
|
146
146
|
/**
|
|
147
|
-
* The ID of the OnCall team
|
|
147
|
+
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
|
|
148
148
|
*/
|
|
149
149
|
teamId?: pulumi.Input<string>;
|
|
150
150
|
/**
|
|
@@ -152,7 +152,7 @@ export interface OncallScheduleArgs {
|
|
|
152
152
|
*/
|
|
153
153
|
timeZone?: pulumi.Input<string>;
|
|
154
154
|
/**
|
|
155
|
-
* The schedule's type. Valid values are `ical`, `calendar`.
|
|
155
|
+
* The schedule's type. Valid values are `ical`, `calendar`, `web`.
|
|
156
156
|
*/
|
|
157
157
|
type: pulumi.Input<string>;
|
|
158
158
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/grafana",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing grafana.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "grafana",
|
|
27
|
-
"version": "0.
|
|
27
|
+
"version": "0.19.0",
|
|
28
28
|
"server": "github://api.github.com/pulumiverse"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -446,7 +446,7 @@ export declare class SyntheticMonitoringCheck extends pulumi.CustomResource {
|
|
|
446
446
|
*/
|
|
447
447
|
readonly tenantId: pulumi.Output<number>;
|
|
448
448
|
/**
|
|
449
|
-
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum
|
|
449
|
+
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum 180 seconds (180000 ms). Defaults to `3000`.
|
|
450
450
|
*/
|
|
451
451
|
readonly timeout: pulumi.Output<number | undefined>;
|
|
452
452
|
/**
|
|
@@ -506,7 +506,7 @@ export interface SyntheticMonitoringCheckState {
|
|
|
506
506
|
*/
|
|
507
507
|
tenantId?: pulumi.Input<number>;
|
|
508
508
|
/**
|
|
509
|
-
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum
|
|
509
|
+
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum 180 seconds (180000 ms). Defaults to `3000`.
|
|
510
510
|
*/
|
|
511
511
|
timeout?: pulumi.Input<number>;
|
|
512
512
|
}
|
|
@@ -553,7 +553,7 @@ export interface SyntheticMonitoringCheckArgs {
|
|
|
553
553
|
*/
|
|
554
554
|
target: pulumi.Input<string>;
|
|
555
555
|
/**
|
|
556
|
-
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum
|
|
556
|
+
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum 180 seconds (180000 ms). Defaults to `3000`.
|
|
557
557
|
*/
|
|
558
558
|
timeout?: pulumi.Input<number>;
|
|
559
559
|
}
|
|
@@ -444,7 +444,7 @@ export declare class Check extends pulumi.CustomResource {
|
|
|
444
444
|
*/
|
|
445
445
|
readonly tenantId: pulumi.Output<number>;
|
|
446
446
|
/**
|
|
447
|
-
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum
|
|
447
|
+
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum 180 seconds (180000 ms). Defaults to `3000`.
|
|
448
448
|
*/
|
|
449
449
|
readonly timeout: pulumi.Output<number | undefined>;
|
|
450
450
|
/**
|
|
@@ -503,7 +503,7 @@ export interface CheckState {
|
|
|
503
503
|
*/
|
|
504
504
|
tenantId?: pulumi.Input<number>;
|
|
505
505
|
/**
|
|
506
|
-
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum
|
|
506
|
+
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum 180 seconds (180000 ms). Defaults to `3000`.
|
|
507
507
|
*/
|
|
508
508
|
timeout?: pulumi.Input<number>;
|
|
509
509
|
}
|
|
@@ -550,7 +550,7 @@ export interface CheckArgs {
|
|
|
550
550
|
*/
|
|
551
551
|
target: pulumi.Input<string>;
|
|
552
552
|
/**
|
|
553
|
-
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum
|
|
553
|
+
* Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum 180 seconds (180000 ms). Defaults to `3000`.
|
|
554
554
|
*/
|
|
555
555
|
timeout?: pulumi.Input<number>;
|
|
556
556
|
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages alerts for a check in Grafana Synthetic Monitoring.
|
|
6
|
+
*
|
|
7
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/configure-alerts/configure-per-check-alerts/)
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
14
|
+
*
|
|
15
|
+
* const main = new grafana.syntheticmonitoring.Check("main", {
|
|
16
|
+
* job: "Check Alert Test",
|
|
17
|
+
* target: "https://grafana.com",
|
|
18
|
+
* enabled: true,
|
|
19
|
+
* probes: [1],
|
|
20
|
+
* labels: {},
|
|
21
|
+
* settings: {
|
|
22
|
+
* http: {
|
|
23
|
+
* ipVersion: "V4",
|
|
24
|
+
* method: "GET",
|
|
25
|
+
* },
|
|
26
|
+
* },
|
|
27
|
+
* });
|
|
28
|
+
* const mainCheckAlerts = new grafana.syntheticmonitoring.CheckAlerts("main", {
|
|
29
|
+
* checkId: main.id,
|
|
30
|
+
* alerts: [
|
|
31
|
+
* {
|
|
32
|
+
* name: "ProbeFailedExecutionsTooHigh",
|
|
33
|
+
* threshold: 1,
|
|
34
|
+
* period: "15m",
|
|
35
|
+
* },
|
|
36
|
+
* {
|
|
37
|
+
* name: "TLSTargetCertificateCloseToExpiring",
|
|
38
|
+
* threshold: 14,
|
|
39
|
+
* period: "",
|
|
40
|
+
* },
|
|
41
|
+
* ],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ## Import
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import grafana:syntheticMonitoring/checkAlerts:CheckAlerts name "{{ check_id }}"
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare class CheckAlerts extends pulumi.CustomResource {
|
|
52
|
+
/**
|
|
53
|
+
* Get an existing CheckAlerts resource's state with the given name, ID, and optional extra
|
|
54
|
+
* properties used to qualify the lookup.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resulting resource.
|
|
57
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
58
|
+
* @param state Any extra arguments used during the lookup.
|
|
59
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
60
|
+
*/
|
|
61
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CheckAlertsState, opts?: pulumi.CustomResourceOptions): CheckAlerts;
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the given object is an instance of CheckAlerts. This is designed to work even
|
|
64
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
65
|
+
*/
|
|
66
|
+
static isInstance(obj: any): obj is CheckAlerts;
|
|
67
|
+
/**
|
|
68
|
+
* List of alerts for the check.
|
|
69
|
+
*/
|
|
70
|
+
readonly alerts: pulumi.Output<outputs.syntheticMonitoring.CheckAlertsAlert[]>;
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the check to manage alerts for.
|
|
73
|
+
*/
|
|
74
|
+
readonly checkId: pulumi.Output<number>;
|
|
75
|
+
/**
|
|
76
|
+
* Create a CheckAlerts resource with the given unique name, arguments, and options.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resource.
|
|
79
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
80
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
81
|
+
*/
|
|
82
|
+
constructor(name: string, args: CheckAlertsArgs, opts?: pulumi.CustomResourceOptions);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Input properties used for looking up and filtering CheckAlerts resources.
|
|
86
|
+
*/
|
|
87
|
+
export interface CheckAlertsState {
|
|
88
|
+
/**
|
|
89
|
+
* List of alerts for the check.
|
|
90
|
+
*/
|
|
91
|
+
alerts?: pulumi.Input<pulumi.Input<inputs.syntheticMonitoring.CheckAlertsAlert>[]>;
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the check to manage alerts for.
|
|
94
|
+
*/
|
|
95
|
+
checkId?: pulumi.Input<number>;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The set of arguments for constructing a CheckAlerts resource.
|
|
99
|
+
*/
|
|
100
|
+
export interface CheckAlertsArgs {
|
|
101
|
+
/**
|
|
102
|
+
* List of alerts for the check.
|
|
103
|
+
*/
|
|
104
|
+
alerts: pulumi.Input<pulumi.Input<inputs.syntheticMonitoring.CheckAlertsAlert>[]>;
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the check to manage alerts for.
|
|
107
|
+
*/
|
|
108
|
+
checkId: pulumi.Input<number>;
|
|
109
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
exports.CheckAlerts = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages alerts for a check in Grafana Synthetic Monitoring.
|
|
10
|
+
*
|
|
11
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/configure-alerts/configure-per-check-alerts/)
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
18
|
+
*
|
|
19
|
+
* const main = new grafana.syntheticmonitoring.Check("main", {
|
|
20
|
+
* job: "Check Alert Test",
|
|
21
|
+
* target: "https://grafana.com",
|
|
22
|
+
* enabled: true,
|
|
23
|
+
* probes: [1],
|
|
24
|
+
* labels: {},
|
|
25
|
+
* settings: {
|
|
26
|
+
* http: {
|
|
27
|
+
* ipVersion: "V4",
|
|
28
|
+
* method: "GET",
|
|
29
|
+
* },
|
|
30
|
+
* },
|
|
31
|
+
* });
|
|
32
|
+
* const mainCheckAlerts = new grafana.syntheticmonitoring.CheckAlerts("main", {
|
|
33
|
+
* checkId: main.id,
|
|
34
|
+
* alerts: [
|
|
35
|
+
* {
|
|
36
|
+
* name: "ProbeFailedExecutionsTooHigh",
|
|
37
|
+
* threshold: 1,
|
|
38
|
+
* period: "15m",
|
|
39
|
+
* },
|
|
40
|
+
* {
|
|
41
|
+
* name: "TLSTargetCertificateCloseToExpiring",
|
|
42
|
+
* threshold: 14,
|
|
43
|
+
* period: "",
|
|
44
|
+
* },
|
|
45
|
+
* ],
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ## Import
|
|
50
|
+
*
|
|
51
|
+
* ```sh
|
|
52
|
+
* $ pulumi import grafana:syntheticMonitoring/checkAlerts:CheckAlerts name "{{ check_id }}"
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
class CheckAlerts extends pulumi.CustomResource {
|
|
56
|
+
/**
|
|
57
|
+
* Get an existing CheckAlerts resource's state with the given name, ID, and optional extra
|
|
58
|
+
* properties used to qualify the lookup.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resulting resource.
|
|
61
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
62
|
+
* @param state Any extra arguments used during the lookup.
|
|
63
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
64
|
+
*/
|
|
65
|
+
static get(name, id, state, opts) {
|
|
66
|
+
return new CheckAlerts(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Returns true if the given object is an instance of CheckAlerts. This is designed to work even
|
|
70
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
71
|
+
*/
|
|
72
|
+
static isInstance(obj) {
|
|
73
|
+
if (obj === undefined || obj === null) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
return obj['__pulumiType'] === CheckAlerts.__pulumiType;
|
|
77
|
+
}
|
|
78
|
+
constructor(name, argsOrState, opts) {
|
|
79
|
+
let resourceInputs = {};
|
|
80
|
+
opts = opts || {};
|
|
81
|
+
if (opts.id) {
|
|
82
|
+
const state = argsOrState;
|
|
83
|
+
resourceInputs["alerts"] = state ? state.alerts : undefined;
|
|
84
|
+
resourceInputs["checkId"] = state ? state.checkId : undefined;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
const args = argsOrState;
|
|
88
|
+
if ((!args || args.alerts === undefined) && !opts.urn) {
|
|
89
|
+
throw new Error("Missing required property 'alerts'");
|
|
90
|
+
}
|
|
91
|
+
if ((!args || args.checkId === undefined) && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'checkId'");
|
|
93
|
+
}
|
|
94
|
+
resourceInputs["alerts"] = args ? args.alerts : undefined;
|
|
95
|
+
resourceInputs["checkId"] = args ? args.checkId : undefined;
|
|
96
|
+
}
|
|
97
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
98
|
+
super(CheckAlerts.__pulumiType, name, resourceInputs, opts);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.CheckAlerts = CheckAlerts;
|
|
102
|
+
/** @internal */
|
|
103
|
+
CheckAlerts.__pulumiType = 'grafana:syntheticMonitoring/checkAlerts:CheckAlerts';
|
|
104
|
+
//# sourceMappingURL=checkAlerts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkAlerts.js","sourceRoot":"","sources":["../../syntheticmonitoring/checkAlerts.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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;IAmBD,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,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,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;;AAjEL,kCAkEC;AApDG,gBAAgB;AACO,wBAAY,GAAG,qDAAqD,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { CheckArgs, CheckState } from "./check";
|
|
2
2
|
export type Check = import("./check").Check;
|
|
3
3
|
export declare const Check: typeof import("./check").Check;
|
|
4
|
+
export { CheckAlertsArgs, CheckAlertsState } from "./checkAlerts";
|
|
5
|
+
export type CheckAlerts = import("./checkAlerts").CheckAlerts;
|
|
6
|
+
export declare const CheckAlerts: typeof import("./checkAlerts").CheckAlerts;
|
|
4
7
|
export { GetProbeArgs, GetProbeResult, GetProbeOutputArgs } from "./getProbe";
|
|
5
8
|
export declare const getProbe: typeof import("./getProbe").getProbe;
|
|
6
9
|
export declare const getProbeOutput: typeof import("./getProbe").getProbeOutput;
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Probe = exports.Installation = exports.getProbesOutput = exports.getProbes = exports.getProbeOutput = exports.getProbe = exports.Check = void 0;
|
|
5
|
+
exports.Probe = exports.Installation = exports.getProbesOutput = exports.getProbes = exports.getProbeOutput = exports.getProbe = exports.CheckAlerts = exports.Check = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.Check = null;
|
|
9
9
|
utilities.lazyLoad(exports, ["Check"], () => require("./check"));
|
|
10
|
+
exports.CheckAlerts = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["CheckAlerts"], () => require("./checkAlerts"));
|
|
10
12
|
exports.getProbe = null;
|
|
11
13
|
exports.getProbeOutput = null;
|
|
12
14
|
utilities.lazyLoad(exports, ["getProbe", "getProbeOutput"], () => require("./getProbe"));
|
|
@@ -23,6 +25,8 @@ const _module = {
|
|
|
23
25
|
switch (type) {
|
|
24
26
|
case "grafana:syntheticMonitoring/check:Check":
|
|
25
27
|
return new exports.Check(name, undefined, { urn });
|
|
28
|
+
case "grafana:syntheticMonitoring/checkAlerts:CheckAlerts":
|
|
29
|
+
return new exports.CheckAlerts(name, undefined, { urn });
|
|
26
30
|
case "grafana:syntheticMonitoring/installation:Installation":
|
|
27
31
|
return new exports.Installation(name, undefined, { urn });
|
|
28
32
|
case "grafana:syntheticMonitoring/probe:Probe":
|
|
@@ -33,6 +37,7 @@ const _module = {
|
|
|
33
37
|
},
|
|
34
38
|
};
|
|
35
39
|
pulumi.runtime.registerResourceModule("grafana", "syntheticMonitoring/check", _module);
|
|
40
|
+
pulumi.runtime.registerResourceModule("grafana", "syntheticMonitoring/checkAlerts", _module);
|
|
36
41
|
pulumi.runtime.registerResourceModule("grafana", "syntheticMonitoring/installation", _module);
|
|
37
42
|
pulumi.runtime.registerResourceModule("grafana", "syntheticMonitoring/probe", _module);
|
|
38
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../syntheticmonitoring/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../syntheticmonitoring/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,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,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAGhE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC7D,QAAA,cAAc,GAA+C,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,EAAC,gBAAgB,CAAC,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I,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,iCAAiC,EAAE,OAAO,CAAC,CAAA;AAC5F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,kCAAkC,EAAE,OAAO,CAAC,CAAA;AAC7F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA"}
|
package/types/input.d.ts
CHANGED
|
@@ -1603,6 +1603,10 @@ export interface RuleGroupRule {
|
|
|
1603
1603
|
labels?: pulumi.Input<{
|
|
1604
1604
|
[key: string]: pulumi.Input<string>;
|
|
1605
1605
|
}>;
|
|
1606
|
+
/**
|
|
1607
|
+
* The number of missing series evaluations that must occur before the rule is considered to be resolved.
|
|
1608
|
+
*/
|
|
1609
|
+
missingSeriesEvalsToResolve?: pulumi.Input<number>;
|
|
1606
1610
|
/**
|
|
1607
1611
|
* The name of the alert rule.
|
|
1608
1612
|
*/
|
|
@@ -1691,6 +1695,10 @@ export interface RuleGroupRuleRecord {
|
|
|
1691
1695
|
* The name of the metric to write to.
|
|
1692
1696
|
*/
|
|
1693
1697
|
metric: pulumi.Input<string>;
|
|
1698
|
+
/**
|
|
1699
|
+
* The UID of the datasource to write the metric to.
|
|
1700
|
+
*/
|
|
1701
|
+
targetDatasourceUid?: pulumi.Input<string>;
|
|
1694
1702
|
}
|
|
1695
1703
|
export interface SLOAlerting {
|
|
1696
1704
|
/**
|
|
@@ -4050,6 +4058,10 @@ export declare namespace alerting {
|
|
|
4050
4058
|
labels?: pulumi.Input<{
|
|
4051
4059
|
[key: string]: pulumi.Input<string>;
|
|
4052
4060
|
}>;
|
|
4061
|
+
/**
|
|
4062
|
+
* The number of missing series evaluations that must occur before the rule is considered to be resolved.
|
|
4063
|
+
*/
|
|
4064
|
+
missingSeriesEvalsToResolve?: pulumi.Input<number>;
|
|
4053
4065
|
/**
|
|
4054
4066
|
* The name of the alert rule.
|
|
4055
4067
|
*/
|
|
@@ -4138,6 +4150,10 @@ export declare namespace alerting {
|
|
|
4138
4150
|
* The name of the metric to write to.
|
|
4139
4151
|
*/
|
|
4140
4152
|
metric: pulumi.Input<string>;
|
|
4153
|
+
/**
|
|
4154
|
+
* The UID of the datasource to write the metric to.
|
|
4155
|
+
*/
|
|
4156
|
+
targetDatasourceUid?: pulumi.Input<string>;
|
|
4141
4157
|
}
|
|
4142
4158
|
}
|
|
4143
4159
|
export declare namespace cloud {
|
|
@@ -4590,7 +4606,7 @@ export declare namespace cloud {
|
|
|
4590
4606
|
*/
|
|
4591
4607
|
name: pulumi.Input<string>;
|
|
4592
4608
|
/**
|
|
4593
|
-
* The interval in seconds to scrape the custom namespace.
|
|
4609
|
+
* The interval in seconds to scrape the custom namespace. Defaults to `300`.
|
|
4594
4610
|
*/
|
|
4595
4611
|
scrapeIntervalSeconds?: pulumi.Input<number>;
|
|
4596
4612
|
}
|
|
@@ -4618,7 +4634,7 @@ export declare namespace cloud {
|
|
|
4618
4634
|
*/
|
|
4619
4635
|
resourceDiscoveryTagFilters?: pulumi.Input<pulumi.Input<inputs.cloud.ProviderAwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilter>[]>;
|
|
4620
4636
|
/**
|
|
4621
|
-
* The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
|
|
4637
|
+
* The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals. Defaults to `300`.
|
|
4622
4638
|
*/
|
|
4623
4639
|
scrapeIntervalSeconds?: pulumi.Input<number>;
|
|
4624
4640
|
/**
|
|
@@ -4687,7 +4703,7 @@ export declare namespace cloudProvider {
|
|
|
4687
4703
|
*/
|
|
4688
4704
|
name: pulumi.Input<string>;
|
|
4689
4705
|
/**
|
|
4690
|
-
* The interval in seconds to scrape the custom namespace.
|
|
4706
|
+
* The interval in seconds to scrape the custom namespace. Defaults to `300`.
|
|
4691
4707
|
*/
|
|
4692
4708
|
scrapeIntervalSeconds?: pulumi.Input<number>;
|
|
4693
4709
|
}
|
|
@@ -4715,7 +4731,7 @@ export declare namespace cloudProvider {
|
|
|
4715
4731
|
*/
|
|
4716
4732
|
resourceDiscoveryTagFilters?: pulumi.Input<pulumi.Input<inputs.cloudProvider.AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilter>[]>;
|
|
4717
4733
|
/**
|
|
4718
|
-
* The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
|
|
4734
|
+
* The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals. Defaults to `300`.
|
|
4719
4735
|
*/
|
|
4720
4736
|
scrapeIntervalSeconds?: pulumi.Input<number>;
|
|
4721
4737
|
/**
|
|
@@ -4753,7 +4769,7 @@ export declare namespace cloudProvider {
|
|
|
4753
4769
|
*/
|
|
4754
4770
|
resourceDiscoveryTagFilters?: pulumi.Input<pulumi.Input<inputs.cloudProvider.AwsResourceMetadataScrapeJobServiceResourceDiscoveryTagFilter>[]>;
|
|
4755
4771
|
/**
|
|
4756
|
-
* The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
|
|
4772
|
+
* The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals. Defaults to `300`.
|
|
4757
4773
|
*/
|
|
4758
4774
|
scrapeIntervalSeconds?: pulumi.Input<number>;
|
|
4759
4775
|
}
|
|
@@ -6360,6 +6376,20 @@ export declare namespace slo {
|
|
|
6360
6376
|
}
|
|
6361
6377
|
}
|
|
6362
6378
|
export declare namespace syntheticMonitoring {
|
|
6379
|
+
interface CheckAlertsAlert {
|
|
6380
|
+
/**
|
|
6381
|
+
* Name of the alert. Required.
|
|
6382
|
+
*/
|
|
6383
|
+
name: pulumi.Input<string>;
|
|
6384
|
+
/**
|
|
6385
|
+
* Period for the alert. Required and must be one of: `5m`, `10m`, `15m`, `20m`, `30m`, `1h`.
|
|
6386
|
+
*/
|
|
6387
|
+
period?: pulumi.Input<string>;
|
|
6388
|
+
/**
|
|
6389
|
+
* Threshold value for the alert.
|
|
6390
|
+
*/
|
|
6391
|
+
threshold: pulumi.Input<number>;
|
|
6392
|
+
}
|
|
6363
6393
|
interface CheckSettings {
|
|
6364
6394
|
/**
|
|
6365
6395
|
* Settings for browser check. See https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/create-checks/checks/k6-browser/.
|