@pulumiverse/grafana 0.5.0 → 0.5.1
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/annotation.d.ts +28 -3
- package/annotation.js +25 -0
- package/annotation.js.map +1 -1
- package/apiKey.d.ts +18 -0
- package/apiKey.js +18 -0
- package/apiKey.js.map +1 -1
- package/cloudAccessPolicy.d.ts +57 -15
- package/cloudAccessPolicy.js +51 -0
- package/cloudAccessPolicy.js.map +1 -1
- package/cloudAccessPolicyToken.d.ts +54 -9
- package/cloudAccessPolicyToken.js +51 -0
- package/cloudAccessPolicyToken.js.map +1 -1
- package/cloudApiKey.d.ts +35 -6
- package/cloudApiKey.js +32 -0
- package/cloudApiKey.js.map +1 -1
- package/cloudOrgMember.d.ts +9 -0
- package/cloudOrgMember.js +9 -0
- package/cloudOrgMember.js.map +1 -1
- package/cloudPluginInstallation.d.ts +32 -0
- package/cloudPluginInstallation.js +32 -0
- package/cloudPluginInstallation.js.map +1 -1
- package/cloudStack.d.ts +49 -38
- package/cloudStack.js +30 -0
- package/cloudStack.js.map +1 -1
- package/cloudStackServiceAccount.d.ts +36 -3
- package/cloudStackServiceAccount.js +33 -0
- package/cloudStackServiceAccount.js.map +1 -1
- package/cloudStackServiceAccountToken.d.ts +28 -0
- package/cloudStackServiceAccountToken.js +28 -0
- package/cloudStackServiceAccountToken.js.map +1 -1
- package/contactPoint.d.ts +44 -9
- package/contactPoint.js +38 -0
- package/contactPoint.js.map +1 -1
- package/dashboard.d.ts +44 -16
- package/dashboard.js +37 -0
- package/dashboard.js.map +1 -1
- package/dashboardPermission.d.ts +55 -3
- package/dashboardPermission.js +52 -0
- package/dashboardPermission.js.map +1 -1
- package/dashboardPermissionItem.d.ts +48 -0
- package/dashboardPermissionItem.js +48 -0
- package/dashboardPermissionItem.js.map +1 -1
- package/dashboardPublic.d.ts +73 -12
- package/dashboardPublic.js +67 -0
- package/dashboardPublic.js.map +1 -1
- package/dataSource.d.ts +102 -36
- package/dataSource.js +78 -0
- package/dataSource.js.map +1 -1
- package/dataSourceConfig.d.ts +69 -18
- package/dataSourceConfig.js +63 -0
- package/dataSourceConfig.js.map +1 -1
- package/dataSourcePermission.d.ts +66 -3
- package/dataSourcePermission.js +63 -0
- package/dataSourcePermission.js.map +1 -1
- package/dataSourcePermissionItem.d.ts +61 -0
- package/dataSourcePermissionItem.js +61 -0
- package/dataSourcePermissionItem.js.map +1 -1
- package/folder.d.ts +43 -9
- package/folder.js +37 -0
- package/folder.js.map +1 -1
- package/folderPermission.d.ts +49 -0
- package/folderPermission.js +49 -0
- package/folderPermission.js.map +1 -1
- package/folderPermissionItem.d.ts +47 -0
- package/folderPermissionItem.js +47 -0
- package/folderPermissionItem.js.map +1 -1
- package/getCloudIps.d.ts +43 -0
- package/getCloudIps.js +28 -0
- package/getCloudIps.js.map +1 -1
- package/getCloudOrganization.d.ts +37 -0
- package/getCloudOrganization.js +28 -0
- package/getCloudOrganization.js.map +1 -1
- package/getCloudStack.d.ts +84 -0
- package/getCloudStack.js +6 -0
- package/getCloudStack.js.map +1 -1
- package/getDashboard.d.ts +114 -0
- package/getDashboard.js +64 -0
- package/getDashboard.js.map +1 -1
- package/getDashboards.d.ts +56 -0
- package/getDashboards.js +14 -0
- package/getDashboards.js.map +1 -1
- package/getDataSource.d.ts +118 -0
- package/getDataSource.js +76 -0
- package/getDataSource.js.map +1 -1
- package/getFolder.d.ts +71 -0
- package/getFolder.js +44 -0
- package/getFolder.js.map +1 -1
- package/getFolders.d.ts +60 -0
- package/getFolders.js +48 -0
- package/getFolders.js.map +1 -1
- package/getLibraryPanel.d.ts +65 -0
- package/getLibraryPanel.js +6 -0
- package/getLibraryPanel.js.map +1 -1
- package/getOnCallSlackChannel.d.ts +44 -0
- package/getOnCallSlackChannel.js +32 -0
- package/getOnCallSlackChannel.js.map +1 -1
- package/getOncallAction.d.ts +21 -0
- package/getOncallAction.js +12 -0
- package/getOncallAction.js.map +1 -1
- package/getOncallEscalationChain.d.ts +41 -0
- package/getOncallEscalationChain.js +32 -0
- package/getOncallEscalationChain.js.map +1 -1
- package/getOncallIntegration.d.ts +44 -0
- package/getOncallIntegration.js +32 -0
- package/getOncallIntegration.js.map +1 -1
- package/getOncallOutgoingWebhook.d.ts +41 -0
- package/getOncallOutgoingWebhook.js +32 -0
- package/getOncallOutgoingWebhook.js.map +1 -1
- package/getOncallSchedule.d.ts +46 -0
- package/getOncallSchedule.js +34 -0
- package/getOncallSchedule.js.map +1 -1
- package/getOncallTeam.d.ts +37 -0
- package/getOncallTeam.js +28 -0
- package/getOncallTeam.js.map +1 -1
- package/getOncallUser.d.ts +47 -0
- package/getOncallUser.js +32 -0
- package/getOncallUser.js.map +1 -1
- package/getOncallUserGroup.d.ts +32 -0
- package/getOncallUserGroup.js +32 -0
- package/getOncallUserGroup.js.map +1 -1
- package/getOrganization.d.ts +70 -0
- package/getOrganization.js +52 -0
- package/getOrganization.js.map +1 -1
- package/getOrganizationPreferences.d.ts +53 -0
- package/getOrganizationPreferences.js +30 -0
- package/getOrganizationPreferences.js.map +1 -1
- package/getRole.d.ts +118 -0
- package/getRole.js +82 -0
- package/getRole.js.map +1 -1
- package/getServiceAccount.d.ts +32 -0
- package/getServiceAccount.js +8 -0
- package/getServiceAccount.js.map +1 -1
- package/getSlos.d.ts +17 -0
- package/getSlos.js +14 -0
- package/getSlos.js.map +1 -1
- package/getSyntheticMonitoringProbe.d.ts +62 -0
- package/getSyntheticMonitoringProbe.js +32 -0
- package/getSyntheticMonitoringProbe.js.map +1 -1
- package/getSyntheticMonitoringProbes.d.ts +40 -0
- package/getSyntheticMonitoringProbes.js +28 -0
- package/getSyntheticMonitoringProbes.js.map +1 -1
- package/getTeam.d.ts +50 -0
- package/getTeam.js +50 -0
- package/getTeam.js.map +1 -1
- package/getUser.d.ts +99 -0
- package/getUser.js +66 -0
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +51 -0
- package/getUsers.js +48 -0
- package/getUsers.js.map +1 -1
- package/libraryPanel.d.ts +43 -12
- package/libraryPanel.js +37 -0
- package/libraryPanel.js.map +1 -1
- package/machineLearningHoliday.d.ts +14 -3
- package/machineLearningHoliday.js +11 -0
- package/machineLearningHoliday.js.map +1 -1
- package/machineLearningJob.d.ts +18 -12
- package/machineLearningJob.js +9 -0
- package/machineLearningJob.js.map +1 -1
- package/machineLearningOutlierDetector.d.ts +22 -12
- package/machineLearningOutlierDetector.js +13 -0
- package/machineLearningOutlierDetector.js.map +1 -1
- package/messageTemplate.d.ts +32 -0
- package/messageTemplate.js +32 -0
- package/messageTemplate.js.map +1 -1
- package/muteTiming.d.ts +51 -0
- package/muteTiming.js +51 -0
- package/muteTiming.js.map +1 -1
- package/notificationPolicy.d.ts +98 -9
- package/notificationPolicy.js +92 -0
- package/notificationPolicy.js.map +1 -1
- package/oncallEscalation.d.ts +81 -41
- package/oncallEscalation.js +52 -0
- package/oncallEscalation.js.map +1 -1
- package/oncallEscalationChain.d.ts +25 -6
- package/oncallEscalationChain.js +22 -0
- package/oncallEscalationChain.js.map +1 -1
- package/oncallIntegration.d.ts +16 -15
- package/oncallIntegration.js +10 -0
- package/oncallIntegration.js.map +1 -1
- package/oncallOnCallShift.d.ts +30 -27
- package/oncallOnCallShift.js +9 -0
- package/oncallOnCallShift.js.map +1 -1
- package/oncallOutgoingWebhook.d.ts +34 -21
- package/oncallOutgoingWebhook.js +22 -0
- package/oncallOutgoingWebhook.js.map +1 -1
- package/oncallRoute.d.ts +49 -3
- package/oncallRoute.js +46 -0
- package/oncallRoute.js.map +1 -1
- package/oncallSchedule.d.ts +49 -9
- package/oncallSchedule.js +43 -0
- package/oncallSchedule.js.map +1 -1
- package/organization.d.ts +94 -39
- package/organization.js +37 -0
- package/organization.js.map +1 -1
- package/organizationPreference.d.ts +31 -9
- package/organizationPreference.js +25 -0
- package/organizationPreference.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/playlist.d.ts +41 -0
- package/playlist.js +41 -0
- package/playlist.js.map +1 -1
- package/report.d.ts +56 -15
- package/report.js +41 -0
- package/report.js.map +1 -1
- package/role.d.ts +58 -15
- package/role.js +46 -0
- package/role.js.map +1 -1
- package/roleAssignment.d.ts +48 -0
- package/roleAssignment.js +48 -0
- package/roleAssignment.js.map +1 -1
- package/roleAssignmentItem.d.ts +51 -0
- package/roleAssignmentItem.js +51 -0
- package/roleAssignmentItem.js.map +1 -1
- package/ruleGroup.d.ts +117 -9
- package/ruleGroup.js +111 -0
- package/ruleGroup.js.map +1 -1
- package/serviceAccount.d.ts +33 -3
- package/serviceAccount.js +30 -0
- package/serviceAccount.js.map +1 -1
- package/serviceAccountPermission.d.ts +50 -0
- package/serviceAccountPermission.js +50 -0
- package/serviceAccountPermission.js.map +1 -1
- package/serviceAccountPermissionItem.d.ts +44 -0
- package/serviceAccountPermissionItem.js +44 -0
- package/serviceAccountPermissionItem.js.map +1 -1
- package/serviceAccountToken.d.ts +27 -9
- package/serviceAccountToken.js +24 -0
- package/serviceAccountToken.js.map +1 -1
- package/slo.d.ts +39 -27
- package/slo.js +15 -0
- package/slo.js.map +1 -1
- package/ssoSettings.d.ts +75 -3
- package/ssoSettings.js +72 -0
- package/ssoSettings.js.map +1 -1
- package/syntheticMonitoringCheck.d.ts +431 -36
- package/syntheticMonitoringCheck.js +413 -0
- package/syntheticMonitoringCheck.js.map +1 -1
- package/syntheticMonitoringInstallation.d.ts +75 -24
- package/syntheticMonitoringInstallation.js +69 -0
- package/syntheticMonitoringInstallation.js.map +1 -1
- package/syntheticMonitoringProbe.d.ts +39 -6
- package/syntheticMonitoringProbe.js +36 -0
- package/syntheticMonitoringProbe.js.map +1 -1
- package/team.d.ts +33 -0
- package/team.js +33 -0
- package/team.js.map +1 -1
- package/teamExternalGroup.d.ts +31 -0
- package/teamExternalGroup.js +31 -0
- package/teamExternalGroup.js.map +1 -1
- package/types/input.d.ts +123 -123
- package/types/output.d.ts +123 -123
- package/user.d.ts +33 -3
- package/user.js +30 -0
- package/user.js.map +1 -1
package/getUser.d.ts
CHANGED
|
@@ -1,33 +1,132 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/)
|
|
4
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/user/)
|
|
5
|
+
*
|
|
6
|
+
* This data source uses Grafana's admin APIs for reading users which
|
|
7
|
+
* does not currently work with API Tokens. You must use basic auth.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* <!--Start PulumiCodeChooser -->
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as grafana from "@pulumi/grafana";
|
|
15
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
16
|
+
*
|
|
17
|
+
* const test = new grafana.User("test", {
|
|
18
|
+
* email: "test.datasource@example.com",
|
|
19
|
+
* login: "test-datasource",
|
|
20
|
+
* password: "my-password",
|
|
21
|
+
* isAdmin: true,
|
|
22
|
+
* });
|
|
23
|
+
* const fromId = grafana.getUserOutput({
|
|
24
|
+
* userId: test.userId,
|
|
25
|
+
* });
|
|
26
|
+
* const fromEmail = grafana.getUserOutput({
|
|
27
|
+
* email: test.email,
|
|
28
|
+
* });
|
|
29
|
+
* const fromLogin = test.login.apply(login => grafana.getUserOutput({
|
|
30
|
+
* login: login,
|
|
31
|
+
* }));
|
|
32
|
+
* ```
|
|
33
|
+
* <!--End PulumiCodeChooser -->
|
|
34
|
+
*/
|
|
2
35
|
export declare function getUser(args?: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
|
|
3
36
|
/**
|
|
4
37
|
* A collection of arguments for invoking getUser.
|
|
5
38
|
*/
|
|
6
39
|
export interface GetUserArgs {
|
|
40
|
+
/**
|
|
41
|
+
* The email address of the Grafana user. Defaults to ``.
|
|
42
|
+
*/
|
|
7
43
|
email?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The username for the Grafana user. Defaults to ``.
|
|
46
|
+
*/
|
|
8
47
|
login?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The numerical ID of the Grafana user. Defaults to `-1`.
|
|
50
|
+
*/
|
|
9
51
|
userId?: number;
|
|
10
52
|
}
|
|
11
53
|
/**
|
|
12
54
|
* A collection of values returned by getUser.
|
|
13
55
|
*/
|
|
14
56
|
export interface GetUserResult {
|
|
57
|
+
/**
|
|
58
|
+
* The email address of the Grafana user. Defaults to ``.
|
|
59
|
+
*/
|
|
15
60
|
readonly email?: string;
|
|
16
61
|
/**
|
|
17
62
|
* The provider-assigned unique ID for this managed resource.
|
|
18
63
|
*/
|
|
19
64
|
readonly id: string;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the user is an admin.
|
|
67
|
+
*/
|
|
20
68
|
readonly isAdmin: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The username for the Grafana user. Defaults to ``.
|
|
71
|
+
*/
|
|
21
72
|
readonly login?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The display name for the Grafana user.
|
|
75
|
+
*/
|
|
22
76
|
readonly name: string;
|
|
77
|
+
/**
|
|
78
|
+
* The numerical ID of the Grafana user. Defaults to `-1`.
|
|
79
|
+
*/
|
|
23
80
|
readonly userId?: number;
|
|
24
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/)
|
|
84
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/user/)
|
|
85
|
+
*
|
|
86
|
+
* This data source uses Grafana's admin APIs for reading users which
|
|
87
|
+
* does not currently work with API Tokens. You must use basic auth.
|
|
88
|
+
*
|
|
89
|
+
* ## Example Usage
|
|
90
|
+
*
|
|
91
|
+
* <!--Start PulumiCodeChooser -->
|
|
92
|
+
* ```typescript
|
|
93
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
94
|
+
* import * as grafana from "@pulumi/grafana";
|
|
95
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
96
|
+
*
|
|
97
|
+
* const test = new grafana.User("test", {
|
|
98
|
+
* email: "test.datasource@example.com",
|
|
99
|
+
* login: "test-datasource",
|
|
100
|
+
* password: "my-password",
|
|
101
|
+
* isAdmin: true,
|
|
102
|
+
* });
|
|
103
|
+
* const fromId = grafana.getUserOutput({
|
|
104
|
+
* userId: test.userId,
|
|
105
|
+
* });
|
|
106
|
+
* const fromEmail = grafana.getUserOutput({
|
|
107
|
+
* email: test.email,
|
|
108
|
+
* });
|
|
109
|
+
* const fromLogin = test.login.apply(login => grafana.getUserOutput({
|
|
110
|
+
* login: login,
|
|
111
|
+
* }));
|
|
112
|
+
* ```
|
|
113
|
+
* <!--End PulumiCodeChooser -->
|
|
114
|
+
*/
|
|
25
115
|
export declare function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUserResult>;
|
|
26
116
|
/**
|
|
27
117
|
* A collection of arguments for invoking getUser.
|
|
28
118
|
*/
|
|
29
119
|
export interface GetUserOutputArgs {
|
|
120
|
+
/**
|
|
121
|
+
* The email address of the Grafana user. Defaults to ``.
|
|
122
|
+
*/
|
|
30
123
|
email?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The username for the Grafana user. Defaults to ``.
|
|
126
|
+
*/
|
|
31
127
|
login?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The numerical ID of the Grafana user. Defaults to `-1`.
|
|
130
|
+
*/
|
|
32
131
|
userId?: pulumi.Input<number>;
|
|
33
132
|
}
|
package/getUser.js
CHANGED
|
@@ -5,6 +5,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getUserOutput = exports.getUser = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/)
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/user/)
|
|
11
|
+
*
|
|
12
|
+
* This data source uses Grafana's admin APIs for reading users which
|
|
13
|
+
* does not currently work with API Tokens. You must use basic auth.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* <!--Start PulumiCodeChooser -->
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as grafana from "@pulumi/grafana";
|
|
21
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
22
|
+
*
|
|
23
|
+
* const test = new grafana.User("test", {
|
|
24
|
+
* email: "test.datasource@example.com",
|
|
25
|
+
* login: "test-datasource",
|
|
26
|
+
* password: "my-password",
|
|
27
|
+
* isAdmin: true,
|
|
28
|
+
* });
|
|
29
|
+
* const fromId = grafana.getUserOutput({
|
|
30
|
+
* userId: test.userId,
|
|
31
|
+
* });
|
|
32
|
+
* const fromEmail = grafana.getUserOutput({
|
|
33
|
+
* email: test.email,
|
|
34
|
+
* });
|
|
35
|
+
* const fromLogin = test.login.apply(login => grafana.getUserOutput({
|
|
36
|
+
* login: login,
|
|
37
|
+
* }));
|
|
38
|
+
* ```
|
|
39
|
+
* <!--End PulumiCodeChooser -->
|
|
40
|
+
*/
|
|
8
41
|
function getUser(args, opts) {
|
|
9
42
|
args = args || {};
|
|
10
43
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -15,6 +48,39 @@ function getUser(args, opts) {
|
|
|
15
48
|
}, opts);
|
|
16
49
|
}
|
|
17
50
|
exports.getUser = getUser;
|
|
51
|
+
/**
|
|
52
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/)
|
|
53
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/user/)
|
|
54
|
+
*
|
|
55
|
+
* This data source uses Grafana's admin APIs for reading users which
|
|
56
|
+
* does not currently work with API Tokens. You must use basic auth.
|
|
57
|
+
*
|
|
58
|
+
* ## Example Usage
|
|
59
|
+
*
|
|
60
|
+
* <!--Start PulumiCodeChooser -->
|
|
61
|
+
* ```typescript
|
|
62
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
63
|
+
* import * as grafana from "@pulumi/grafana";
|
|
64
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
65
|
+
*
|
|
66
|
+
* const test = new grafana.User("test", {
|
|
67
|
+
* email: "test.datasource@example.com",
|
|
68
|
+
* login: "test-datasource",
|
|
69
|
+
* password: "my-password",
|
|
70
|
+
* isAdmin: true,
|
|
71
|
+
* });
|
|
72
|
+
* const fromId = grafana.getUserOutput({
|
|
73
|
+
* userId: test.userId,
|
|
74
|
+
* });
|
|
75
|
+
* const fromEmail = grafana.getUserOutput({
|
|
76
|
+
* email: test.email,
|
|
77
|
+
* });
|
|
78
|
+
* const fromLogin = test.login.apply(login => grafana.getUserOutput({
|
|
79
|
+
* login: login,
|
|
80
|
+
* }));
|
|
81
|
+
* ```
|
|
82
|
+
* <!--End PulumiCodeChooser -->
|
|
83
|
+
*/
|
|
18
84
|
function getUserOutput(args, opts) {
|
|
19
85
|
return pulumi.output(args).apply((a) => getUser(a, opts));
|
|
20
86
|
}
|
package/getUser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+BAA+B,EAAE;QAC1D,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0BASC;
|
|
1
|
+
{"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+BAA+B,EAAE;QAC1D,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0BASC;AAiDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
package/getUsers.d.ts
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/)
|
|
5
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/user/)
|
|
6
|
+
*
|
|
7
|
+
* This data source uses Grafana's admin APIs for reading users which
|
|
8
|
+
* does not currently work with API Tokens. You must use basic auth.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* <!--Start PulumiCodeChooser -->
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumi/grafana";
|
|
16
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
17
|
+
*
|
|
18
|
+
* const testAllUsers = new grafana.User("testAllUsers", {
|
|
19
|
+
* email: "all_users@example.com",
|
|
20
|
+
* login: "test-grafana-users",
|
|
21
|
+
* password: "my-password",
|
|
22
|
+
* });
|
|
23
|
+
* const allUsers = grafana.getUsers({});
|
|
24
|
+
* ```
|
|
25
|
+
* <!--End PulumiCodeChooser -->
|
|
26
|
+
*/
|
|
3
27
|
export declare function getUsers(opts?: pulumi.InvokeOptions): Promise<GetUsersResult>;
|
|
4
28
|
/**
|
|
5
29
|
* A collection of values returned by getUsers.
|
|
@@ -9,6 +33,33 @@ export interface GetUsersResult {
|
|
|
9
33
|
* The provider-assigned unique ID for this managed resource.
|
|
10
34
|
*/
|
|
11
35
|
readonly id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The Grafana instance's users.
|
|
38
|
+
*/
|
|
12
39
|
readonly users: outputs.GetUsersUser[];
|
|
13
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/)
|
|
43
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/user/)
|
|
44
|
+
*
|
|
45
|
+
* This data source uses Grafana's admin APIs for reading users which
|
|
46
|
+
* does not currently work with API Tokens. You must use basic auth.
|
|
47
|
+
*
|
|
48
|
+
* ## Example Usage
|
|
49
|
+
*
|
|
50
|
+
* <!--Start PulumiCodeChooser -->
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as grafana from "@pulumi/grafana";
|
|
54
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
55
|
+
*
|
|
56
|
+
* const testAllUsers = new grafana.User("testAllUsers", {
|
|
57
|
+
* email: "all_users@example.com",
|
|
58
|
+
* login: "test-grafana-users",
|
|
59
|
+
* password: "my-password",
|
|
60
|
+
* });
|
|
61
|
+
* const allUsers = grafana.getUsers({});
|
|
62
|
+
* ```
|
|
63
|
+
* <!--End PulumiCodeChooser -->
|
|
64
|
+
*/
|
|
14
65
|
export declare function getUsersOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetUsersResult>;
|
package/getUsers.js
CHANGED
|
@@ -5,11 +5,59 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getUsersOutput = exports.getUsers = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/)
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/user/)
|
|
11
|
+
*
|
|
12
|
+
* This data source uses Grafana's admin APIs for reading users which
|
|
13
|
+
* does not currently work with API Tokens. You must use basic auth.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* <!--Start PulumiCodeChooser -->
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as grafana from "@pulumi/grafana";
|
|
21
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
22
|
+
*
|
|
23
|
+
* const testAllUsers = new grafana.User("testAllUsers", {
|
|
24
|
+
* email: "all_users@example.com",
|
|
25
|
+
* login: "test-grafana-users",
|
|
26
|
+
* password: "my-password",
|
|
27
|
+
* });
|
|
28
|
+
* const allUsers = grafana.getUsers({});
|
|
29
|
+
* ```
|
|
30
|
+
* <!--End PulumiCodeChooser -->
|
|
31
|
+
*/
|
|
8
32
|
function getUsers(opts) {
|
|
9
33
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
34
|
return pulumi.runtime.invoke("grafana:index/getUsers:getUsers", {}, opts);
|
|
11
35
|
}
|
|
12
36
|
exports.getUsers = getUsers;
|
|
37
|
+
/**
|
|
38
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/)
|
|
39
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/user/)
|
|
40
|
+
*
|
|
41
|
+
* This data source uses Grafana's admin APIs for reading users which
|
|
42
|
+
* does not currently work with API Tokens. You must use basic auth.
|
|
43
|
+
*
|
|
44
|
+
* ## Example Usage
|
|
45
|
+
*
|
|
46
|
+
* <!--Start PulumiCodeChooser -->
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as grafana from "@pulumi/grafana";
|
|
50
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
51
|
+
*
|
|
52
|
+
* const testAllUsers = new grafana.User("testAllUsers", {
|
|
53
|
+
* email: "all_users@example.com",
|
|
54
|
+
* login: "test-grafana-users",
|
|
55
|
+
* password: "my-password",
|
|
56
|
+
* });
|
|
57
|
+
* const allUsers = grafana.getUsers({});
|
|
58
|
+
* ```
|
|
59
|
+
* <!--End PulumiCodeChooser -->
|
|
60
|
+
*/
|
|
13
61
|
function getUsersOutput(opts) {
|
|
14
62
|
return pulumi.output(getUsers(opts));
|
|
15
63
|
}
|
package/getUsers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../getUsers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,QAAQ,CAAC,IAA2B;IAEhD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,EAAE,EAC/D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4BAKC;
|
|
1
|
+
{"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../getUsers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,QAAQ,CAAC,IAA2B;IAEhD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,EAAE,EAC/D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4BAKC;AAeD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"}
|
package/libraryPanel.d.ts
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages Grafana library panels.
|
|
4
|
+
*
|
|
5
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-library-panels/)
|
|
6
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/library_element/)
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
14
|
+
*
|
|
15
|
+
* const test = new grafana.LibraryPanel("test", {modelJson: JSON.stringify({
|
|
16
|
+
* gridPos: {
|
|
17
|
+
* x: 0,
|
|
18
|
+
* y: 0,
|
|
19
|
+
* h: 10,
|
|
20
|
+
* w: 10,
|
|
21
|
+
* },
|
|
22
|
+
* title: "panel",
|
|
23
|
+
* type: "text",
|
|
24
|
+
* version: 0,
|
|
25
|
+
* })});
|
|
26
|
+
* ```
|
|
27
|
+
* <!--End PulumiCodeChooser -->
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import grafana:index/libraryPanel:LibraryPanel name "{{ uid }}"
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import grafana:index/libraryPanel:LibraryPanel name "{{ orgID }}:{{ uid }}"
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
2
39
|
export declare class LibraryPanel extends pulumi.CustomResource {
|
|
3
40
|
/**
|
|
4
41
|
* Get an existing LibraryPanel resource's state with the given name, ID, and optional extra
|
|
@@ -28,7 +65,7 @@ export declare class LibraryPanel extends pulumi.CustomResource {
|
|
|
28
65
|
*/
|
|
29
66
|
readonly description: pulumi.Output<string>;
|
|
30
67
|
/**
|
|
31
|
-
* Deprecated. Use `
|
|
68
|
+
* Deprecated. Use `folderUid` instead
|
|
32
69
|
*
|
|
33
70
|
* @deprecated Use `folderUid` instead
|
|
34
71
|
*/
|
|
@@ -62,9 +99,7 @@ export declare class LibraryPanel extends pulumi.CustomResource {
|
|
|
62
99
|
*/
|
|
63
100
|
readonly type: pulumi.Output<string>;
|
|
64
101
|
/**
|
|
65
|
-
* The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs.
|
|
66
|
-
* It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for
|
|
67
|
-
* accessing library panels and when syncing library panels between multiple Grafana installs.
|
|
102
|
+
* The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
|
|
68
103
|
*/
|
|
69
104
|
readonly uid: pulumi.Output<string>;
|
|
70
105
|
/**
|
|
@@ -101,7 +136,7 @@ export interface LibraryPanelState {
|
|
|
101
136
|
*/
|
|
102
137
|
description?: pulumi.Input<string>;
|
|
103
138
|
/**
|
|
104
|
-
* Deprecated. Use `
|
|
139
|
+
* Deprecated. Use `folderUid` instead
|
|
105
140
|
*
|
|
106
141
|
* @deprecated Use `folderUid` instead
|
|
107
142
|
*/
|
|
@@ -135,9 +170,7 @@ export interface LibraryPanelState {
|
|
|
135
170
|
*/
|
|
136
171
|
type?: pulumi.Input<string>;
|
|
137
172
|
/**
|
|
138
|
-
* The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs.
|
|
139
|
-
* It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for
|
|
140
|
-
* accessing library panels and when syncing library panels between multiple Grafana installs.
|
|
173
|
+
* The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
|
|
141
174
|
*/
|
|
142
175
|
uid?: pulumi.Input<string>;
|
|
143
176
|
/**
|
|
@@ -154,7 +187,7 @@ export interface LibraryPanelState {
|
|
|
154
187
|
*/
|
|
155
188
|
export interface LibraryPanelArgs {
|
|
156
189
|
/**
|
|
157
|
-
* Deprecated. Use `
|
|
190
|
+
* Deprecated. Use `folderUid` instead
|
|
158
191
|
*
|
|
159
192
|
* @deprecated Use `folderUid` instead
|
|
160
193
|
*/
|
|
@@ -176,9 +209,7 @@ export interface LibraryPanelArgs {
|
|
|
176
209
|
*/
|
|
177
210
|
orgId?: pulumi.Input<string>;
|
|
178
211
|
/**
|
|
179
|
-
* The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs.
|
|
180
|
-
* It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for
|
|
181
|
-
* accessing library panels and when syncing library panels between multiple Grafana installs.
|
|
212
|
+
* The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
|
|
182
213
|
*/
|
|
183
214
|
uid?: pulumi.Input<string>;
|
|
184
215
|
}
|
package/libraryPanel.js
CHANGED
|
@@ -5,6 +5,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.LibraryPanel = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages Grafana library panels.
|
|
10
|
+
*
|
|
11
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-library-panels/)
|
|
12
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/library_element/)
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
20
|
+
*
|
|
21
|
+
* const test = new grafana.LibraryPanel("test", {modelJson: JSON.stringify({
|
|
22
|
+
* gridPos: {
|
|
23
|
+
* x: 0,
|
|
24
|
+
* y: 0,
|
|
25
|
+
* h: 10,
|
|
26
|
+
* w: 10,
|
|
27
|
+
* },
|
|
28
|
+
* title: "panel",
|
|
29
|
+
* type: "text",
|
|
30
|
+
* version: 0,
|
|
31
|
+
* })});
|
|
32
|
+
* ```
|
|
33
|
+
* <!--End PulumiCodeChooser -->
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import grafana:index/libraryPanel:LibraryPanel name "{{ uid }}"
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import grafana:index/libraryPanel:LibraryPanel name "{{ orgID }}:{{ uid }}"
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
8
45
|
class LibraryPanel extends pulumi.CustomResource {
|
|
9
46
|
/**
|
|
10
47
|
* Get an existing LibraryPanel resource's state with the given name, ID, and optional extra
|
package/libraryPanel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libraryPanel.js","sourceRoot":"","sources":["../libraryPanel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;
|
|
1
|
+
{"version":3,"file":"libraryPanel.js","sourceRoot":"","sources":["../libraryPanel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC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,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAxIL,oCAyIC;AA3HG,gBAAgB;AACO,yBAAY,GAAG,yCAAyC,CAAC"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* A holiday describes time periods where a time series is expected to behave differently to normal.
|
|
6
|
+
*
|
|
7
|
+
* To use a holiday in a job, use its id in the `holidays` attribute of a `grafana.MachineLearningJob`:
|
|
8
|
+
*
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import grafana:index/machineLearningHoliday:MachineLearningHoliday name "{{ id }}"
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
4
15
|
export declare class MachineLearningHoliday extends pulumi.CustomResource {
|
|
5
16
|
/**
|
|
6
17
|
* Get an existing MachineLearningHoliday resource's state with the given name, ID, and optional extra
|
|
@@ -34,7 +45,7 @@ export declare class MachineLearningHoliday extends pulumi.CustomResource {
|
|
|
34
45
|
*/
|
|
35
46
|
readonly icalUrl: pulumi.Output<string | undefined>;
|
|
36
47
|
/**
|
|
37
|
-
* The name of the
|
|
48
|
+
* The name of the custom period.
|
|
38
49
|
*/
|
|
39
50
|
readonly name: pulumi.Output<string>;
|
|
40
51
|
/**
|
|
@@ -67,7 +78,7 @@ export interface MachineLearningHolidayState {
|
|
|
67
78
|
*/
|
|
68
79
|
icalUrl?: pulumi.Input<string>;
|
|
69
80
|
/**
|
|
70
|
-
* The name of the
|
|
81
|
+
* The name of the custom period.
|
|
71
82
|
*/
|
|
72
83
|
name?: pulumi.Input<string>;
|
|
73
84
|
}
|
|
@@ -92,7 +103,7 @@ export interface MachineLearningHolidayArgs {
|
|
|
92
103
|
*/
|
|
93
104
|
icalUrl?: pulumi.Input<string>;
|
|
94
105
|
/**
|
|
95
|
-
* The name of the
|
|
106
|
+
* The name of the custom period.
|
|
96
107
|
*/
|
|
97
108
|
name?: pulumi.Input<string>;
|
|
98
109
|
}
|
|
@@ -5,6 +5,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.MachineLearningHoliday = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* A holiday describes time periods where a time series is expected to behave differently to normal.
|
|
10
|
+
*
|
|
11
|
+
* To use a holiday in a job, use its id in the `holidays` attribute of a `grafana.MachineLearningJob`:
|
|
12
|
+
*
|
|
13
|
+
* ## Import
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import grafana:index/machineLearningHoliday:MachineLearningHoliday name "{{ id }}"
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
8
19
|
class MachineLearningHoliday extends pulumi.CustomResource {
|
|
9
20
|
/**
|
|
10
21
|
* Get an existing MachineLearningHoliday resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machineLearningHoliday.js","sourceRoot":"","sources":["../machineLearningHoliday.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,G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