@gooddata/sdk-model 10.17.0-alpha.2 → 10.17.0-alpha.20
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/esm/automations/index.d.ts +15 -12
- package/esm/automations/index.d.ts.map +1 -1
- package/esm/automations/index.js.map +1 -1
- package/esm/dashboard/layout.d.ts +22 -0
- package/esm/dashboard/layout.d.ts.map +1 -1
- package/esm/dashboard/layout.js.map +1 -1
- package/esm/dataFilter/index.d.ts +1 -0
- package/esm/dataFilter/index.d.ts.map +1 -1
- package/esm/{exportDefinitions → exports}/index.d.ts +37 -0
- package/esm/exports/index.d.ts.map +1 -0
- package/esm/exports/index.js.map +1 -0
- package/esm/genAI/chat.d.ts +4 -0
- package/esm/genAI/chat.d.ts.map +1 -1
- package/esm/index.d.ts +5 -4
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/notifications/index.d.ts +334 -0
- package/esm/notifications/index.d.ts.map +1 -0
- package/esm/notifications/index.js +2 -0
- package/esm/notifications/index.js.map +1 -0
- package/esm/sdk-model.d.ts +434 -11
- package/package.json +1 -1
- package/esm/exportDefinitions/index.d.ts.map +0 -1
- package/esm/exportDefinitions/index.js.map +0 -1
- /package/esm/{exportDefinitions → exports}/index.js +0 -0
@@ -0,0 +1,334 @@
|
|
1
|
+
import { IExportResult } from "../exports/index.js";
|
2
|
+
import { IAutomationDetails } from "../automations/index.js";
|
3
|
+
/**
|
4
|
+
* Type of the notification.
|
5
|
+
*
|
6
|
+
* @alpha
|
7
|
+
*/
|
8
|
+
export type NotificationType = "alertNotification" | "scheduleNotification" | "testNotification";
|
9
|
+
/**
|
10
|
+
* Notification with details about the automation or test that triggered it.
|
11
|
+
*
|
12
|
+
* @alpha
|
13
|
+
*/
|
14
|
+
export interface INotificationBase {
|
15
|
+
/**
|
16
|
+
* Type of the object for type narrowing.
|
17
|
+
*/
|
18
|
+
type: "notification";
|
19
|
+
/**
|
20
|
+
* Type of the notification.
|
21
|
+
*/
|
22
|
+
notificationType: NotificationType;
|
23
|
+
/**
|
24
|
+
* Unique identifier of the notification.
|
25
|
+
*/
|
26
|
+
id: string;
|
27
|
+
/**
|
28
|
+
* Identifier of the workspace if the notification was created in a workspace context.
|
29
|
+
*/
|
30
|
+
workspaceId?: string;
|
31
|
+
/**
|
32
|
+
* Indicates whether the notification has been read.
|
33
|
+
*/
|
34
|
+
isRead: boolean;
|
35
|
+
/**
|
36
|
+
* Timestamp when the notification was created.
|
37
|
+
*/
|
38
|
+
createdAt: string;
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Notification with details about the alert that triggered it.
|
42
|
+
*
|
43
|
+
* @alpha
|
44
|
+
*/
|
45
|
+
export interface IAlertNotification extends INotificationBase {
|
46
|
+
notificationType: "alertNotification";
|
47
|
+
/**
|
48
|
+
* Identifier of the automation (alert / schedule) if the notification was created in an automation context.
|
49
|
+
*/
|
50
|
+
automationId?: string;
|
51
|
+
/**
|
52
|
+
* Details of the automation that triggered the notification.
|
53
|
+
*/
|
54
|
+
details: IAlertNotificationDetails;
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
/**
|
58
|
+
* Notification with details about the schedule that triggered it.
|
59
|
+
*
|
60
|
+
* @alpha
|
61
|
+
*/
|
62
|
+
export interface IScheduleNotification extends INotificationBase {
|
63
|
+
notificationType: "scheduleNotification";
|
64
|
+
/**
|
65
|
+
* Identifier of the automation (alert / schedule) if the notification was created in an automation context.
|
66
|
+
*/
|
67
|
+
automationId?: string;
|
68
|
+
/**
|
69
|
+
* Details of the automation that triggered the notification.
|
70
|
+
*/
|
71
|
+
details: IScheduleNotificationDetails;
|
72
|
+
}
|
73
|
+
/**
|
74
|
+
* Notification with details about the test that triggered it.
|
75
|
+
*
|
76
|
+
* @alpha
|
77
|
+
*/
|
78
|
+
export interface ITestNotification extends INotificationBase {
|
79
|
+
notificationType: "testNotification";
|
80
|
+
/**
|
81
|
+
* Details of the test that triggered the notification.
|
82
|
+
*/
|
83
|
+
details: ITestNotificationDetails;
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* Notification with details about the automation or test that triggered it.
|
87
|
+
*
|
88
|
+
* @alpha
|
89
|
+
*/
|
90
|
+
export interface ITestNotificationDetails {
|
91
|
+
/**
|
92
|
+
* Message of the test notification.
|
93
|
+
*/
|
94
|
+
message: string;
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
* Notification with details about the automation or test that triggered it.
|
98
|
+
*
|
99
|
+
* @alpha
|
100
|
+
*/
|
101
|
+
export interface IAutomationNotificationDetailsBase {
|
102
|
+
/**
|
103
|
+
* Timestamp when the notification was created.
|
104
|
+
*/
|
105
|
+
timestamp: string;
|
106
|
+
/**
|
107
|
+
* Type of the notification.
|
108
|
+
*/
|
109
|
+
webhookMessageType: AutomationNotificationType;
|
110
|
+
}
|
111
|
+
/**
|
112
|
+
* Details of the alert notification.
|
113
|
+
*
|
114
|
+
* @alpha
|
115
|
+
*/
|
116
|
+
export interface IAlertNotificationDetails extends IAutomationNotificationDetailsBase {
|
117
|
+
/**
|
118
|
+
* Data from the webhook message.
|
119
|
+
*/
|
120
|
+
data: IWebhookMessageDataAlert;
|
121
|
+
}
|
122
|
+
/**
|
123
|
+
* Details of the schedule notification.
|
124
|
+
*
|
125
|
+
* @alpha
|
126
|
+
*/
|
127
|
+
export interface IScheduleNotificationDetails extends IAutomationNotificationDetailsBase {
|
128
|
+
/**
|
129
|
+
* Data from the webhook message.
|
130
|
+
*/
|
131
|
+
data: IWebhookMessageDataSchedule;
|
132
|
+
}
|
133
|
+
/**
|
134
|
+
* Automation notification type.
|
135
|
+
*
|
136
|
+
* @alpha
|
137
|
+
*/
|
138
|
+
export type AutomationNotificationType = "automation-task.completed" | "automation-task.limit-exceeded";
|
139
|
+
/**
|
140
|
+
* Data from the webhook message.
|
141
|
+
*
|
142
|
+
* @alpha
|
143
|
+
*/
|
144
|
+
export interface IWebhookMessageDataBase {
|
145
|
+
/**
|
146
|
+
* Automation information.
|
147
|
+
*/
|
148
|
+
automation: IWebhookAutomationInfo;
|
149
|
+
/**
|
150
|
+
* Recipients of the webhook message.
|
151
|
+
*/
|
152
|
+
recipients?: WebhookRecipient[];
|
153
|
+
/**
|
154
|
+
* Automation details.
|
155
|
+
*/
|
156
|
+
details?: IAutomationDetails;
|
157
|
+
/**
|
158
|
+
* Remaining export/alert evaluation count
|
159
|
+
*/
|
160
|
+
remainingActionCount?: number;
|
161
|
+
/**
|
162
|
+
* Tabular export results
|
163
|
+
*/
|
164
|
+
tabularExports?: IExportResult[];
|
165
|
+
/**
|
166
|
+
* Visual export results
|
167
|
+
*/
|
168
|
+
visualExports?: IExportResult[];
|
169
|
+
}
|
170
|
+
/**
|
171
|
+
* Data from the webhook message.
|
172
|
+
*
|
173
|
+
* @alpha
|
174
|
+
*/
|
175
|
+
export interface IWebhookMessageDataAlert extends IWebhookMessageDataBase {
|
176
|
+
/**
|
177
|
+
* Alert description.
|
178
|
+
*/
|
179
|
+
alert: IAlertDescription;
|
180
|
+
}
|
181
|
+
/**
|
182
|
+
* Data from the webhook message.
|
183
|
+
*
|
184
|
+
* @alpha
|
185
|
+
*/
|
186
|
+
export type IWebhookMessageDataSchedule = IWebhookMessageDataBase;
|
187
|
+
/**
|
188
|
+
* Automation information.
|
189
|
+
*
|
190
|
+
* @alpha
|
191
|
+
*/
|
192
|
+
export interface IWebhookAutomationInfo {
|
193
|
+
/**
|
194
|
+
* Identifier of the automation.
|
195
|
+
*/
|
196
|
+
id: string;
|
197
|
+
/**
|
198
|
+
* Title of the automation.
|
199
|
+
*/
|
200
|
+
title?: string;
|
201
|
+
/**
|
202
|
+
* URL of the dashboard, or custom dashboard URL (if configured on automation).
|
203
|
+
*/
|
204
|
+
dashboardURL: string;
|
205
|
+
}
|
206
|
+
/**
|
207
|
+
* Alert description.
|
208
|
+
*
|
209
|
+
* @alpha
|
210
|
+
*/
|
211
|
+
export interface IAlertDescription {
|
212
|
+
/**
|
213
|
+
* Title of the metric.
|
214
|
+
*/
|
215
|
+
metric: string;
|
216
|
+
/**
|
217
|
+
* Condition of the alert (in human readable form).
|
218
|
+
*/
|
219
|
+
condition: string;
|
220
|
+
/**
|
221
|
+
* Current values that triggered the alert (if sliced by attribute).
|
222
|
+
*/
|
223
|
+
currentValues?: IAlertEvaluationRow[];
|
224
|
+
/**
|
225
|
+
* Attribute of the alert (if sliced by attribute).
|
226
|
+
*/
|
227
|
+
attribute?: string;
|
228
|
+
/**
|
229
|
+
* Filter count of the alert.
|
230
|
+
*/
|
231
|
+
filterCount?: number;
|
232
|
+
/**
|
233
|
+
* Total values count that can trigger the alert.
|
234
|
+
*/
|
235
|
+
totalValueCount?: number;
|
236
|
+
/**
|
237
|
+
* Count of values that triggered the alert.
|
238
|
+
*/
|
239
|
+
triggeredCount?: number;
|
240
|
+
/**
|
241
|
+
* Threshold set to trigger the alert.
|
242
|
+
*/
|
243
|
+
threshold?: number;
|
244
|
+
/**
|
245
|
+
* Threshold set to trigger the alert - formatted.
|
246
|
+
*/
|
247
|
+
formattedThreshold?: string;
|
248
|
+
/**
|
249
|
+
* Lower threshold of the alert.
|
250
|
+
*/
|
251
|
+
lowerThreshold?: number;
|
252
|
+
/**
|
253
|
+
* Upper threshold of the alert.
|
254
|
+
*/
|
255
|
+
upperThreshold?: number;
|
256
|
+
/**
|
257
|
+
* Result of the execution that evaluated the alert.
|
258
|
+
*/
|
259
|
+
status?: AlertDescriptionStatus;
|
260
|
+
/**
|
261
|
+
* Error message of the alert.
|
262
|
+
*/
|
263
|
+
errorMessage?: string;
|
264
|
+
/**
|
265
|
+
* Trace ID of the alert.
|
266
|
+
*/
|
267
|
+
traceId?: string;
|
268
|
+
}
|
269
|
+
/**
|
270
|
+
* Alert evaluation row.
|
271
|
+
*
|
272
|
+
* @alpha
|
273
|
+
*/
|
274
|
+
export interface IAlertEvaluationRow {
|
275
|
+
/**
|
276
|
+
* Primary metric value.
|
277
|
+
*/
|
278
|
+
primaryMetric?: IAlertEvaluationRowMetric;
|
279
|
+
/**
|
280
|
+
* Secondary metric value.
|
281
|
+
*/
|
282
|
+
secondaryMetric?: IAlertEvaluationRowMetric;
|
283
|
+
/**
|
284
|
+
* Computed metric value.
|
285
|
+
*/
|
286
|
+
computedMetric?: IAlertEvaluationRowMetric;
|
287
|
+
/**
|
288
|
+
* Label element value (if sliced by attribute).
|
289
|
+
*/
|
290
|
+
labelValue?: string;
|
291
|
+
}
|
292
|
+
/**
|
293
|
+
* Metric value.
|
294
|
+
*
|
295
|
+
* @alpha
|
296
|
+
*/
|
297
|
+
export interface IAlertEvaluationRowMetric {
|
298
|
+
/**
|
299
|
+
* Metric value.
|
300
|
+
*/
|
301
|
+
value: number;
|
302
|
+
/**
|
303
|
+
* Metric value - formatted.
|
304
|
+
*/
|
305
|
+
formattedValue?: string;
|
306
|
+
}
|
307
|
+
/**
|
308
|
+
* Webhook recipient.
|
309
|
+
*
|
310
|
+
* @alpha
|
311
|
+
*/
|
312
|
+
export type WebhookRecipient = {
|
313
|
+
/**
|
314
|
+
* Identifier of the recipient.
|
315
|
+
*/
|
316
|
+
id: string;
|
317
|
+
/**
|
318
|
+
* Email of the recipient.
|
319
|
+
*/
|
320
|
+
email: string;
|
321
|
+
};
|
322
|
+
/**
|
323
|
+
* Alert description status.
|
324
|
+
*
|
325
|
+
* @alpha
|
326
|
+
*/
|
327
|
+
export type AlertDescriptionStatus = "SUCCESS" | "ERROR" | "INTERNAL_ERROR" | "TIMEOUT";
|
328
|
+
/**
|
329
|
+
* Notification.
|
330
|
+
*
|
331
|
+
* @alpha
|
332
|
+
*/
|
333
|
+
export type INotification = IAlertNotification | IScheduleNotification | ITestNotification;
|
334
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAA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