@qlik/api 1.31.0 → 1.32.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/api-keys.js +2 -2
- package/apps.js +2 -2
- package/assistants.d.ts +1301 -0
- package/assistants.js +273 -0
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automation-connections.d.ts +366 -0
- package/automation-connections.js +91 -0
- package/automations.js +2 -2
- package/automl-deployments.d.ts +97 -0
- package/automl-deployments.js +27 -0
- package/automl-predictions.d.ts +214 -0
- package/automl-predictions.js +72 -0
- package/brands.js +2 -2
- package/chunks/{GUU3KZGK.js → RCLKKVYB.js} +1 -1
- package/chunks/{YKZ2QYHN.js → VVD2DPKQ.js} +2 -2
- package/chunks/{KBSD75QL.js → YTT2FEVE.js} +1 -1
- package/collections.js +2 -2
- package/conditions.d.ts +662 -0
- package/conditions.js +113 -0
- package/consumption.d.ts +182 -0
- package/consumption.js +24 -0
- package/csp-origins.js +2 -2
- package/csrf-token.d.ts +62 -0
- package/csrf-token.js +23 -0
- package/data-alerts.d.ts +1004 -0
- package/data-alerts.js +155 -0
- package/data-assets.js +2 -2
- package/data-connections.js +2 -2
- package/data-credentials.js +2 -2
- package/data-files.js +2 -2
- package/data-qualities.d.ts +175 -0
- package/data-qualities.js +44 -0
- package/data-sets.d.ts +424 -0
- package/data-sets.js +75 -0
- package/data-sources.d.ts +268 -0
- package/data-sources.js +39 -0
- package/data-stores.d.ts +537 -0
- package/data-stores.js +108 -0
- package/dcaas.d.ts +192 -0
- package/dcaas.js +39 -0
- package/di-projects.d.ts +673 -0
- package/di-projects.js +164 -0
- package/encryption.d.ts +370 -0
- package/encryption.js +98 -0
- package/extensions.js +2 -2
- package/glossaries.js +2 -2
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.d.ts +105 -1
- package/index.js +556 -4
- package/items.js +2 -2
- package/knowledgebases.d.ts +890 -0
- package/knowledgebases.js +169 -0
- package/licenses.d.ts +1 -1
- package/licenses.js +2 -2
- package/lineage-graphs.d.ts +712 -0
- package/lineage-graphs.js +92 -0
- package/ml.d.ts +2628 -0
- package/ml.js +384 -0
- package/notes.d.ts +110 -0
- package/notes.js +31 -0
- package/notifications.d.ts +98 -0
- package/notifications.js +24 -0
- package/oauth-clients.js +2 -2
- package/oauth-tokens.d.ts +126 -0
- package/oauth-tokens.js +31 -0
- package/package.json +28 -2
- package/qix.d.ts +1 -1
- package/qix.js +2 -2
- package/questions.d.ts +364 -0
- package/questions.js +34 -0
- package/quotas.js +2 -2
- package/reload-tasks.js +2 -2
- package/reloads.js +2 -2
- package/report-templates.d.ts +287 -0
- package/report-templates.js +80 -0
- package/reports.js +2 -2
- package/roles.js +2 -2
- package/sharing-tasks.d.ts +952 -0
- package/sharing-tasks.js +105 -0
- package/spaces.js +2 -2
- package/tasks.d.ts +564 -0
- package/tasks.js +106 -0
- package/temp-contents.js +2 -2
- package/tenants.js +2 -2
- package/themes.js +2 -2
- package/transports.js +2 -2
- package/ui-config.d.ts +274 -0
- package/ui-config.js +77 -0
- package/users.js +2 -2
- package/web-integrations.js +2 -2
- package/web-notifications.js +2 -2
- package/webhooks.js +2 -2
- /package/chunks/{DLKLPD7T.js → LTNGXTXG.js} +0 -0
package/data-alerts.d.ts
ADDED
|
@@ -0,0 +1,1004 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
|
|
2
|
+
import './auth-types-DqfMuSRX.js';
|
|
3
|
+
|
|
4
|
+
type AlertingActionsTriggerCreateRequest = {
|
|
5
|
+
alertingTaskID: string;
|
|
6
|
+
};
|
|
7
|
+
type AlertingActionsTriggerCreateResponse = {
|
|
8
|
+
/** the workflow id created for the manual triggering of alert */
|
|
9
|
+
workflowID?: string;
|
|
10
|
+
};
|
|
11
|
+
type AlertingConditionResponse = {
|
|
12
|
+
/** Should reference ConditionResponse type in condition-manager api docs */
|
|
13
|
+
conditionResponse?: unknown;
|
|
14
|
+
hideSelections?: boolean;
|
|
15
|
+
};
|
|
16
|
+
type AlertingExecutionError = {
|
|
17
|
+
/** Error code specific to sharing service. */
|
|
18
|
+
readonly code?: string;
|
|
19
|
+
/** Error cause. */
|
|
20
|
+
readonly detail?: string;
|
|
21
|
+
/** Error title. */
|
|
22
|
+
readonly title?: string;
|
|
23
|
+
};
|
|
24
|
+
type AlertingExecutionErrors = AlertingExecutionError[];
|
|
25
|
+
type AlertingExecutionListResponse = StandardListResponseProps & {
|
|
26
|
+
/** Gets a list of alerting-executions. */
|
|
27
|
+
executions?: AlertingExecutionResponse[];
|
|
28
|
+
links?: ListLinks;
|
|
29
|
+
};
|
|
30
|
+
type AlertingExecutionPersist = {
|
|
31
|
+
accessMode?: "SOURCE_ACCESS" | "TARGET_ACCESS";
|
|
32
|
+
/** ID for the alerting task that this execution references */
|
|
33
|
+
alertId?: string;
|
|
34
|
+
/** Id of the bookmark associated with an alert */
|
|
35
|
+
bookmarkId?: string;
|
|
36
|
+
/** Id of the condition the alert is associated with */
|
|
37
|
+
conditionId?: string;
|
|
38
|
+
conditionStatus?: "FINISHED" | "FAILED";
|
|
39
|
+
/** Dimensions applied in the condition */
|
|
40
|
+
dimensions?: string[];
|
|
41
|
+
errors?: AlertingExecutionErrors;
|
|
42
|
+
/** Id of the evaluation for the condition */
|
|
43
|
+
evaluationId?: string;
|
|
44
|
+
executionEvaluationStatus?: "CONDITION_MET" | "CONDITION_NOT_MET" | "FAILED";
|
|
45
|
+
executionType?: "INDIVIDUAL" | "SHARED";
|
|
46
|
+
/** Gets the execution identifier. */
|
|
47
|
+
id?: string;
|
|
48
|
+
/** Measures applied in the condition */
|
|
49
|
+
measures?: string[];
|
|
50
|
+
/** The owner that this execution belongs to */
|
|
51
|
+
ownerId?: string;
|
|
52
|
+
result?: AlertingExecutionResult;
|
|
53
|
+
/** The tenant that this execution belongs to */
|
|
54
|
+
tenantId?: string;
|
|
55
|
+
/** Timestamp of execution start */
|
|
56
|
+
triggerTime?: string;
|
|
57
|
+
/** ID for the workflow, coming from eventing service */
|
|
58
|
+
workflowId?: string;
|
|
59
|
+
};
|
|
60
|
+
type AlertingExecutionResponse = AlertingExecutionPersist & {
|
|
61
|
+
evaluation?: Evaluation;
|
|
62
|
+
links?: Links;
|
|
63
|
+
};
|
|
64
|
+
type AlertingExecutionResult = {
|
|
65
|
+
alertTriggerStatus?: string;
|
|
66
|
+
throttlerTokensLeft?: number;
|
|
67
|
+
};
|
|
68
|
+
type AlertingRecipientStats = {
|
|
69
|
+
conditionStatus?: "OK" | "FAILED";
|
|
70
|
+
/** Whether the recipient is enabled. */
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
errors?: AlertingRecipientStatsErrors;
|
|
73
|
+
/** A list of associated groups. If a user is added individually the "addedIndividually" pseudo group is included */
|
|
74
|
+
groups?: string[];
|
|
75
|
+
/** last time a trigger was detected, but not sure if executed */
|
|
76
|
+
lastScan?: string;
|
|
77
|
+
/** last time an execution had been created */
|
|
78
|
+
lastTrigger?: string;
|
|
79
|
+
/** Whether the recipient is subscribed. */
|
|
80
|
+
subscribed?: boolean;
|
|
81
|
+
type?: "userid";
|
|
82
|
+
value?: string;
|
|
83
|
+
};
|
|
84
|
+
type AlertingRecipientStatsError = {
|
|
85
|
+
/** Error code specific to sharing service. */
|
|
86
|
+
readonly code?: string;
|
|
87
|
+
/** Error cause. */
|
|
88
|
+
readonly detail?: string;
|
|
89
|
+
/** Error title. */
|
|
90
|
+
readonly title?: string;
|
|
91
|
+
};
|
|
92
|
+
type AlertingRecipientStatsErrors = AlertingRecipientStatsError[];
|
|
93
|
+
type AlertingRecipientStatsResponse = {
|
|
94
|
+
recipientStats?: AlertingRecipientStats[];
|
|
95
|
+
};
|
|
96
|
+
type AlertingSettings = {
|
|
97
|
+
/** This indicates that there is an ongoing operation to either disable or enable the data alerting feature. none means that no such operation is ongoing. enabling/disabling means that system is currently enabling/disabling the feature */
|
|
98
|
+
readonly "data-alerting-feature-operation-status"?: "none" | "enabling" | "disabling";
|
|
99
|
+
/** UTC timestamp of the most recent change of data-alerting-feature-operation-status. If there has not been any such change, this is the timestamp of the initial creation of the record. */
|
|
100
|
+
readonly "data-alerting-feature-operation-status-change"?: string;
|
|
101
|
+
/** Whether the license for the tenant has the data alerting feature enabled. */
|
|
102
|
+
"data-alerting-license-status"?: "enabled" | "disabled";
|
|
103
|
+
/** Represents the number of data alerts consumed by the user either as an owner or recipient */
|
|
104
|
+
readonly dataAlertsConsumed?: number;
|
|
105
|
+
/** Represents the number of data alerts limit to be consumed by the user either as an owner or recipient */
|
|
106
|
+
readonly dataAlertsLimits?: number;
|
|
107
|
+
/** true if data-alerting feature is enabled for this tenant. Enabling this feature also requires that the license has this feature enabled. */
|
|
108
|
+
"enable-data-alerting": boolean;
|
|
109
|
+
/** The maximum number of recipients that can be present in an alerting task in TARGET_ACCESS mode. New recipients cannot be added when this limit is exceeded */
|
|
110
|
+
readonly "max-recipients-in-target-access"?: number;
|
|
111
|
+
/** These persisted alerting settings are only available for this tenant. Extracted from request JWT. */
|
|
112
|
+
readonly tenantId?: string;
|
|
113
|
+
};
|
|
114
|
+
type AlertingSettingsUpload = {
|
|
115
|
+
/** true if data-alerting feature is enabled. A status change could potentially result in a considerable amount of API operations to enable/disable triggers. Enabling this feature also requires that the license has this feature enabled. */
|
|
116
|
+
"enable-data-alerting": boolean;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* a alerting task (a definition on an alert)
|
|
120
|
+
*/
|
|
121
|
+
type AlertingTaskCreateRequest = {
|
|
122
|
+
/** appId associated to this alert definition */
|
|
123
|
+
appId: string;
|
|
124
|
+
/** bookmarkId associated to this alert definition */
|
|
125
|
+
bookmarkId?: string;
|
|
126
|
+
/** the id of the condition that determines if this data alert should be triggered */
|
|
127
|
+
conditionId: string;
|
|
128
|
+
/** description associated to alerting task */
|
|
129
|
+
description?: string;
|
|
130
|
+
/** if the alerting task is enabled */
|
|
131
|
+
enabled?: boolean;
|
|
132
|
+
/** name associated to alerting task */
|
|
133
|
+
name: string;
|
|
134
|
+
/** List of recipients. An internal recipient is represented by either their user id or group id. */
|
|
135
|
+
recipients: Recipients;
|
|
136
|
+
scheduleOptions?: ScheduleOptions;
|
|
137
|
+
/** sheetId associated to this alert definition */
|
|
138
|
+
sheetId?: string;
|
|
139
|
+
/** The rules and setup for throttling */
|
|
140
|
+
throttling?: ThrottlingResource;
|
|
141
|
+
/** Type of job that triggered the task */
|
|
142
|
+
triggerType: "RELOAD" | "SCHEDULED";
|
|
143
|
+
};
|
|
144
|
+
type AlertingTaskError = {
|
|
145
|
+
/** Timestamp for the creation of the error */
|
|
146
|
+
added?: string;
|
|
147
|
+
/** Identifier for type of error occurring on alerting task */
|
|
148
|
+
value?: "OWNER_DISABLED" | "OWNER_ACCESS" | "OWNER_LICENSE" | "APP_DELETED" | "NO_RECIPIENTS" | "PARTIAL_ACCESS" | "EVAL_ERROR" | "ORPHAN" | "CONVERSION_DENIED" | "EXPIRED" | "PARTIAL_SENT" | "QUOTA_REACHED" | "OWNER_HAS_NO_VALID_USER_ENTITLEMENT";
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* @deprecated
|
|
152
|
+
*/
|
|
153
|
+
type AlertingTaskExecutionStats = StandardListResponseProps & {
|
|
154
|
+
executionsStats?: ExecutionStats[];
|
|
155
|
+
links?: ListLinks;
|
|
156
|
+
};
|
|
157
|
+
type AlertingTaskGroupRecipientError = {
|
|
158
|
+
/** Timestamp for the creation of the error */
|
|
159
|
+
added?: string;
|
|
160
|
+
/** Identifier for type of error occurring on alerting task */
|
|
161
|
+
value?: "GROUP_IS_DISABLED" | "MAX_ALERTS_LIMIT_REACHED" | "GROUP_WITH_NO_APP_ACCESS" | "GROUP_IS_DELETED";
|
|
162
|
+
};
|
|
163
|
+
type AlertingTaskListResponse = StandardListResponseProps & {
|
|
164
|
+
links?: ListLinks;
|
|
165
|
+
/** Gets a list of alerting tasks. */
|
|
166
|
+
tasks?: AlertingTaskResponse[];
|
|
167
|
+
};
|
|
168
|
+
type AlertingTaskPatchRequestCompliant = {
|
|
169
|
+
/** The operation to be performed */
|
|
170
|
+
op: "replace";
|
|
171
|
+
/** A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902 */
|
|
172
|
+
path: "/ownerName" | "/ownerId" | "/conditionId" | "/enabledAction" | "/bookmarkId" | "/name" | "/description" | "/throttling" | "/triggerType" | "/scheduleOptions";
|
|
173
|
+
/** The value to be used for this operation. */
|
|
174
|
+
value?: unknown;
|
|
175
|
+
};
|
|
176
|
+
type AlertingTaskPatchRequestCompliantList = AlertingTaskPatchRequestCompliant[];
|
|
177
|
+
type AlertingTaskRecipientError = {
|
|
178
|
+
/** Timestamp for the creation of the error */
|
|
179
|
+
added?: string;
|
|
180
|
+
/** Identifier for type of error occurring on alerting task */
|
|
181
|
+
value?: "USER_IS_DELETED" | "USER_DISABLED_IN_QCS" | "NO_ACCESS_TO_APP" | "UNSUBSCRIBED_FROM_ALERT" | "CONDITION_EVAL_ERROR" | "USER_DISABLED_IN_ALERT_BY_OWNER" | "MAX_ALERTS_LIMIT_REACHED";
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* A custom custom JSON Patch document, as an array of objects with operation, recipient type and value. Original defined in https://datatracker.ietf.org/doc/html/rfc6902.
|
|
185
|
+
* @example
|
|
186
|
+
* [
|
|
187
|
+
* {
|
|
188
|
+
* op: "add",
|
|
189
|
+
* recipientType: "userid",
|
|
190
|
+
* value: {
|
|
191
|
+
* "enabled": true,
|
|
192
|
+
* "value": "recipient-1"
|
|
193
|
+
* }
|
|
194
|
+
* },
|
|
195
|
+
* {
|
|
196
|
+
* op: "remove",
|
|
197
|
+
* recipientType: "userid"
|
|
198
|
+
* },
|
|
199
|
+
* {
|
|
200
|
+
* op: "enable",
|
|
201
|
+
* recipientType: "userid"
|
|
202
|
+
* },
|
|
203
|
+
* {
|
|
204
|
+
* op: "disable",
|
|
205
|
+
* recipientType: "userid"
|
|
206
|
+
* },
|
|
207
|
+
* {
|
|
208
|
+
* op: "replace",
|
|
209
|
+
* recipientType: "userid",
|
|
210
|
+
* value: [
|
|
211
|
+
* {
|
|
212
|
+
* "enabled": true,
|
|
213
|
+
* "value": "recipient-1"
|
|
214
|
+
* },
|
|
215
|
+
* {
|
|
216
|
+
* "enabled": false,
|
|
217
|
+
* "value": "recipient-2"
|
|
218
|
+
* }
|
|
219
|
+
* ]
|
|
220
|
+
* }
|
|
221
|
+
* ]
|
|
222
|
+
*/
|
|
223
|
+
type AlertingTaskRecipientPatch = AlertingTaskRecipientPatchInner[];
|
|
224
|
+
type AlertingTaskRecipientPatchInner = {
|
|
225
|
+
/** The operation to be performed. */
|
|
226
|
+
op: "remove" | "add" | "replace" | "enable" | "disable" | "subscribe" | "unsubscribe";
|
|
227
|
+
/** Defines the path for the given resource field to patch. */
|
|
228
|
+
recipientType: "userid" | "groupid";
|
|
229
|
+
/** The value to be used for this operation. */
|
|
230
|
+
value: unknown;
|
|
231
|
+
};
|
|
232
|
+
type AlertingTaskResponse = {
|
|
233
|
+
/** last time a trigger was detected, but not sure if executed */
|
|
234
|
+
absoluteLastScan?: string;
|
|
235
|
+
/** last time an execution had been created */
|
|
236
|
+
absoluteLastTrigger?: string;
|
|
237
|
+
accessMode?: "SOURCE_ACCESS" | "TARGET_ACCESS";
|
|
238
|
+
alertingTaskErrors?: AlertingTaskError[];
|
|
239
|
+
/** appId associated to this alert definition */
|
|
240
|
+
appId?: string;
|
|
241
|
+
/** bookmarkId associated to this alert definition */
|
|
242
|
+
bookmarkId?: string;
|
|
243
|
+
/** the id of the condition that determines if this data alert should be triggered */
|
|
244
|
+
conditionId?: string;
|
|
245
|
+
/** Should reference ConditionResponse type in condition-manager api docs */
|
|
246
|
+
conditionResponse?: unknown;
|
|
247
|
+
/** Timestamp for the creation of the task (rfc3339 format) */
|
|
248
|
+
dateCreated?: string;
|
|
249
|
+
/** description associated to alerting task */
|
|
250
|
+
description?: string;
|
|
251
|
+
/** true if the alerting task is enabled */
|
|
252
|
+
enabled?: boolean;
|
|
253
|
+
/** error labels from the latest workflow that happened within the task */
|
|
254
|
+
errorStatus?: "OK" | "FATAL-ERROR" | "PARTIAL-TRIGGER";
|
|
255
|
+
/** the number of actual evaluations with engine this task has consumed in the current month */
|
|
256
|
+
evaluationCount?: number;
|
|
257
|
+
/** true if the alert has history condition enabled */
|
|
258
|
+
hasHistoryCondition?: boolean;
|
|
259
|
+
/** Whether the selection needs to be hidden. */
|
|
260
|
+
hideSelections?: boolean;
|
|
261
|
+
/** data alerting identifier (this is the alertID) */
|
|
262
|
+
id?: string;
|
|
263
|
+
/** the date when the evaluation count was updated */
|
|
264
|
+
lastEvaluationCountUpdate?: string;
|
|
265
|
+
lastExecutionStatus?: "OK" | "FAILED";
|
|
266
|
+
/** last time a trigger was detected, but not sure if executed for requesting user */
|
|
267
|
+
lastScan?: string;
|
|
268
|
+
/** last time an execution had been created for requesting user */
|
|
269
|
+
lastTrigger?: string;
|
|
270
|
+
/** Timestamp of the most recent update. */
|
|
271
|
+
lastUpdated?: string;
|
|
272
|
+
links?: Links;
|
|
273
|
+
/** name associated to alerting task */
|
|
274
|
+
name?: string;
|
|
275
|
+
/** the owner of this alert */
|
|
276
|
+
ownerId?: string;
|
|
277
|
+
/** the owner name of this alert */
|
|
278
|
+
ownerName?: string;
|
|
279
|
+
/** List of recipients. An internal recipient is represented by either their user id or group id. */
|
|
280
|
+
recipients?: Recipients;
|
|
281
|
+
recipientsChangeHistory?: RecipientsChange[];
|
|
282
|
+
scheduleOptions?: ScheduleOptions;
|
|
283
|
+
/** sheetId associated to this alert definition */
|
|
284
|
+
sheetId?: string;
|
|
285
|
+
/** particular status of the alerting task */
|
|
286
|
+
status?: "creating" | "deleting";
|
|
287
|
+
/** list of subscriptions related to this alerting task */
|
|
288
|
+
subscriptionIds?: string[];
|
|
289
|
+
/** the tenant of this alert */
|
|
290
|
+
tenantId?: string;
|
|
291
|
+
/** The rules and setup for throttling */
|
|
292
|
+
throttling?: ThrottlingResource;
|
|
293
|
+
triggerStats: AlertingTaskTriggerStats;
|
|
294
|
+
/** Type of job that triggered the task */
|
|
295
|
+
triggerType?: "RELOAD" | "SCHEDULED" | "MANUAL";
|
|
296
|
+
};
|
|
297
|
+
type AlertingTaskTriggerStats = {
|
|
298
|
+
/** The number of triggers out of the last 100 scans for the current condition. */
|
|
299
|
+
last100Scans: number;
|
|
300
|
+
/** The number of triggers out of the last 10 scans for the current condition. */
|
|
301
|
+
last10Scans: number;
|
|
302
|
+
/** The number of scans for the current condition. */
|
|
303
|
+
totalScans: number;
|
|
304
|
+
};
|
|
305
|
+
type AlertingTaskValidation = {
|
|
306
|
+
/** Description of the error */
|
|
307
|
+
description?: string;
|
|
308
|
+
/** @deprecated
|
|
309
|
+
* Identifier for a validation error occurring on alerting task */
|
|
310
|
+
error?: "NO_ACCESS" | "USER_IS_DISABLED" | "INVALID_CONDITION" | "GROUP_IS_DISABLED" | "GROUP_SIZE_EXCEEDED";
|
|
311
|
+
/** Identifies for user id or condition id */
|
|
312
|
+
id?: string;
|
|
313
|
+
/** Identifier for type of a validation error occurring on alerting task */
|
|
314
|
+
type?: "RECIPIENT" | "CONDITION" | "RECIPIENT_GROUP";
|
|
315
|
+
validationErrors?: ("NO_ACCESS" | "USER_IS_DISABLED" | "INVALID_CONDITION" | "MAX_ALERTS_LIMIT_REACHED" | "MAX_ALERT_RECIPIENTS_LIMIT_REACHED" | "GROUP_IS_DISABLED" | "GROUP_SIZE_EXCEEDED")[];
|
|
316
|
+
};
|
|
317
|
+
type AlertingTaskValidationResponse = {
|
|
318
|
+
status?: "FAILURE" | "SUCCESS";
|
|
319
|
+
validations?: AlertingTaskValidation[];
|
|
320
|
+
};
|
|
321
|
+
type Error = {
|
|
322
|
+
/** Error code specific to sharing service. */
|
|
323
|
+
readonly code?: string;
|
|
324
|
+
/** Error cause. */
|
|
325
|
+
readonly detail?: string;
|
|
326
|
+
meta?: ErrorMeta;
|
|
327
|
+
/** Error title. */
|
|
328
|
+
readonly title?: string;
|
|
329
|
+
};
|
|
330
|
+
type ErrorMeta = {
|
|
331
|
+
/** HTTP error code. */
|
|
332
|
+
readonly httpCode?: number;
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* @example
|
|
336
|
+
* {
|
|
337
|
+
* errors: [
|
|
338
|
+
* {
|
|
339
|
+
* code: "HTTP-123",
|
|
340
|
+
* title: "short error message"
|
|
341
|
+
* }
|
|
342
|
+
* ],
|
|
343
|
+
* traceId: "7975401f3954aa47"
|
|
344
|
+
* }
|
|
345
|
+
*/
|
|
346
|
+
type Errors = {
|
|
347
|
+
errors?: Error[];
|
|
348
|
+
traceId?: string;
|
|
349
|
+
};
|
|
350
|
+
type Evaluation = {
|
|
351
|
+
/** Representation of the event that caused the condition to be evaluated if one was included on when the evaluation was triggered */
|
|
352
|
+
causalEvent?: unknown;
|
|
353
|
+
/** The unique id of the associated condition */
|
|
354
|
+
readonly conditionId?: string;
|
|
355
|
+
/** Extra context information to carry through to the result if one was included on when the evaluation was triggered */
|
|
356
|
+
contextId?: string;
|
|
357
|
+
/** The unique id for the resource given from Data Condition Evaluator */
|
|
358
|
+
readonly dataConditionEvaluatorId?: string;
|
|
359
|
+
/** The time the evaluation ended */
|
|
360
|
+
readonly endTime?: string;
|
|
361
|
+
/** The unique id for the resource */
|
|
362
|
+
readonly id?: string;
|
|
363
|
+
/** userId of user being impersonated to evaluate the condition */
|
|
364
|
+
readonly ownerId?: string;
|
|
365
|
+
/** The final result of the evalution */
|
|
366
|
+
readonly result?: "success" | "failure" | "error";
|
|
367
|
+
/** Condition type specific result, one of dataResult or compoundResult */
|
|
368
|
+
resultData?: unknown;
|
|
369
|
+
/** The time the evaluation started */
|
|
370
|
+
readonly startTime?: string;
|
|
371
|
+
/** The status of the evaluation execution */
|
|
372
|
+
readonly status?: "RUNNING" | "FAILED" | "FINISHED";
|
|
373
|
+
/** The tenant id */
|
|
374
|
+
readonly tenantId?: string;
|
|
375
|
+
};
|
|
376
|
+
type EvaluationGetResponse = {
|
|
377
|
+
condition?: unknown;
|
|
378
|
+
evaluation?: Evaluation;
|
|
379
|
+
hideSelections?: boolean;
|
|
380
|
+
};
|
|
381
|
+
type ExecutionStats = {
|
|
382
|
+
endTime?: string;
|
|
383
|
+
periodKey?: string;
|
|
384
|
+
startTime?: string;
|
|
385
|
+
totalExecutions?: string;
|
|
386
|
+
triggeredExecutions?: string;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* an internal recipient based on its group id.
|
|
390
|
+
*/
|
|
391
|
+
type GroupIDRecipient = {
|
|
392
|
+
alertingTaskGroupRecipientErrors?: AlertingTaskGroupRecipientError[];
|
|
393
|
+
/** Whether this recipient can receive alerts. */
|
|
394
|
+
enabled?: boolean;
|
|
395
|
+
taskGroupRecipientErrors?: TaskGroupRecipientError[];
|
|
396
|
+
/** Group ID of recipient. */
|
|
397
|
+
value?: string;
|
|
398
|
+
};
|
|
399
|
+
type Links = {
|
|
400
|
+
/** Object with Href to a particular element or set of elements */
|
|
401
|
+
self?: Self;
|
|
402
|
+
};
|
|
403
|
+
type ListLinks = {
|
|
404
|
+
next?: Page;
|
|
405
|
+
prev?: Page;
|
|
406
|
+
/** Object with Href to a particular element or set of elements */
|
|
407
|
+
self?: Self;
|
|
408
|
+
};
|
|
409
|
+
type Page = {
|
|
410
|
+
/** URL to particular set of elements */
|
|
411
|
+
href?: string;
|
|
412
|
+
/** Page unique token */
|
|
413
|
+
token?: string;
|
|
414
|
+
/** Page type, can be next or prev */
|
|
415
|
+
type?: "prev" | "next";
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* List of recipients. An internal recipient is represented by either their user id or group id.
|
|
419
|
+
*/
|
|
420
|
+
type Recipients = {
|
|
421
|
+
DLGroups?: unknown[];
|
|
422
|
+
DLListId?: string;
|
|
423
|
+
DLUsers?: unknown[];
|
|
424
|
+
groupIds?: GroupIDRecipient[];
|
|
425
|
+
userIds: UserIDRecipient[];
|
|
426
|
+
};
|
|
427
|
+
/**
|
|
428
|
+
* Change in a recipient for an alerting task
|
|
429
|
+
*/
|
|
430
|
+
type RecipientsChange = {
|
|
431
|
+
/** time of recipient state change */
|
|
432
|
+
dateTime?: string;
|
|
433
|
+
/** A custom custom JSON Patch document, as an array of objects with operation, recipient type and value. Original defined in https://datatracker.ietf.org/doc/html/rfc6902. */
|
|
434
|
+
patchAction?: AlertingTaskRecipientPatch;
|
|
435
|
+
};
|
|
436
|
+
type ScheduleOptions = {
|
|
437
|
+
/** The chronos job identifier. It is set once the related chronos job is created. */
|
|
438
|
+
readonly chronosJobID?: string;
|
|
439
|
+
/** EndDateTime is a local date time with respect to the above timezone parameter. If the timezone parameter is missing, then the timezone used is the one retrieved from user infos. Therefore ISO8601 time offsets are not allowed (e.g. "2026-01-02T16:04:05Z" or "2026-01-02T16:04:05+01"), if passed an error will be returned. EndDateTime is an optional parameter, when not set or when it's an empty string, the recurrence is intended to be never ending. */
|
|
440
|
+
endDateTime?: string;
|
|
441
|
+
/** lastExecutionTime is the time of the chronos job last execution in RFC3339 format (a time with a fixed UTC offset). Could be empty if job has not run yet. */
|
|
442
|
+
readonly lastExecutionTime?: string;
|
|
443
|
+
/** nextExecutionTime is the time of the chronos job next execution in RFC3339 format (a time with a fixed UTC offset). Could be empty if the job is completed. */
|
|
444
|
+
readonly nextExecutionTime?: string;
|
|
445
|
+
/** List of RRULEs for SCHEDULED triggers, as specified in RFC5545. Note that DTSTART and DTEND, UNTIL lines are not allowed in this field; start and end times are specified in the start and end fields. RDATE and EXDATE lines are not currently supported. EXRULE is not supported since it is deprecated by RFC5545. It is mandatory if the trigger type is SCHEDULED. At least 1 rule must be set and maximum 5 rules are allowed. */
|
|
446
|
+
recurrence?: string[];
|
|
447
|
+
/** StartDateTime is a local date time with respect to the above timezone parameter. If the timezone parameter is missing, then the timezone used is the one retrieved from user infos. Therefore ISO8601 time offsets are not allowed (e.g. "2026-01-02T16:04:05Z" or "2026-01-02T16:04:05+01"), if passed an error will be returned. StartDateTime should not be older than 1 year from current date. StartDateTime is an optional parameter, when not set or when it's an empty string, its value is set to the current local date time. */
|
|
448
|
+
startDateTime?: string;
|
|
449
|
+
/** The timezone for time calculations in SCHEDULED triggers, optional. */
|
|
450
|
+
timezone?: string;
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* Object with Href to a particular element or set of elements
|
|
454
|
+
*/
|
|
455
|
+
type Self = {
|
|
456
|
+
href?: string;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* properties that should be added to every list response
|
|
460
|
+
*/
|
|
461
|
+
type StandardListResponseProps = {
|
|
462
|
+
/** count of entries on the currently shown page */
|
|
463
|
+
currentPageCount: number;
|
|
464
|
+
/** total count of entries in the collection as a whole */
|
|
465
|
+
totalCount: number;
|
|
466
|
+
};
|
|
467
|
+
type TaskGroupRecipientError = {
|
|
468
|
+
/** Timestamp for the creation of the error */
|
|
469
|
+
timestamp?: string;
|
|
470
|
+
/** Identifier for type of error occurring on sharing task specific for group recipient */
|
|
471
|
+
value?: "GROUP_IS_DISABLED" | "MAX_ALERTS_LIMIT_REACHED" | "GROUP_WITH_NO_APP_ACCESS" | "GROUP_IS_DELETED" | "GROUP_NOT_FOUND_DL" | "GROUP_DISABLED_IN_DL";
|
|
472
|
+
};
|
|
473
|
+
type TaskRecipientError = {
|
|
474
|
+
/** Timestamp for the creation of the error */
|
|
475
|
+
timestamp?: string;
|
|
476
|
+
/** Identifier for type of error occurring on sharing task specific for recipient */
|
|
477
|
+
value?: "USER_IS_DELETED" | "USER_DISABLED_IN_QCS" | "NO_ACCESS_TO_APP" | "UNSUBSCRIBED_FROM_SHARING" | "USER_DISABLED_IN_SHARING_BY_OWNER" | "CHART_NOT_FOUND" | "APP_NOT_FOUND" | "SHEET_NOT_FOUND" | "ENGINE_POD_NOT_AVAILABLE" | "CHART_TYPE_NOT_ALLOWED" | "GENERIC_EXECUTION_FAILURE" | "USER_NOT_FOUND_DL" | "USER_DISABLED_IN_DL" | "FILTER_NOT_FOUND" | "BOOKMARK_NOT_FOUND";
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* The rules and setup for throttling
|
|
481
|
+
*/
|
|
482
|
+
type ThrottlingResource = {
|
|
483
|
+
/** the maximum number of tokens that the bucket can contain */
|
|
484
|
+
capacity?: number;
|
|
485
|
+
/** the initial amount of tokens in the bucket upon creation. cannot exceed capacity. */
|
|
486
|
+
initialTokenCount?: number;
|
|
487
|
+
/** A string that supports a subset of RFC5545 recurrence rule directives. */
|
|
488
|
+
recurrenceRule?: string;
|
|
489
|
+
/** a date and time reference specified in RFC3339 format */
|
|
490
|
+
referenceTimestamp?: string;
|
|
491
|
+
/** the amount of tokens to insert into the bucket on the specified interval. (tokens exceeding capacity are discarded) */
|
|
492
|
+
replenishRate?: number;
|
|
493
|
+
/** the timezone for time calculations in this throttlingresource, for current time and time reference. */
|
|
494
|
+
timezone?: string;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* an internal recipient based on its user id.
|
|
498
|
+
*/
|
|
499
|
+
type UserIDRecipient = {
|
|
500
|
+
alertingTaskRecipientErrors?: AlertingTaskRecipientError[];
|
|
501
|
+
/** Whether this recipient can receive alerts. */
|
|
502
|
+
enabled?: boolean;
|
|
503
|
+
/** A list of associated groups. If a user is added individually the "addedIndividually" pseudo group is included */
|
|
504
|
+
groups?: string[];
|
|
505
|
+
/** Whether this recipient is subscribed to alerts of a task */
|
|
506
|
+
subscribed?: boolean;
|
|
507
|
+
taskRecipientErrors?: TaskRecipientError[];
|
|
508
|
+
/** User ID of recipient (internal user). */
|
|
509
|
+
value?: string;
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
* Get a list of alerting tasks.
|
|
513
|
+
*
|
|
514
|
+
* @param query an object with query parameters
|
|
515
|
+
* @throws GetDataAlertsHttpError
|
|
516
|
+
*/
|
|
517
|
+
declare const getDataAlerts: (query: {
|
|
518
|
+
/** The app ID you would like to filter by */
|
|
519
|
+
appID?: string;
|
|
520
|
+
/** The conditionId you would like to filter by */
|
|
521
|
+
conditionId?: string;
|
|
522
|
+
/** Limit the returned result set */
|
|
523
|
+
limit?: number;
|
|
524
|
+
/** The cursor to the next page of data. Only one of next or previous may be specified. */
|
|
525
|
+
next?: string;
|
|
526
|
+
/** Offset for finding a list of entities - used for pagination */
|
|
527
|
+
offset?: number;
|
|
528
|
+
/** The id of the owner you would like to filter by */
|
|
529
|
+
ownerId?: string;
|
|
530
|
+
/** The name of the owner you would like to filter by */
|
|
531
|
+
ownerName?: string;
|
|
532
|
+
/** The cursor to the previous page of data. Only one of next or previous may be specified. */
|
|
533
|
+
prev?: string;
|
|
534
|
+
/** The role you would like to filter by */
|
|
535
|
+
role?: ("owner" | "recipient" | "notowner")[];
|
|
536
|
+
/** Sort the returned result set by the specified field */
|
|
537
|
+
sort?: ("-datecreated" | "datecreated" | "+datecreated" | "-ownername" | "ownername" | "+ownername" | "lasttrigger" | "-lasttrigger" | "+lasttrigger" | "lastscan" | "-lastscan" | "+lastscan" | "name" | "-name" | "+name" | "enabled" | "-enabled" | "+enabled" | "status" | "-status" | "+status" | "nextexecutiontime" | "-nextexecutiontime" | "+nextexecutiontime")[];
|
|
538
|
+
/** The status you would like to filter by */
|
|
539
|
+
status?: ("INVALID_RECIPIENT" | "INVALID_OWNER" | "DISABLED" | "VALID")[];
|
|
540
|
+
}, options?: ApiCallOptions) => Promise<GetDataAlertsHttpResponse>;
|
|
541
|
+
type GetDataAlertsHttpResponse = {
|
|
542
|
+
data: AlertingTaskListResponse;
|
|
543
|
+
headers: Headers;
|
|
544
|
+
status: 200;
|
|
545
|
+
prev?: (options?: ApiCallOptions) => Promise<GetDataAlertsHttpResponse>;
|
|
546
|
+
next?: (options?: ApiCallOptions) => Promise<GetDataAlertsHttpResponse>;
|
|
547
|
+
};
|
|
548
|
+
type GetDataAlertsHttpError = {
|
|
549
|
+
data: Errors;
|
|
550
|
+
headers: Headers;
|
|
551
|
+
status: number;
|
|
552
|
+
};
|
|
553
|
+
/**
|
|
554
|
+
* Creates a new alerting task.
|
|
555
|
+
*
|
|
556
|
+
* @param body an object with the body content
|
|
557
|
+
* @throws CreateDataAlertHttpError
|
|
558
|
+
*/
|
|
559
|
+
declare const createDataAlert: (body: AlertingTaskCreateRequest, options?: ApiCallOptions) => Promise<CreateDataAlertHttpResponse>;
|
|
560
|
+
type CreateDataAlertHttpResponse = {
|
|
561
|
+
data: AlertingTaskResponse;
|
|
562
|
+
headers: Headers;
|
|
563
|
+
status: 202;
|
|
564
|
+
};
|
|
565
|
+
type CreateDataAlertHttpError = {
|
|
566
|
+
data: Errors;
|
|
567
|
+
headers: Headers;
|
|
568
|
+
status: number;
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Creates a new alerting trigger action.
|
|
572
|
+
*
|
|
573
|
+
* @param body an object with the body content
|
|
574
|
+
* @throws TriggerDataAlertsHttpError
|
|
575
|
+
*/
|
|
576
|
+
declare const triggerDataAlerts: (body: AlertingActionsTriggerCreateRequest, options?: ApiCallOptions) => Promise<TriggerDataAlertsHttpResponse>;
|
|
577
|
+
type TriggerDataAlertsHttpResponse = {
|
|
578
|
+
data: AlertingActionsTriggerCreateResponse;
|
|
579
|
+
headers: Headers;
|
|
580
|
+
status: 202;
|
|
581
|
+
};
|
|
582
|
+
type TriggerDataAlertsHttpError = {
|
|
583
|
+
data: Errors;
|
|
584
|
+
headers: Headers;
|
|
585
|
+
status: number;
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* Validates a new alerting task. Current support includes validation for recipients only.
|
|
589
|
+
*
|
|
590
|
+
* @param body an object with the body content
|
|
591
|
+
* @throws ValidateDataAlertsHttpError
|
|
592
|
+
*/
|
|
593
|
+
declare const validateDataAlerts: (body: AlertingTaskCreateRequest, options?: ApiCallOptions) => Promise<ValidateDataAlertsHttpResponse>;
|
|
594
|
+
type ValidateDataAlertsHttpResponse = {
|
|
595
|
+
data: AlertingTaskValidationResponse;
|
|
596
|
+
headers: Headers;
|
|
597
|
+
status: 200;
|
|
598
|
+
};
|
|
599
|
+
type ValidateDataAlertsHttpError = {
|
|
600
|
+
data: Errors;
|
|
601
|
+
headers: Headers;
|
|
602
|
+
status: number;
|
|
603
|
+
};
|
|
604
|
+
/**
|
|
605
|
+
* Lists alerting settings.
|
|
606
|
+
*
|
|
607
|
+
* @throws GetDataAlertsSettingsHttpError
|
|
608
|
+
*/
|
|
609
|
+
declare const getDataAlertsSettings: (options?: ApiCallOptions) => Promise<GetDataAlertsSettingsHttpResponse>;
|
|
610
|
+
type GetDataAlertsSettingsHttpResponse = {
|
|
611
|
+
data: AlertingSettings;
|
|
612
|
+
headers: Headers;
|
|
613
|
+
status: 200;
|
|
614
|
+
};
|
|
615
|
+
type GetDataAlertsSettingsHttpError = {
|
|
616
|
+
data: Errors;
|
|
617
|
+
headers: Headers;
|
|
618
|
+
status: number;
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* Updates Alerting configuration. Accessible only by tenant admins.
|
|
622
|
+
*
|
|
623
|
+
* @param body an object with the body content
|
|
624
|
+
* @throws SetDataAlertsSettingsHttpError
|
|
625
|
+
*/
|
|
626
|
+
declare const setDataAlertsSettings: (body: AlertingSettingsUpload, options?: ApiCallOptions) => Promise<SetDataAlertsSettingsHttpResponse>;
|
|
627
|
+
type SetDataAlertsSettingsHttpResponse = {
|
|
628
|
+
data: void;
|
|
629
|
+
headers: Headers;
|
|
630
|
+
status: 204;
|
|
631
|
+
};
|
|
632
|
+
type SetDataAlertsSettingsHttpError = {
|
|
633
|
+
data: Errors;
|
|
634
|
+
headers: Headers;
|
|
635
|
+
status: number;
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* Deletes an alerting task.
|
|
639
|
+
*
|
|
640
|
+
* @param alertId The alerting task identifier.
|
|
641
|
+
* @throws DeleteDataAlertHttpError
|
|
642
|
+
*/
|
|
643
|
+
declare const deleteDataAlert: (alertId: string, options?: ApiCallOptions) => Promise<DeleteDataAlertHttpResponse>;
|
|
644
|
+
type DeleteDataAlertHttpResponse = {
|
|
645
|
+
data: void;
|
|
646
|
+
headers: Headers;
|
|
647
|
+
status: 204;
|
|
648
|
+
};
|
|
649
|
+
type DeleteDataAlertHttpError = {
|
|
650
|
+
data: Errors;
|
|
651
|
+
headers: Headers;
|
|
652
|
+
status: number;
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* Get an alerting task by its id
|
|
656
|
+
*
|
|
657
|
+
* @param alertId The alerting task identifier.
|
|
658
|
+
* @throws GetDataAlertHttpError
|
|
659
|
+
*/
|
|
660
|
+
declare const getDataAlert: (alertId: string, options?: ApiCallOptions) => Promise<GetDataAlertHttpResponse>;
|
|
661
|
+
type GetDataAlertHttpResponse = {
|
|
662
|
+
data: AlertingTaskResponse;
|
|
663
|
+
headers: Headers;
|
|
664
|
+
status: 200;
|
|
665
|
+
};
|
|
666
|
+
type GetDataAlertHttpError = {
|
|
667
|
+
data: Errors;
|
|
668
|
+
headers: Headers;
|
|
669
|
+
status: number;
|
|
670
|
+
};
|
|
671
|
+
/**
|
|
672
|
+
* Updates an existing alerting task
|
|
673
|
+
*
|
|
674
|
+
* @param alertId The alerting task identifier.
|
|
675
|
+
* @param body an object with the body content
|
|
676
|
+
* @throws PatchDataAlertHttpError
|
|
677
|
+
*/
|
|
678
|
+
declare const patchDataAlert: (alertId: string, body: AlertingTaskPatchRequestCompliantList, options?: ApiCallOptions) => Promise<PatchDataAlertHttpResponse>;
|
|
679
|
+
type PatchDataAlertHttpResponse = {
|
|
680
|
+
data: void;
|
|
681
|
+
headers: Headers;
|
|
682
|
+
status: 204;
|
|
683
|
+
};
|
|
684
|
+
type PatchDataAlertHttpError = {
|
|
685
|
+
data: Errors;
|
|
686
|
+
headers: Headers;
|
|
687
|
+
status: number;
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* Get the condition associated with an alerting task
|
|
691
|
+
*
|
|
692
|
+
* @param alertId The alerting task identifier.
|
|
693
|
+
* @throws GetDataAlertConditionHttpError
|
|
694
|
+
*/
|
|
695
|
+
declare const getDataAlertCondition: (alertId: string, options?: ApiCallOptions) => Promise<GetDataAlertConditionHttpResponse>;
|
|
696
|
+
type GetDataAlertConditionHttpResponse = {
|
|
697
|
+
data: AlertingConditionResponse;
|
|
698
|
+
headers: Headers;
|
|
699
|
+
status: 200;
|
|
700
|
+
};
|
|
701
|
+
type GetDataAlertConditionHttpError = {
|
|
702
|
+
data: Errors;
|
|
703
|
+
headers: Headers;
|
|
704
|
+
status: number;
|
|
705
|
+
};
|
|
706
|
+
/**
|
|
707
|
+
* Deletes an execution.
|
|
708
|
+
*
|
|
709
|
+
* @param alertId The alerting task identifier.
|
|
710
|
+
* @param executionId The execution identifier.
|
|
711
|
+
* @throws DeleteDataAlertExecutionHttpError
|
|
712
|
+
*/
|
|
713
|
+
declare const deleteDataAlertExecution: (alertId: string, executionId: string, options?: ApiCallOptions) => Promise<DeleteDataAlertExecutionHttpResponse>;
|
|
714
|
+
type DeleteDataAlertExecutionHttpResponse = {
|
|
715
|
+
data: void;
|
|
716
|
+
headers: Headers;
|
|
717
|
+
status: 204;
|
|
718
|
+
};
|
|
719
|
+
type DeleteDataAlertExecutionHttpError = {
|
|
720
|
+
data: Errors;
|
|
721
|
+
headers: Headers;
|
|
722
|
+
status: number;
|
|
723
|
+
};
|
|
724
|
+
/**
|
|
725
|
+
* Gets a specified alerting execution.
|
|
726
|
+
*
|
|
727
|
+
* @param alertId The alerting task identifier.
|
|
728
|
+
* @param executionId The execution identifier. If value is "latest", the latest execution will be returned
|
|
729
|
+
* @throws GetDataAlertExecutionHttpError
|
|
730
|
+
*/
|
|
731
|
+
declare const getDataAlertExecution: (alertId: string, executionId: string, options?: ApiCallOptions) => Promise<GetDataAlertExecutionHttpResponse>;
|
|
732
|
+
type GetDataAlertExecutionHttpResponse = {
|
|
733
|
+
data: AlertingExecutionResponse;
|
|
734
|
+
headers: Headers;
|
|
735
|
+
status: 200;
|
|
736
|
+
};
|
|
737
|
+
type GetDataAlertExecutionHttpError = {
|
|
738
|
+
data: Errors;
|
|
739
|
+
headers: Headers;
|
|
740
|
+
status: number;
|
|
741
|
+
};
|
|
742
|
+
/**
|
|
743
|
+
* Get the recipient stats for an alerting task
|
|
744
|
+
*
|
|
745
|
+
* @param alertId The alerting task identifier.
|
|
746
|
+
* @param query an object with query parameters
|
|
747
|
+
* @throws GetDataAlertRecipientStatsHttpError
|
|
748
|
+
*/
|
|
749
|
+
declare const getDataAlertRecipientStats: (alertId: string, query: {
|
|
750
|
+
/** The name of the groups you would like to filter by */
|
|
751
|
+
groups?: string[];
|
|
752
|
+
/** Sort the returned result set by the specified field */
|
|
753
|
+
sort?: ("+userID" | "-userID" | "subscribed" | "+subscribed")[];
|
|
754
|
+
/** Subscribed property you would like to filter by */
|
|
755
|
+
subscribed?: boolean;
|
|
756
|
+
/** The recipients ID you would like to filter by */
|
|
757
|
+
userID?: string;
|
|
758
|
+
}, options?: ApiCallOptions) => Promise<GetDataAlertRecipientStatsHttpResponse>;
|
|
759
|
+
type GetDataAlertRecipientStatsHttpResponse = {
|
|
760
|
+
data: AlertingRecipientStatsResponse;
|
|
761
|
+
headers: Headers;
|
|
762
|
+
status: 200;
|
|
763
|
+
};
|
|
764
|
+
type GetDataAlertRecipientStatsHttpError = {
|
|
765
|
+
data: Errors;
|
|
766
|
+
headers: Headers;
|
|
767
|
+
status: number;
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* Lists all alerting-executions linked to a user and a tenant.
|
|
771
|
+
*
|
|
772
|
+
* @param taskId The alerting task identifier.
|
|
773
|
+
* @param query an object with query parameters
|
|
774
|
+
* @throws GetDataAlertExecutionsHttpError
|
|
775
|
+
*/
|
|
776
|
+
declare const getDataAlertExecutions: (taskId: string, query: {
|
|
777
|
+
/** Filter by condition id related to the executions. */
|
|
778
|
+
conditionId?: string;
|
|
779
|
+
/** Filter by whether the alerting task execution status is FINISHED or FAILED. */
|
|
780
|
+
conditionStatus?: "FINISHED" | "FAILED" | "ALL";
|
|
781
|
+
/** Specifies required days of the month that the execution was created in */
|
|
782
|
+
daysOfMonth?: number[];
|
|
783
|
+
/** Specifies a filter for custom handled periods of time in which the executions were handled */
|
|
784
|
+
daysOfWeek?: ("MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY")[];
|
|
785
|
+
/** Specifies specific properties to be populated */
|
|
786
|
+
fields?: ("evaluationId" | "triggerTime" | "conditionStatus" | "executionEvaluationStatus" | "evaluation" | "evaluation.endTime" | "evaluation.resultData" | "evaluation.resultData.count" | "evaluation.resultData.headers" | "evaluation.resultData.positive" | "evaluation.resultData.negative" | "evaluation.resultData.dimensions" | "evaluation.resultData.measures")[];
|
|
787
|
+
/** Specifies whether to include evaluation details */
|
|
788
|
+
includeEvaluation?: boolean;
|
|
789
|
+
/** Specifies whether to only show the last execution in each day */
|
|
790
|
+
lastEachDay?: boolean;
|
|
791
|
+
/** Limit the returned result set */
|
|
792
|
+
limit?: number;
|
|
793
|
+
/** Specifies the number of days required between each entry. This should require a sort by triggertime */
|
|
794
|
+
minimumGapDays?: number;
|
|
795
|
+
/** The cursor to the next page of data. Only one of next or previous may be specified. */
|
|
796
|
+
next?: string;
|
|
797
|
+
/** Offset for pagination - how many elements to skip */
|
|
798
|
+
offset?: number;
|
|
799
|
+
/** The cursor to the previous page of data. Only one of next or previous may be specified. */
|
|
800
|
+
prev?: string;
|
|
801
|
+
/** Specifies a limit number for the search query, affects total count and is not related to pagination */
|
|
802
|
+
searchResultsLimit?: number;
|
|
803
|
+
/** Specifies a date that executions should have been created after. Date in RFC3339Nano format, such as 2020-01-01T00:00:00.000Z */
|
|
804
|
+
since?: string;
|
|
805
|
+
/** Sort the returned result set by the specified field */
|
|
806
|
+
sort?: ("triggertime" | "-triggertime" | "+triggertime")[];
|
|
807
|
+
/** Specifies a timezone the other time-based filters in this query should consider. Expecting a momentjs format, such as America/Los_Angeles */
|
|
808
|
+
timezone?: string;
|
|
809
|
+
/** Filter by whether the alerting task is triggered. */
|
|
810
|
+
triggered?: boolean;
|
|
811
|
+
/** Specifies a date that executions should have been created before. Date in RFC3339Nano format, such as 2020-01-01T00:00:00.000Z */
|
|
812
|
+
until?: string;
|
|
813
|
+
}, options?: ApiCallOptions) => Promise<GetDataAlertExecutionsHttpResponse>;
|
|
814
|
+
type GetDataAlertExecutionsHttpResponse = {
|
|
815
|
+
data: AlertingExecutionListResponse;
|
|
816
|
+
headers: Headers;
|
|
817
|
+
status: 200;
|
|
818
|
+
prev?: (options?: ApiCallOptions) => Promise<GetDataAlertExecutionsHttpResponse>;
|
|
819
|
+
next?: (options?: ApiCallOptions) => Promise<GetDataAlertExecutionsHttpResponse>;
|
|
820
|
+
};
|
|
821
|
+
type GetDataAlertExecutionsHttpError = {
|
|
822
|
+
data: Errors;
|
|
823
|
+
headers: Headers;
|
|
824
|
+
status: number;
|
|
825
|
+
};
|
|
826
|
+
/**
|
|
827
|
+
* @deprecated
|
|
828
|
+
*
|
|
829
|
+
* Gets the stats for alerting task executions
|
|
830
|
+
*
|
|
831
|
+
* @param taskId The alerting task identifier.
|
|
832
|
+
* @param query an object with query parameters
|
|
833
|
+
* @throws GetDataAlertExecutionsStatsHttpError
|
|
834
|
+
*/
|
|
835
|
+
declare const getDataAlertExecutionsStats: (taskId: string, query: {
|
|
836
|
+
/** The period by which the stats aggregation needs to be performed. */
|
|
837
|
+
period: "month";
|
|
838
|
+
}, options?: ApiCallOptions) => Promise<GetDataAlertExecutionsStatsHttpResponse>;
|
|
839
|
+
type GetDataAlertExecutionsStatsHttpResponse = {
|
|
840
|
+
data: AlertingTaskExecutionStats;
|
|
841
|
+
headers: Headers;
|
|
842
|
+
status: 200;
|
|
843
|
+
prev?: (options?: ApiCallOptions) => Promise<GetDataAlertExecutionsStatsHttpResponse>;
|
|
844
|
+
next?: (options?: ApiCallOptions) => Promise<GetDataAlertExecutionsStatsHttpResponse>;
|
|
845
|
+
};
|
|
846
|
+
type GetDataAlertExecutionsStatsHttpError = {
|
|
847
|
+
data: Errors;
|
|
848
|
+
headers: Headers;
|
|
849
|
+
status: number;
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* Gets the content of an evaluation from an execution
|
|
853
|
+
*
|
|
854
|
+
* @param taskId The alerting task identifier.
|
|
855
|
+
* @param executionId The execution identifier.
|
|
856
|
+
* @throws GetDataAlertExecutionEvaluationsHttpError
|
|
857
|
+
*/
|
|
858
|
+
declare const getDataAlertExecutionEvaluations: (taskId: string, executionId: string, options?: ApiCallOptions) => Promise<GetDataAlertExecutionEvaluationsHttpResponse>;
|
|
859
|
+
type GetDataAlertExecutionEvaluationsHttpResponse = {
|
|
860
|
+
data: EvaluationGetResponse;
|
|
861
|
+
headers: Headers;
|
|
862
|
+
status: 200;
|
|
863
|
+
};
|
|
864
|
+
type GetDataAlertExecutionEvaluationsHttpError = {
|
|
865
|
+
data: Errors;
|
|
866
|
+
headers: Headers;
|
|
867
|
+
status: number;
|
|
868
|
+
};
|
|
869
|
+
/**
|
|
870
|
+
* Clears the cache for data-alerts api requests.
|
|
871
|
+
*/
|
|
872
|
+
declare function clearCache(): void;
|
|
873
|
+
interface DataAlertsAPI {
|
|
874
|
+
/**
|
|
875
|
+
* Get a list of alerting tasks.
|
|
876
|
+
*
|
|
877
|
+
* @param query an object with query parameters
|
|
878
|
+
* @throws GetDataAlertsHttpError
|
|
879
|
+
*/
|
|
880
|
+
getDataAlerts: typeof getDataAlerts;
|
|
881
|
+
/**
|
|
882
|
+
* Creates a new alerting task.
|
|
883
|
+
*
|
|
884
|
+
* @param body an object with the body content
|
|
885
|
+
* @throws CreateDataAlertHttpError
|
|
886
|
+
*/
|
|
887
|
+
createDataAlert: typeof createDataAlert;
|
|
888
|
+
/**
|
|
889
|
+
* Creates a new alerting trigger action.
|
|
890
|
+
*
|
|
891
|
+
* @param body an object with the body content
|
|
892
|
+
* @throws TriggerDataAlertsHttpError
|
|
893
|
+
*/
|
|
894
|
+
triggerDataAlerts: typeof triggerDataAlerts;
|
|
895
|
+
/**
|
|
896
|
+
* Validates a new alerting task. Current support includes validation for recipients only.
|
|
897
|
+
*
|
|
898
|
+
* @param body an object with the body content
|
|
899
|
+
* @throws ValidateDataAlertsHttpError
|
|
900
|
+
*/
|
|
901
|
+
validateDataAlerts: typeof validateDataAlerts;
|
|
902
|
+
/**
|
|
903
|
+
* Lists alerting settings.
|
|
904
|
+
*
|
|
905
|
+
* @throws GetDataAlertsSettingsHttpError
|
|
906
|
+
*/
|
|
907
|
+
getDataAlertsSettings: typeof getDataAlertsSettings;
|
|
908
|
+
/**
|
|
909
|
+
* Updates Alerting configuration. Accessible only by tenant admins.
|
|
910
|
+
*
|
|
911
|
+
* @param body an object with the body content
|
|
912
|
+
* @throws SetDataAlertsSettingsHttpError
|
|
913
|
+
*/
|
|
914
|
+
setDataAlertsSettings: typeof setDataAlertsSettings;
|
|
915
|
+
/**
|
|
916
|
+
* Deletes an alerting task.
|
|
917
|
+
*
|
|
918
|
+
* @param alertId The alerting task identifier.
|
|
919
|
+
* @throws DeleteDataAlertHttpError
|
|
920
|
+
*/
|
|
921
|
+
deleteDataAlert: typeof deleteDataAlert;
|
|
922
|
+
/**
|
|
923
|
+
* Get an alerting task by its id
|
|
924
|
+
*
|
|
925
|
+
* @param alertId The alerting task identifier.
|
|
926
|
+
* @throws GetDataAlertHttpError
|
|
927
|
+
*/
|
|
928
|
+
getDataAlert: typeof getDataAlert;
|
|
929
|
+
/**
|
|
930
|
+
* Updates an existing alerting task
|
|
931
|
+
*
|
|
932
|
+
* @param alertId The alerting task identifier.
|
|
933
|
+
* @param body an object with the body content
|
|
934
|
+
* @throws PatchDataAlertHttpError
|
|
935
|
+
*/
|
|
936
|
+
patchDataAlert: typeof patchDataAlert;
|
|
937
|
+
/**
|
|
938
|
+
* Get the condition associated with an alerting task
|
|
939
|
+
*
|
|
940
|
+
* @param alertId The alerting task identifier.
|
|
941
|
+
* @throws GetDataAlertConditionHttpError
|
|
942
|
+
*/
|
|
943
|
+
getDataAlertCondition: typeof getDataAlertCondition;
|
|
944
|
+
/**
|
|
945
|
+
* Deletes an execution.
|
|
946
|
+
*
|
|
947
|
+
* @param alertId The alerting task identifier.
|
|
948
|
+
* @param executionId The execution identifier.
|
|
949
|
+
* @throws DeleteDataAlertExecutionHttpError
|
|
950
|
+
*/
|
|
951
|
+
deleteDataAlertExecution: typeof deleteDataAlertExecution;
|
|
952
|
+
/**
|
|
953
|
+
* Gets a specified alerting execution.
|
|
954
|
+
*
|
|
955
|
+
* @param alertId The alerting task identifier.
|
|
956
|
+
* @param executionId The execution identifier. If value is "latest", the latest execution will be returned
|
|
957
|
+
* @throws GetDataAlertExecutionHttpError
|
|
958
|
+
*/
|
|
959
|
+
getDataAlertExecution: typeof getDataAlertExecution;
|
|
960
|
+
/**
|
|
961
|
+
* Get the recipient stats for an alerting task
|
|
962
|
+
*
|
|
963
|
+
* @param alertId The alerting task identifier.
|
|
964
|
+
* @param query an object with query parameters
|
|
965
|
+
* @throws GetDataAlertRecipientStatsHttpError
|
|
966
|
+
*/
|
|
967
|
+
getDataAlertRecipientStats: typeof getDataAlertRecipientStats;
|
|
968
|
+
/**
|
|
969
|
+
* Lists all alerting-executions linked to a user and a tenant.
|
|
970
|
+
*
|
|
971
|
+
* @param taskId The alerting task identifier.
|
|
972
|
+
* @param query an object with query parameters
|
|
973
|
+
* @throws GetDataAlertExecutionsHttpError
|
|
974
|
+
*/
|
|
975
|
+
getDataAlertExecutions: typeof getDataAlertExecutions;
|
|
976
|
+
/**
|
|
977
|
+
* @deprecated
|
|
978
|
+
*
|
|
979
|
+
* Gets the stats for alerting task executions
|
|
980
|
+
*
|
|
981
|
+
* @param taskId The alerting task identifier.
|
|
982
|
+
* @param query an object with query parameters
|
|
983
|
+
* @throws GetDataAlertExecutionsStatsHttpError
|
|
984
|
+
*/
|
|
985
|
+
getDataAlertExecutionsStats: typeof getDataAlertExecutionsStats;
|
|
986
|
+
/**
|
|
987
|
+
* Gets the content of an evaluation from an execution
|
|
988
|
+
*
|
|
989
|
+
* @param taskId The alerting task identifier.
|
|
990
|
+
* @param executionId The execution identifier.
|
|
991
|
+
* @throws GetDataAlertExecutionEvaluationsHttpError
|
|
992
|
+
*/
|
|
993
|
+
getDataAlertExecutionEvaluations: typeof getDataAlertExecutionEvaluations;
|
|
994
|
+
/**
|
|
995
|
+
* Clears the cache for data-alerts api requests.
|
|
996
|
+
*/
|
|
997
|
+
clearCache: typeof clearCache;
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Functions for the data-alerts api
|
|
1001
|
+
*/
|
|
1002
|
+
declare const dataAlertsExport: DataAlertsAPI;
|
|
1003
|
+
|
|
1004
|
+
export { type AlertingActionsTriggerCreateRequest, type AlertingActionsTriggerCreateResponse, type AlertingConditionResponse, type AlertingExecutionError, type AlertingExecutionErrors, type AlertingExecutionListResponse, type AlertingExecutionPersist, type AlertingExecutionResponse, type AlertingExecutionResult, type AlertingRecipientStats, type AlertingRecipientStatsError, type AlertingRecipientStatsErrors, type AlertingRecipientStatsResponse, type AlertingSettings, type AlertingSettingsUpload, type AlertingTaskCreateRequest, type AlertingTaskError, type AlertingTaskExecutionStats, type AlertingTaskGroupRecipientError, type AlertingTaskListResponse, type AlertingTaskPatchRequestCompliant, type AlertingTaskPatchRequestCompliantList, type AlertingTaskRecipientError, type AlertingTaskRecipientPatch, type AlertingTaskRecipientPatchInner, type AlertingTaskResponse, type AlertingTaskTriggerStats, type AlertingTaskValidation, type AlertingTaskValidationResponse, type CreateDataAlertHttpError, type CreateDataAlertHttpResponse, type DataAlertsAPI, type DeleteDataAlertExecutionHttpError, type DeleteDataAlertExecutionHttpResponse, type DeleteDataAlertHttpError, type DeleteDataAlertHttpResponse, type Error, type ErrorMeta, type Errors, type Evaluation, type EvaluationGetResponse, type ExecutionStats, type GetDataAlertConditionHttpError, type GetDataAlertConditionHttpResponse, type GetDataAlertExecutionEvaluationsHttpError, type GetDataAlertExecutionEvaluationsHttpResponse, type GetDataAlertExecutionHttpError, type GetDataAlertExecutionHttpResponse, type GetDataAlertExecutionsHttpError, type GetDataAlertExecutionsHttpResponse, type GetDataAlertExecutionsStatsHttpError, type GetDataAlertExecutionsStatsHttpResponse, type GetDataAlertHttpError, type GetDataAlertHttpResponse, type GetDataAlertRecipientStatsHttpError, type GetDataAlertRecipientStatsHttpResponse, type GetDataAlertsHttpError, type GetDataAlertsHttpResponse, type GetDataAlertsSettingsHttpError, type GetDataAlertsSettingsHttpResponse, type GroupIDRecipient, type Links, type ListLinks, type Page, type PatchDataAlertHttpError, type PatchDataAlertHttpResponse, type Recipients, type RecipientsChange, type ScheduleOptions, type Self, type SetDataAlertsSettingsHttpError, type SetDataAlertsSettingsHttpResponse, type StandardListResponseProps, type TaskGroupRecipientError, type TaskRecipientError, type ThrottlingResource, type TriggerDataAlertsHttpError, type TriggerDataAlertsHttpResponse, type UserIDRecipient, type ValidateDataAlertsHttpError, type ValidateDataAlertsHttpResponse, clearCache, createDataAlert, dataAlertsExport as default, deleteDataAlert, deleteDataAlertExecution, getDataAlert, getDataAlertCondition, getDataAlertExecution, getDataAlertExecutionEvaluations, getDataAlertExecutions, getDataAlertExecutionsStats, getDataAlertRecipientStats, getDataAlerts, getDataAlertsSettings, patchDataAlert, setDataAlertsSettings, triggerDataAlerts, validateDataAlerts };
|