@pulumiverse/grafana 0.2.1-alpha.1709570924
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 +54 -0
- package/annotation.d.ts +151 -0
- package/annotation.js +79 -0
- package/annotation.js.map +1 -0
- package/apiKey.d.ts +77 -0
- package/apiKey.js +80 -0
- package/apiKey.js.map +1 -0
- package/cloudAccessPolicy.d.ts +156 -0
- package/cloudAccessPolicy.js +115 -0
- package/cloudAccessPolicy.js.map +1 -0
- package/cloudAccessPolicyToken.d.ts +151 -0
- package/cloudAccessPolicyToken.js +108 -0
- package/cloudAccessPolicyToken.js.map +1 -0
- package/cloudApiKey.d.ts +102 -0
- package/cloudApiKey.js +85 -0
- package/cloudApiKey.js.map +1 -0
- package/cloudPluginInstallation.d.ts +96 -0
- package/cloudPluginInstallation.js +86 -0
- package/cloudPluginInstallation.js.map +1 -0
- package/cloudStack.d.ts +291 -0
- package/cloudStack.js +142 -0
- package/cloudStack.js.map +1 -0
- package/cloudStackApiKey.d.ts +52 -0
- package/cloudStackApiKey.js +67 -0
- package/cloudStackApiKey.js.map +1 -0
- package/cloudStackServiceAccount.d.ts +97 -0
- package/cloudStackServiceAccount.js +80 -0
- package/cloudStackServiceAccount.js.map +1 -0
- package/cloudStackServiceAccountToken.d.ts +78 -0
- package/cloudStackServiceAccountToken.js +93 -0
- package/cloudStackServiceAccountToken.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +89 -0
- package/config/vars.js +131 -0
- package/config/vars.js.map +1 -0
- package/contactPoint.d.ts +310 -0
- package/contactPoint.js +119 -0
- package/contactPoint.js.map +1 -0
- package/dashboard.d.ts +154 -0
- package/dashboard.js +94 -0
- package/dashboard.js.map +1 -0
- package/dashboardPermission.d.ts +131 -0
- package/dashboardPermission.js +97 -0
- package/dashboardPermission.js.map +1 -0
- package/dataSource.d.ts +294 -0
- package/dataSource.js +164 -0
- package/dataSource.js.map +1 -0
- package/dataSourcePermission.d.ts +124 -0
- package/dataSourcePermission.js +109 -0
- package/dataSourcePermission.js.map +1 -0
- package/folder.d.ts +127 -0
- package/folder.js +95 -0
- package/folder.js.map +1 -0
- package/folderPermission.d.ts +106 -0
- package/folderPermission.js +91 -0
- package/folderPermission.js.map +1 -0
- package/getCloudIps.d.ts +56 -0
- package/getCloudIps.js +41 -0
- package/getCloudIps.js.map +1 -0
- package/getCloudOrganization.d.ts +37 -0
- package/getCloudOrganization.js +21 -0
- package/getCloudOrganization.js.map +1 -0
- package/getCloudStack.d.ts +130 -0
- package/getCloudStack.js +25 -0
- package/getCloudStack.js.map +1 -0
- package/getDashboard.d.ts +134 -0
- package/getDashboard.js +81 -0
- package/getDashboard.js.map +1 -0
- package/getDashboards.d.ts +74 -0
- package/getDashboards.js +36 -0
- package/getDashboards.js.map +1 -0
- package/getDataSource.d.ts +156 -0
- package/getDataSource.js +95 -0
- package/getDataSource.js.map +1 -0
- package/getFolder.d.ts +82 -0
- package/getFolder.js +59 -0
- package/getFolder.js.map +1 -0
- package/getFolders.d.ts +61 -0
- package/getFolders.js +61 -0
- package/getFolders.js.map +1 -0
- package/getLibraryPanel.d.ts +108 -0
- package/getLibraryPanel.js +28 -0
- package/getLibraryPanel.js.map +1 -0
- package/getOnCallSlackChannel.d.ts +66 -0
- package/getOnCallSlackChannel.js +47 -0
- package/getOnCallSlackChannel.js.map +1 -0
- package/getOncallAction.d.ts +46 -0
- package/getOncallAction.js +31 -0
- package/getOncallAction.js.map +1 -0
- package/getOncallEscalationChain.d.ts +62 -0
- package/getOncallEscalationChain.js +47 -0
- package/getOncallEscalationChain.js.map +1 -0
- package/getOncallOutgoingWebhook.d.ts +62 -0
- package/getOncallOutgoingWebhook.js +47 -0
- package/getOncallOutgoingWebhook.js.map +1 -0
- package/getOncallSchedule.d.ts +68 -0
- package/getOncallSchedule.js +49 -0
- package/getOncallSchedule.js.map +1 -0
- package/getOncallTeam.d.ts +60 -0
- package/getOncallTeam.js +43 -0
- package/getOncallTeam.js.map +1 -0
- package/getOncallUser.d.ts +70 -0
- package/getOncallUser.js +47 -0
- package/getOncallUser.js.map +1 -0
- package/getOncallUserGroup.d.ts +54 -0
- package/getOncallUserGroup.js +47 -0
- package/getOncallUserGroup.js.map +1 -0
- package/getOrganization.d.ts +94 -0
- package/getOrganization.js +67 -0
- package/getOrganization.js.map +1 -0
- package/getOrganizationPreferences.d.ts +62 -0
- package/getOrganizationPreferences.js +43 -0
- package/getOrganizationPreferences.js.map +1 -0
- package/getRole.d.ts +147 -0
- package/getRole.js +95 -0
- package/getRole.js.map +1 -0
- package/getSlos.d.ts +31 -0
- package/getSlos.js +31 -0
- package/getSlos.js.map +1 -0
- package/getSyntheticMonitoringProbe.d.ts +88 -0
- package/getSyntheticMonitoringProbe.js +47 -0
- package/getSyntheticMonitoringProbe.js.map +1 -0
- package/getSyntheticMonitoringProbes.d.ts +64 -0
- package/getSyntheticMonitoringProbes.js +44 -0
- package/getSyntheticMonitoringProbes.js.map +1 -0
- package/getTeam.d.ts +83 -0
- package/getTeam.js +67 -0
- package/getTeam.js.map +1 -0
- package/getUser.d.ts +128 -0
- package/getUser.js +84 -0
- package/getUser.js.map +1 -0
- package/getUsers.d.ts +61 -0
- package/getUsers.js +61 -0
- package/getUsers.js.map +1 -0
- package/index.d.ts +228 -0
- package/index.js +353 -0
- package/index.js.map +1 -0
- package/libraryPanel.d.ts +193 -0
- package/libraryPanel.js +103 -0
- package/libraryPanel.js.map +1 -0
- package/machineLearningHoliday.d.ts +103 -0
- package/machineLearningHoliday.js +62 -0
- package/machineLearningHoliday.js.map +1 -0
- package/machineLearningJob.d.ts +201 -0
- package/machineLearningJob.js +83 -0
- package/machineLearningJob.js.map +1 -0
- package/machineLearningOutlierDetector.d.ts +159 -0
- package/machineLearningOutlierDetector.js +84 -0
- package/machineLearningOutlierDetector.js.map +1 -0
- package/messageTemplate.d.ts +86 -0
- package/messageTemplate.js +80 -0
- package/messageTemplate.js.map +1 -0
- package/muteTiming.d.ts +106 -0
- package/muteTiming.js +95 -0
- package/muteTiming.js.map +1 -0
- package/notificationPolicy.d.ts +186 -0
- package/notificationPolicy.js +141 -0
- package/notificationPolicy.js.map +1 -0
- package/oncallEscalation.d.ts +227 -0
- package/oncallEscalation.js +124 -0
- package/oncallEscalation.js.map +1 -0
- package/oncallEscalationChain.d.ts +80 -0
- package/oncallEscalationChain.js +71 -0
- package/oncallEscalationChain.js.map +1 -0
- package/oncallIntegration.d.ts +116 -0
- package/oncallIntegration.js +75 -0
- package/oncallIntegration.js.map +1 -0
- package/oncallOnCallShift.d.ts +237 -0
- package/oncallOnCallShift.js +97 -0
- package/oncallOnCallShift.js.map +1 -0
- package/oncallOutgoingWebhook.d.ts +152 -0
- package/oncallOutgoingWebhook.js +88 -0
- package/oncallOutgoingWebhook.js.map +1 -0
- package/oncallRoute.d.ts +175 -0
- package/oncallRoute.js +116 -0
- package/oncallRoute.js.map +1 -0
- package/oncallSchedule.d.ts +187 -0
- package/oncallSchedule.js +109 -0
- package/oncallSchedule.js.map +1 -0
- package/organization.d.ts +193 -0
- package/organization.js +96 -0
- package/organization.js.map +1 -0
- package/organizationPreference.d.ts +125 -0
- package/organizationPreference.js +76 -0
- package/organizationPreference.js.map +1 -0
- package/package.json +30 -0
- package/package.json.bak +29 -0
- package/package.json.dev +29 -0
- package/playlist.d.ts +72 -0
- package/playlist.js +65 -0
- package/playlist.js.map +1 -0
- package/provider.d.ts +166 -0
- package/provider.js +64 -0
- package/provider.js.map +1 -0
- package/report.d.ts +241 -0
- package/report.js +110 -0
- package/report.js.map +1 -0
- package/role.d.ts +210 -0
- package/role.js +109 -0
- package/role.js.map +1 -0
- package/roleAssignment.d.ts +131 -0
- package/roleAssignment.js +95 -0
- package/roleAssignment.js.map +1 -0
- package/ruleGroup.d.ts +203 -0
- package/ruleGroup.js +174 -0
- package/ruleGroup.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/serviceAccount.d.ts +102 -0
- package/serviceAccount.js +73 -0
- package/serviceAccount.js.map +1 -0
- package/serviceAccountPermission.d.ts +110 -0
- package/serviceAccountPermission.js +95 -0
- package/serviceAccountPermission.js.map +1 -0
- package/serviceAccountToken.d.ts +72 -0
- package/serviceAccountToken.js +85 -0
- package/serviceAccountToken.js.map +1 -0
- package/slo.d.ts +131 -0
- package/slo.js +77 -0
- package/slo.js.map +1 -0
- package/syntheticMonitoringCheck.d.ts +555 -0
- package/syntheticMonitoringCheck.js +464 -0
- package/syntheticMonitoringCheck.js.map +1 -0
- package/syntheticMonitoringInstallation.d.ts +112 -0
- package/syntheticMonitoringInstallation.js +95 -0
- package/syntheticMonitoringInstallation.js.map +1 -0
- package/syntheticMonitoringProbe.d.ts +164 -0
- package/syntheticMonitoringProbe.js +108 -0
- package/syntheticMonitoringProbe.js.map +1 -0
- package/team.d.ts +165 -0
- package/team.js +89 -0
- package/team.js.map +1 -0
- package/teamExternalGroup.d.ts +84 -0
- package/teamExternalGroup.js +81 -0
- package/teamExternalGroup.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1914 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2011 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/user.d.ts +132 -0
- package/user.js +95 -0
- package/user.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oncallEscalation.js","sourceRoot":"","sources":["../oncallEscalation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,c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;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA7HL,4CA8HC;AAhHG,gBAAgB;AACO,6BAAY,GAAG,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/escalation_chains/)
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
10
|
+
*
|
|
11
|
+
* const _default = new grafana.OncallEscalationChain("default", {}, {
|
|
12
|
+
* provider: grafana.oncall,
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* ```sh
|
|
19
|
+
* $ pulumi import grafana:index/oncallEscalationChain:OncallEscalationChain escalation_chain_name {{escalation_chain_id}}
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class OncallEscalationChain extends pulumi.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Get an existing OncallEscalationChain resource's state with the given name, ID, and optional extra
|
|
25
|
+
* properties used to qualify the lookup.
|
|
26
|
+
*
|
|
27
|
+
* @param name The _unique_ name of the resulting resource.
|
|
28
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
29
|
+
* @param state Any extra arguments used during the lookup.
|
|
30
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
31
|
+
*/
|
|
32
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OncallEscalationChainState, opts?: pulumi.CustomResourceOptions): OncallEscalationChain;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of OncallEscalationChain. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj: any): obj is OncallEscalationChain;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the escalation chain.
|
|
40
|
+
*/
|
|
41
|
+
readonly name: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
44
|
+
*/
|
|
45
|
+
readonly teamId: pulumi.Output<string | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a OncallEscalationChain resource with the given unique name, arguments, and options.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resource.
|
|
50
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
51
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, args?: OncallEscalationChainArgs, opts?: pulumi.CustomResourceOptions);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Input properties used for looking up and filtering OncallEscalationChain resources.
|
|
57
|
+
*/
|
|
58
|
+
export interface OncallEscalationChainState {
|
|
59
|
+
/**
|
|
60
|
+
* The name of the escalation chain.
|
|
61
|
+
*/
|
|
62
|
+
name?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
65
|
+
*/
|
|
66
|
+
teamId?: pulumi.Input<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The set of arguments for constructing a OncallEscalationChain resource.
|
|
70
|
+
*/
|
|
71
|
+
export interface OncallEscalationChainArgs {
|
|
72
|
+
/**
|
|
73
|
+
* The name of the escalation chain.
|
|
74
|
+
*/
|
|
75
|
+
name?: pulumi.Input<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
78
|
+
*/
|
|
79
|
+
teamId?: pulumi.Input<string>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.OncallEscalationChain = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/escalation_chains/)
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
16
|
+
*
|
|
17
|
+
* const _default = new grafana.OncallEscalationChain("default", {}, {
|
|
18
|
+
* provider: grafana.oncall,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import grafana:index/oncallEscalationChain:OncallEscalationChain escalation_chain_name {{escalation_chain_id}}
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
class OncallEscalationChain extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing OncallEscalationChain resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name, id, state, opts) {
|
|
39
|
+
return new OncallEscalationChain(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of OncallEscalationChain. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj) {
|
|
46
|
+
if (obj === undefined || obj === null) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return obj['__pulumiType'] === OncallEscalationChain.__pulumiType;
|
|
50
|
+
}
|
|
51
|
+
constructor(name, argsOrState, opts) {
|
|
52
|
+
let resourceInputs = {};
|
|
53
|
+
opts = opts || {};
|
|
54
|
+
if (opts.id) {
|
|
55
|
+
const state = argsOrState;
|
|
56
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
57
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const args = argsOrState;
|
|
61
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
62
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
63
|
+
}
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
65
|
+
super(OncallEscalationChain.__pulumiType, name, resourceInputs, opts);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.OncallEscalationChain = OncallEscalationChain;
|
|
69
|
+
/** @internal */
|
|
70
|
+
OncallEscalationChain.__pulumiType = 'grafana:index/oncallEscalationChain:OncallEscalationChain';
|
|
71
|
+
//# sourceMappingURL=oncallEscalationChain.js.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C,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AA3DL,sDA4DC;AA9CG,gBAAgB;AACO,kCAAY,GAAG,2DAA2D,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* * [Official documentation](https://grafana.com/docs/oncall/latest/integrations/)
|
|
6
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
|
|
7
|
+
*
|
|
8
|
+
* ## Import
|
|
9
|
+
*
|
|
10
|
+
* ```sh
|
|
11
|
+
* $ pulumi import grafana:index/oncallIntegration:OncallIntegration integration_name {{integration_id}}
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class OncallIntegration extends pulumi.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get an existing OncallIntegration resource's state with the given name, ID, and optional extra
|
|
17
|
+
* properties used to qualify the lookup.
|
|
18
|
+
*
|
|
19
|
+
* @param name The _unique_ name of the resulting resource.
|
|
20
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
21
|
+
* @param state Any extra arguments used during the lookup.
|
|
22
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
23
|
+
*/
|
|
24
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OncallIntegrationState, opts?: pulumi.CustomResourceOptions): OncallIntegration;
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of OncallIntegration. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
static isInstance(obj: any): obj is OncallIntegration;
|
|
30
|
+
/**
|
|
31
|
+
* The Default route for all alerts from the given integration
|
|
32
|
+
*/
|
|
33
|
+
readonly defaultRoute: pulumi.Output<outputs.OncallIntegrationDefaultRoute>;
|
|
34
|
+
/**
|
|
35
|
+
* The link for using in an integrated tool.
|
|
36
|
+
*/
|
|
37
|
+
readonly link: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the service integration.
|
|
40
|
+
*/
|
|
41
|
+
readonly name: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
44
|
+
*/
|
|
45
|
+
readonly teamId: pulumi.Output<string | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Jinja2 templates for Alert payload.
|
|
48
|
+
*/
|
|
49
|
+
readonly templates: pulumi.Output<outputs.OncallIntegrationTemplates | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging.
|
|
52
|
+
*/
|
|
53
|
+
readonly type: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a OncallIntegration resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: OncallIntegrationArgs, opts?: pulumi.CustomResourceOptions);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Input properties used for looking up and filtering OncallIntegration resources.
|
|
65
|
+
*/
|
|
66
|
+
export interface OncallIntegrationState {
|
|
67
|
+
/**
|
|
68
|
+
* The Default route for all alerts from the given integration
|
|
69
|
+
*/
|
|
70
|
+
defaultRoute?: pulumi.Input<inputs.OncallIntegrationDefaultRoute>;
|
|
71
|
+
/**
|
|
72
|
+
* The link for using in an integrated tool.
|
|
73
|
+
*/
|
|
74
|
+
link?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The name of the service integration.
|
|
77
|
+
*/
|
|
78
|
+
name?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
81
|
+
*/
|
|
82
|
+
teamId?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Jinja2 templates for Alert payload.
|
|
85
|
+
*/
|
|
86
|
+
templates?: pulumi.Input<inputs.OncallIntegrationTemplates>;
|
|
87
|
+
/**
|
|
88
|
+
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging.
|
|
89
|
+
*/
|
|
90
|
+
type?: pulumi.Input<string>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a OncallIntegration resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface OncallIntegrationArgs {
|
|
96
|
+
/**
|
|
97
|
+
* The Default route for all alerts from the given integration
|
|
98
|
+
*/
|
|
99
|
+
defaultRoute: pulumi.Input<inputs.OncallIntegrationDefaultRoute>;
|
|
100
|
+
/**
|
|
101
|
+
* The name of the service integration.
|
|
102
|
+
*/
|
|
103
|
+
name?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
106
|
+
*/
|
|
107
|
+
teamId?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Jinja2 templates for Alert payload.
|
|
110
|
+
*/
|
|
111
|
+
templates?: pulumi.Input<inputs.OncallIntegrationTemplates>;
|
|
112
|
+
/**
|
|
113
|
+
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging.
|
|
114
|
+
*/
|
|
115
|
+
type: pulumi.Input<string>;
|
|
116
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.OncallIntegration = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/oncall/latest/integrations/)
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
|
|
11
|
+
*
|
|
12
|
+
* ## Import
|
|
13
|
+
*
|
|
14
|
+
* ```sh
|
|
15
|
+
* $ pulumi import grafana:index/oncallIntegration:OncallIntegration integration_name {{integration_id}}
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
class OncallIntegration extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing OncallIntegration resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param state Any extra arguments used during the lookup.
|
|
26
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
+
*/
|
|
28
|
+
static get(name, id, state, opts) {
|
|
29
|
+
return new OncallIntegration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of OncallIntegration. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj) {
|
|
36
|
+
if (obj === undefined || obj === null) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
return obj['__pulumiType'] === OncallIntegration.__pulumiType;
|
|
40
|
+
}
|
|
41
|
+
constructor(name, argsOrState, opts) {
|
|
42
|
+
let resourceInputs = {};
|
|
43
|
+
opts = opts || {};
|
|
44
|
+
if (opts.id) {
|
|
45
|
+
const state = argsOrState;
|
|
46
|
+
resourceInputs["defaultRoute"] = state ? state.defaultRoute : undefined;
|
|
47
|
+
resourceInputs["link"] = state ? state.link : undefined;
|
|
48
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
49
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
50
|
+
resourceInputs["templates"] = state ? state.templates : undefined;
|
|
51
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
const args = argsOrState;
|
|
55
|
+
if ((!args || args.defaultRoute === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'defaultRoute'");
|
|
57
|
+
}
|
|
58
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'type'");
|
|
60
|
+
}
|
|
61
|
+
resourceInputs["defaultRoute"] = args ? args.defaultRoute : undefined;
|
|
62
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
63
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
64
|
+
resourceInputs["templates"] = args ? args.templates : undefined;
|
|
65
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
66
|
+
resourceInputs["link"] = undefined /*out*/;
|
|
67
|
+
}
|
|
68
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
69
|
+
super(OncallIntegration.__pulumiType, name, resourceInputs, opts);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.OncallIntegration = OncallIntegration;
|
|
73
|
+
/** @internal */
|
|
74
|
+
OncallIntegration.__pulumiType = 'grafana:index/oncallIntegration:OncallIntegration';
|
|
75
|
+
//# sourceMappingURL=oncallIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oncallIntegration.js","sourceRoot":"","sources":["../oncallIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;GASG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,KA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AI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,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;;AAzFL,8CA0FC;AA5EG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/on_call_shifts/)
|
|
4
|
+
*
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import grafana:index/oncallOnCallShift:OncallOnCallShift on_call_shift_name {{on_call_shift_id}}
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class OncallOnCallShift extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing OncallOnCallShift resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OncallOnCallShiftState, opts?: pulumi.CustomResourceOptions): OncallOnCallShift;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of OncallOnCallShift. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is OncallOnCallShift;
|
|
27
|
+
/**
|
|
28
|
+
* This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
|
|
29
|
+
*/
|
|
30
|
+
readonly byDays: pulumi.Output<string[] | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
|
|
33
|
+
*/
|
|
34
|
+
readonly byMonthdays: pulumi.Output<number[] | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* This parameter takes a list of months. Valid values are 1 to 12
|
|
37
|
+
*/
|
|
38
|
+
readonly byMonths: pulumi.Output<number[] | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* The duration of the event.
|
|
41
|
+
*/
|
|
42
|
+
readonly duration: pulumi.Output<number>;
|
|
43
|
+
/**
|
|
44
|
+
* The frequency of the event. Can be daily, weekly, monthly
|
|
45
|
+
*/
|
|
46
|
+
readonly frequency: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* The positive integer representing at which intervals the recurrence rule repeats.
|
|
49
|
+
*/
|
|
50
|
+
readonly interval: pulumi.Output<number | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The priority level. The higher the value, the higher the priority.
|
|
53
|
+
*/
|
|
54
|
+
readonly level: pulumi.Output<number | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* The shift's name.
|
|
57
|
+
*/
|
|
58
|
+
readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The list of lists with on-call users (for rollingUsers event type)
|
|
61
|
+
*/
|
|
62
|
+
readonly rollingUsers: pulumi.Output<string[][] | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
|
|
65
|
+
*/
|
|
66
|
+
readonly start: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The index of the list of users in rolling_users, from which on-call rotation starts.
|
|
69
|
+
*/
|
|
70
|
+
readonly startRotationFromUserIndex: pulumi.Output<number | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
73
|
+
*/
|
|
74
|
+
readonly teamId: pulumi.Output<string | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The shift's timezone. Overrides schedule's timezone.
|
|
77
|
+
*/
|
|
78
|
+
readonly timeZone: pulumi.Output<string | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* The shift's type. Can be rolling*users, recurrent*event, single_event
|
|
81
|
+
*/
|
|
82
|
+
readonly type: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The list of on-call users (for single*event and recurrent*event event type).
|
|
85
|
+
*/
|
|
86
|
+
readonly users: pulumi.Output<string[] | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
|
|
89
|
+
*/
|
|
90
|
+
readonly weekStart: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a OncallOnCallShift resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: OncallOnCallShiftArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering OncallOnCallShift resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface OncallOnCallShiftState {
|
|
104
|
+
/**
|
|
105
|
+
* This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
|
|
106
|
+
*/
|
|
107
|
+
byDays?: pulumi.Input<pulumi.Input<string>[]>;
|
|
108
|
+
/**
|
|
109
|
+
* This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
|
|
110
|
+
*/
|
|
111
|
+
byMonthdays?: pulumi.Input<pulumi.Input<number>[]>;
|
|
112
|
+
/**
|
|
113
|
+
* This parameter takes a list of months. Valid values are 1 to 12
|
|
114
|
+
*/
|
|
115
|
+
byMonths?: pulumi.Input<pulumi.Input<number>[]>;
|
|
116
|
+
/**
|
|
117
|
+
* The duration of the event.
|
|
118
|
+
*/
|
|
119
|
+
duration?: pulumi.Input<number>;
|
|
120
|
+
/**
|
|
121
|
+
* The frequency of the event. Can be daily, weekly, monthly
|
|
122
|
+
*/
|
|
123
|
+
frequency?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The positive integer representing at which intervals the recurrence rule repeats.
|
|
126
|
+
*/
|
|
127
|
+
interval?: pulumi.Input<number>;
|
|
128
|
+
/**
|
|
129
|
+
* The priority level. The higher the value, the higher the priority.
|
|
130
|
+
*/
|
|
131
|
+
level?: pulumi.Input<number>;
|
|
132
|
+
/**
|
|
133
|
+
* The shift's name.
|
|
134
|
+
*/
|
|
135
|
+
name?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* The list of lists with on-call users (for rollingUsers event type)
|
|
138
|
+
*/
|
|
139
|
+
rollingUsers?: pulumi.Input<pulumi.Input<pulumi.Input<string>[]>[]>;
|
|
140
|
+
/**
|
|
141
|
+
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
|
|
142
|
+
*/
|
|
143
|
+
start?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The index of the list of users in rolling_users, from which on-call rotation starts.
|
|
146
|
+
*/
|
|
147
|
+
startRotationFromUserIndex?: pulumi.Input<number>;
|
|
148
|
+
/**
|
|
149
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
150
|
+
*/
|
|
151
|
+
teamId?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The shift's timezone. Overrides schedule's timezone.
|
|
154
|
+
*/
|
|
155
|
+
timeZone?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The shift's type. Can be rolling*users, recurrent*event, single_event
|
|
158
|
+
*/
|
|
159
|
+
type?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The list of on-call users (for single*event and recurrent*event event type).
|
|
162
|
+
*/
|
|
163
|
+
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
164
|
+
/**
|
|
165
|
+
* Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
|
|
166
|
+
*/
|
|
167
|
+
weekStart?: pulumi.Input<string>;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* The set of arguments for constructing a OncallOnCallShift resource.
|
|
171
|
+
*/
|
|
172
|
+
export interface OncallOnCallShiftArgs {
|
|
173
|
+
/**
|
|
174
|
+
* This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
|
|
175
|
+
*/
|
|
176
|
+
byDays?: pulumi.Input<pulumi.Input<string>[]>;
|
|
177
|
+
/**
|
|
178
|
+
* This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
|
|
179
|
+
*/
|
|
180
|
+
byMonthdays?: pulumi.Input<pulumi.Input<number>[]>;
|
|
181
|
+
/**
|
|
182
|
+
* This parameter takes a list of months. Valid values are 1 to 12
|
|
183
|
+
*/
|
|
184
|
+
byMonths?: pulumi.Input<pulumi.Input<number>[]>;
|
|
185
|
+
/**
|
|
186
|
+
* The duration of the event.
|
|
187
|
+
*/
|
|
188
|
+
duration: pulumi.Input<number>;
|
|
189
|
+
/**
|
|
190
|
+
* The frequency of the event. Can be daily, weekly, monthly
|
|
191
|
+
*/
|
|
192
|
+
frequency?: pulumi.Input<string>;
|
|
193
|
+
/**
|
|
194
|
+
* The positive integer representing at which intervals the recurrence rule repeats.
|
|
195
|
+
*/
|
|
196
|
+
interval?: pulumi.Input<number>;
|
|
197
|
+
/**
|
|
198
|
+
* The priority level. The higher the value, the higher the priority.
|
|
199
|
+
*/
|
|
200
|
+
level?: pulumi.Input<number>;
|
|
201
|
+
/**
|
|
202
|
+
* The shift's name.
|
|
203
|
+
*/
|
|
204
|
+
name?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* The list of lists with on-call users (for rollingUsers event type)
|
|
207
|
+
*/
|
|
208
|
+
rollingUsers?: pulumi.Input<pulumi.Input<pulumi.Input<string>[]>[]>;
|
|
209
|
+
/**
|
|
210
|
+
* The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
|
|
211
|
+
*/
|
|
212
|
+
start: pulumi.Input<string>;
|
|
213
|
+
/**
|
|
214
|
+
* The index of the list of users in rolling_users, from which on-call rotation starts.
|
|
215
|
+
*/
|
|
216
|
+
startRotationFromUserIndex?: pulumi.Input<number>;
|
|
217
|
+
/**
|
|
218
|
+
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
219
|
+
*/
|
|
220
|
+
teamId?: pulumi.Input<string>;
|
|
221
|
+
/**
|
|
222
|
+
* The shift's timezone. Overrides schedule's timezone.
|
|
223
|
+
*/
|
|
224
|
+
timeZone?: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* The shift's type. Can be rolling*users, recurrent*event, single_event
|
|
227
|
+
*/
|
|
228
|
+
type: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* The list of on-call users (for single*event and recurrent*event event type).
|
|
231
|
+
*/
|
|
232
|
+
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
233
|
+
/**
|
|
234
|
+
* Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
|
|
235
|
+
*/
|
|
236
|
+
weekStart?: pulumi.Input<string>;
|
|
237
|
+
}
|