files.com 1.1.584 → 1.1.586
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.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/_VERSION +1 -1
- data/docs/expectation.md +318 -0
- data/docs/expectation_evaluation.md +80 -0
- data/docs/expectation_incident.md +158 -0
- data/docs/key_lifecycle_rule.md +1 -1
- data/lib/files.com/errors.rb +2 -0
- data/lib/files.com/models/expectation.rb +485 -0
- data/lib/files.com/models/expectation_evaluation.rb +138 -0
- data/lib/files.com/models/expectation_incident.rb +199 -0
- data/lib/files.com/models/key_lifecycle_rule.rb +1 -1
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +3 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7381871a12348fc7bc7c94188042ec8de9229d5738feabd920e45609b09f9177
|
|
4
|
+
data.tar.gz: 054a63d35f2e9ef3e577b7d0ee34b1d1cdf897a124c5dbe9cce484381f3ba57a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f6fc64d2b72989574c192e74976bd3432ffc3d21b911d73d4061a0926a7ba2c16fc7ec35adbb8acae831d0d578b2eae134156f1788e11d18459d9f4ef05b216
|
|
7
|
+
data.tar.gz: f5eabdd14a03394c0ea5955e14a7d85a0fb5fd1b63e4ba4ac173ade4e56cbb7e3225e08936f81a734220a54343657b8c292448730809d2425d4e7295e346fff2
|
data/README.md
CHANGED
|
@@ -605,6 +605,8 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
|
|
|
605
605
|
|`DestinationParentConflictError`| `ProcessingFailureError` |
|
|
606
606
|
|`DestinationParentDoesNotExistError`| `ProcessingFailureError` |
|
|
607
607
|
|`ExceededRuntimeLimitError`| `ProcessingFailureError` |
|
|
608
|
+
|`ExpectationAlreadyHasOpenWindowError`| `ProcessingFailureError` |
|
|
609
|
+
|`ExpectationNotManualTriggerError`| `ProcessingFailureError` |
|
|
608
610
|
|`ExpiredPrivateKeyError`| `ProcessingFailureError` |
|
|
609
611
|
|`ExpiredPublicKeyError`| `ProcessingFailureError` |
|
|
610
612
|
|`ExportFailureError`| `ProcessingFailureError` |
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.586
|
data/docs/expectation.md
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
# Expectation
|
|
2
|
+
|
|
3
|
+
## Example Expectation Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"workspace_id": 1,
|
|
9
|
+
"name": "Daily Vendor Feed",
|
|
10
|
+
"description": "Wait for the vendor CSV every morning.",
|
|
11
|
+
"path": "incoming/vendor_a",
|
|
12
|
+
"source": "*.csv",
|
|
13
|
+
"exclude_pattern": "*.tmp",
|
|
14
|
+
"disabled": true,
|
|
15
|
+
"expectations_version": 1,
|
|
16
|
+
"trigger": "manual",
|
|
17
|
+
"interval": "day",
|
|
18
|
+
"recurring_day": 3,
|
|
19
|
+
"schedule_days_of_week": [
|
|
20
|
+
1,
|
|
21
|
+
3,
|
|
22
|
+
5
|
|
23
|
+
],
|
|
24
|
+
"schedule_times_of_day": [
|
|
25
|
+
"06:00"
|
|
26
|
+
],
|
|
27
|
+
"schedule_time_zone": "UTC",
|
|
28
|
+
"holiday_region": "us",
|
|
29
|
+
"lookback_interval": 3600,
|
|
30
|
+
"late_acceptance_interval": 900,
|
|
31
|
+
"inactivity_interval": 300,
|
|
32
|
+
"max_open_interval": 43200,
|
|
33
|
+
"criteria": {
|
|
34
|
+
"count": {
|
|
35
|
+
"exact": 1
|
|
36
|
+
},
|
|
37
|
+
"extensions": [
|
|
38
|
+
"csv"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"last_evaluated_at": "2000-01-01T01:00:00Z",
|
|
42
|
+
"last_success_at": "2000-01-01T01:00:00Z",
|
|
43
|
+
"last_failure_at": "2000-01-01T01:00:00Z",
|
|
44
|
+
"last_result": "success",
|
|
45
|
+
"created_at": "2000-01-01T01:00:00Z",
|
|
46
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
* `id` (int64): Expectation ID
|
|
51
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
52
|
+
* `name` (string): Expectation name.
|
|
53
|
+
* `description` (string): Expectation description.
|
|
54
|
+
* `path` (string): Path scope for the expectation. Supports workspace-relative presentation. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
55
|
+
* `source` (string): Source glob used to select candidate files.
|
|
56
|
+
* `exclude_pattern` (string): Optional source exclusion glob.
|
|
57
|
+
* `disabled` (boolean): If true, the expectation is disabled.
|
|
58
|
+
* `expectations_version` (int64): Criteria schema version for this expectation.
|
|
59
|
+
* `trigger` (string): How this expectation opens windows.
|
|
60
|
+
* `interval` (string): If trigger is `daily`, this specifies how often to run the expectation.
|
|
61
|
+
* `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
62
|
+
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
63
|
+
* `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven expectations.
|
|
64
|
+
* `schedule_time_zone` (string): Time zone used by the expectation schedule.
|
|
65
|
+
* `holiday_region` (string): Optional holiday region used by schedule-driven expectations.
|
|
66
|
+
* `lookback_interval` (int64): How many seconds before the due boundary the window starts.
|
|
67
|
+
* `late_acceptance_interval` (int64): How many seconds a schedule-driven window may remain eligible to close as late.
|
|
68
|
+
* `inactivity_interval` (int64): How many quiet seconds are required before final closure.
|
|
69
|
+
* `max_open_interval` (int64): Hard-stop duration in seconds for unscheduled expectations.
|
|
70
|
+
* `criteria` (object): Structured criteria v1 definition for the expectation.
|
|
71
|
+
* `last_evaluated_at` (date-time): Last time this expectation was evaluated.
|
|
72
|
+
* `last_success_at` (date-time): Last time this expectation closed successfully.
|
|
73
|
+
* `last_failure_at` (date-time): Last time this expectation closed with a failure result.
|
|
74
|
+
* `last_result` (string): Most recent terminal result for this expectation.
|
|
75
|
+
* `created_at` (date-time): Creation time.
|
|
76
|
+
* `updated_at` (date-time): Last update time.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## List Expectations
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
Files::Expectation.list
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
90
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
91
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `name` or `disabled`.
|
|
92
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled` and `workspace_id`. Valid field combinations are `[ workspace_id, disabled ]`.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Show Expectation
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
Files::Expectation.find(id)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Parameters
|
|
104
|
+
|
|
105
|
+
* `id` (int64): Required - Expectation ID.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Create Expectation
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
Files::Expectation.create(
|
|
114
|
+
name: "Daily Vendor Feed",
|
|
115
|
+
description: "Wait for the vendor CSV every morning.",
|
|
116
|
+
path: "incoming/vendor_a",
|
|
117
|
+
source: "*.csv",
|
|
118
|
+
exclude_pattern: "*.tmp",
|
|
119
|
+
disabled: true,
|
|
120
|
+
trigger: "manual",
|
|
121
|
+
interval: "day",
|
|
122
|
+
recurring_day: 3,
|
|
123
|
+
schedule_days_of_week: [1,3,5],
|
|
124
|
+
schedule_times_of_day: ["06:00"],
|
|
125
|
+
schedule_time_zone: "UTC",
|
|
126
|
+
holiday_region: "us",
|
|
127
|
+
lookback_interval: 3600,
|
|
128
|
+
late_acceptance_interval: 900,
|
|
129
|
+
inactivity_interval: 300,
|
|
130
|
+
max_open_interval: 43200,
|
|
131
|
+
criteria: {"count":{"exact":1},"extensions":["csv"]},
|
|
132
|
+
workspace_id: 0
|
|
133
|
+
)
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Parameters
|
|
137
|
+
|
|
138
|
+
* `name` (string): Expectation name.
|
|
139
|
+
* `description` (string): Expectation description.
|
|
140
|
+
* `path` (string): Path scope for the expectation. Supports workspace-relative presentation.
|
|
141
|
+
* `source` (string): Source glob used to select candidate files.
|
|
142
|
+
* `exclude_pattern` (string): Optional source exclusion glob.
|
|
143
|
+
* `disabled` (boolean): If true, the expectation is disabled.
|
|
144
|
+
* `trigger` (string): How this expectation opens windows.
|
|
145
|
+
* `interval` (string): If trigger is `daily`, this specifies how often to run the expectation.
|
|
146
|
+
* `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
147
|
+
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
148
|
+
* `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven expectations.
|
|
149
|
+
* `schedule_time_zone` (string): Time zone used by the expectation schedule.
|
|
150
|
+
* `holiday_region` (string): Optional holiday region used by schedule-driven expectations.
|
|
151
|
+
* `lookback_interval` (int64): How many seconds before the due boundary the window starts.
|
|
152
|
+
* `late_acceptance_interval` (int64): How many seconds a schedule-driven window may remain eligible to close as late.
|
|
153
|
+
* `inactivity_interval` (int64): How many quiet seconds are required before final closure.
|
|
154
|
+
* `max_open_interval` (int64): Hard-stop duration in seconds for unscheduled expectations.
|
|
155
|
+
* `criteria` (object): Structured criteria v1 definition for the expectation.
|
|
156
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Manually open an Expectation window
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
Files::Expectation.trigger_evaluation(id)
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Parameters
|
|
168
|
+
|
|
169
|
+
* `id` (int64): Required - Expectation ID.
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Update Expectation
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
Files::Expectation.update(id,
|
|
178
|
+
name: "Daily Vendor Feed",
|
|
179
|
+
description: "Wait for the vendor CSV every morning.",
|
|
180
|
+
path: "incoming/vendor_a",
|
|
181
|
+
source: "*.csv",
|
|
182
|
+
exclude_pattern: "*.tmp",
|
|
183
|
+
disabled: true,
|
|
184
|
+
trigger: "manual",
|
|
185
|
+
interval: "day",
|
|
186
|
+
recurring_day: 3,
|
|
187
|
+
schedule_days_of_week: [1,3,5],
|
|
188
|
+
schedule_times_of_day: ["06:00"],
|
|
189
|
+
schedule_time_zone: "UTC",
|
|
190
|
+
holiday_region: "us",
|
|
191
|
+
lookback_interval: 3600,
|
|
192
|
+
late_acceptance_interval: 900,
|
|
193
|
+
inactivity_interval: 300,
|
|
194
|
+
max_open_interval: 43200,
|
|
195
|
+
criteria: {"count":{"exact":1},"extensions":["csv"]},
|
|
196
|
+
workspace_id: 0
|
|
197
|
+
)
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
* `id` (int64): Required - Expectation ID.
|
|
203
|
+
* `name` (string): Expectation name.
|
|
204
|
+
* `description` (string): Expectation description.
|
|
205
|
+
* `path` (string): Path scope for the expectation. Supports workspace-relative presentation.
|
|
206
|
+
* `source` (string): Source glob used to select candidate files.
|
|
207
|
+
* `exclude_pattern` (string): Optional source exclusion glob.
|
|
208
|
+
* `disabled` (boolean): If true, the expectation is disabled.
|
|
209
|
+
* `trigger` (string): How this expectation opens windows.
|
|
210
|
+
* `interval` (string): If trigger is `daily`, this specifies how often to run the expectation.
|
|
211
|
+
* `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
212
|
+
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
213
|
+
* `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven expectations.
|
|
214
|
+
* `schedule_time_zone` (string): Time zone used by the expectation schedule.
|
|
215
|
+
* `holiday_region` (string): Optional holiday region used by schedule-driven expectations.
|
|
216
|
+
* `lookback_interval` (int64): How many seconds before the due boundary the window starts.
|
|
217
|
+
* `late_acceptance_interval` (int64): How many seconds a schedule-driven window may remain eligible to close as late.
|
|
218
|
+
* `inactivity_interval` (int64): How many quiet seconds are required before final closure.
|
|
219
|
+
* `max_open_interval` (int64): Hard-stop duration in seconds for unscheduled expectations.
|
|
220
|
+
* `criteria` (object): Structured criteria v1 definition for the expectation.
|
|
221
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Delete Expectation
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
Files::Expectation.delete(id)
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Parameters
|
|
233
|
+
|
|
234
|
+
* `id` (int64): Required - Expectation ID.
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## Manually open an Expectation window
|
|
240
|
+
|
|
241
|
+
```
|
|
242
|
+
expectation = Files::Expectation.find(id)
|
|
243
|
+
|
|
244
|
+
expectation.trigger_evaluation
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Parameters
|
|
248
|
+
|
|
249
|
+
* `id` (int64): Required - Expectation ID.
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## Update Expectation
|
|
255
|
+
|
|
256
|
+
```
|
|
257
|
+
expectation = Files::Expectation.find(id)
|
|
258
|
+
|
|
259
|
+
expectation.update(
|
|
260
|
+
name: "Daily Vendor Feed",
|
|
261
|
+
description: "Wait for the vendor CSV every morning.",
|
|
262
|
+
path: "incoming/vendor_a",
|
|
263
|
+
source: "*.csv",
|
|
264
|
+
exclude_pattern: "*.tmp",
|
|
265
|
+
disabled: true,
|
|
266
|
+
trigger: "manual",
|
|
267
|
+
interval: "day",
|
|
268
|
+
recurring_day: 3,
|
|
269
|
+
schedule_days_of_week: [1,3,5],
|
|
270
|
+
schedule_times_of_day: ["06:00"],
|
|
271
|
+
schedule_time_zone: "UTC",
|
|
272
|
+
holiday_region: "us",
|
|
273
|
+
lookback_interval: 3600,
|
|
274
|
+
late_acceptance_interval: 900,
|
|
275
|
+
inactivity_interval: 300,
|
|
276
|
+
max_open_interval: 43200,
|
|
277
|
+
criteria: {"count":{"exact":1},"extensions":["csv"]},
|
|
278
|
+
workspace_id: 0
|
|
279
|
+
)
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Parameters
|
|
283
|
+
|
|
284
|
+
* `id` (int64): Required - Expectation ID.
|
|
285
|
+
* `name` (string): Expectation name.
|
|
286
|
+
* `description` (string): Expectation description.
|
|
287
|
+
* `path` (string): Path scope for the expectation. Supports workspace-relative presentation.
|
|
288
|
+
* `source` (string): Source glob used to select candidate files.
|
|
289
|
+
* `exclude_pattern` (string): Optional source exclusion glob.
|
|
290
|
+
* `disabled` (boolean): If true, the expectation is disabled.
|
|
291
|
+
* `trigger` (string): How this expectation opens windows.
|
|
292
|
+
* `interval` (string): If trigger is `daily`, this specifies how often to run the expectation.
|
|
293
|
+
* `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
294
|
+
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
295
|
+
* `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven expectations.
|
|
296
|
+
* `schedule_time_zone` (string): Time zone used by the expectation schedule.
|
|
297
|
+
* `holiday_region` (string): Optional holiday region used by schedule-driven expectations.
|
|
298
|
+
* `lookback_interval` (int64): How many seconds before the due boundary the window starts.
|
|
299
|
+
* `late_acceptance_interval` (int64): How many seconds a schedule-driven window may remain eligible to close as late.
|
|
300
|
+
* `inactivity_interval` (int64): How many quiet seconds are required before final closure.
|
|
301
|
+
* `max_open_interval` (int64): Hard-stop duration in seconds for unscheduled expectations.
|
|
302
|
+
* `criteria` (object): Structured criteria v1 definition for the expectation.
|
|
303
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## Delete Expectation
|
|
309
|
+
|
|
310
|
+
```
|
|
311
|
+
expectation = Files::Expectation.find(id)
|
|
312
|
+
|
|
313
|
+
expectation.delete
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Parameters
|
|
317
|
+
|
|
318
|
+
* `id` (int64): Required - Expectation ID.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# ExpectationEvaluation
|
|
2
|
+
|
|
3
|
+
## Example ExpectationEvaluation Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"workspace_id": 1,
|
|
9
|
+
"expectation_id": 1,
|
|
10
|
+
"status": "open",
|
|
11
|
+
"opened_via": "manual",
|
|
12
|
+
"opened_at": "2000-01-01T01:00:00Z",
|
|
13
|
+
"window_start_at": "2000-01-01T01:00:00Z",
|
|
14
|
+
"window_end_at": "2000-01-01T01:00:00Z",
|
|
15
|
+
"deadline_at": "2000-01-01T01:00:00Z",
|
|
16
|
+
"late_acceptance_cutoff_at": "2000-01-01T01:00:00Z",
|
|
17
|
+
"hard_close_at": "2000-01-01T01:00:00Z",
|
|
18
|
+
"closed_at": "2000-01-01T01:00:00Z",
|
|
19
|
+
"matched_files": [
|
|
20
|
+
|
|
21
|
+
],
|
|
22
|
+
"missing_files": [
|
|
23
|
+
|
|
24
|
+
],
|
|
25
|
+
"criteria_errors": [
|
|
26
|
+
|
|
27
|
+
],
|
|
28
|
+
"summary": null,
|
|
29
|
+
"created_at": "2000-01-01T01:00:00Z",
|
|
30
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
* `id` (int64): ExpectationEvaluation ID
|
|
35
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
36
|
+
* `expectation_id` (int64): Expectation ID.
|
|
37
|
+
* `status` (string): Evaluation status.
|
|
38
|
+
* `opened_via` (string): How the evaluation window was opened.
|
|
39
|
+
* `opened_at` (date-time): When the evaluation row was opened.
|
|
40
|
+
* `window_start_at` (date-time): Logical start of the candidate window.
|
|
41
|
+
* `window_end_at` (date-time): Actual candidate cutoff boundary for the window.
|
|
42
|
+
* `deadline_at` (date-time): Logical due boundary for schedule-driven windows.
|
|
43
|
+
* `late_acceptance_cutoff_at` (date-time): Logical cutoff for late acceptance, when present.
|
|
44
|
+
* `hard_close_at` (date-time): Hard stop after which the window may not remain open.
|
|
45
|
+
* `closed_at` (date-time): When the evaluation row was finalized.
|
|
46
|
+
* `matched_files` (array(object)): Captured evidence for files that matched the window.
|
|
47
|
+
* `missing_files` (array(object)): Captured evidence for required files that were missing.
|
|
48
|
+
* `criteria_errors` (array(object)): Captured criteria failures for the window.
|
|
49
|
+
* `summary` (object): Compact evaluator summary payload.
|
|
50
|
+
* `created_at` (date-time): Creation time.
|
|
51
|
+
* `updated_at` (date-time): Last update time.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## List Expectation Evaluations
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
Files::ExpectationEvaluation.list
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
65
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
66
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `created_at` or `expectation_id`.
|
|
67
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `expectation_id` and `workspace_id`. Valid field combinations are `[ workspace_id, expectation_id ]`.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Show Expectation Evaluation
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
Files::ExpectationEvaluation.find(id)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
|
|
80
|
+
* `id` (int64): Required - Expectation Evaluation ID.
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# ExpectationIncident
|
|
2
|
+
|
|
3
|
+
## Example ExpectationIncident Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"workspace_id": 1,
|
|
9
|
+
"expectation_id": 1,
|
|
10
|
+
"status": "open",
|
|
11
|
+
"opened_at": "2000-01-01T01:00:00Z",
|
|
12
|
+
"last_failed_at": "2000-01-01T01:00:00Z",
|
|
13
|
+
"acknowledged_at": "2000-01-01T01:00:00Z",
|
|
14
|
+
"snoozed_until": "2000-01-01T01:00:00Z",
|
|
15
|
+
"resolved_at": "2000-01-01T01:00:00Z",
|
|
16
|
+
"opened_by_evaluation_id": 1,
|
|
17
|
+
"last_evaluation_id": 2,
|
|
18
|
+
"resolved_by_evaluation_id": 3,
|
|
19
|
+
"summary": null,
|
|
20
|
+
"created_at": "2000-01-01T01:00:00Z",
|
|
21
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
* `id` (int64): Expectation Incident ID
|
|
26
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
27
|
+
* `expectation_id` (int64): Expectation ID.
|
|
28
|
+
* `status` (string): Incident status.
|
|
29
|
+
* `opened_at` (date-time): When the incident was opened.
|
|
30
|
+
* `last_failed_at` (date-time): When the most recent failing evaluation contributing to the incident occurred.
|
|
31
|
+
* `acknowledged_at` (date-time): When the incident was acknowledged.
|
|
32
|
+
* `snoozed_until` (date-time): When the current snooze expires.
|
|
33
|
+
* `resolved_at` (date-time): When the incident was resolved.
|
|
34
|
+
* `opened_by_evaluation_id` (int64): Evaluation that first opened the incident.
|
|
35
|
+
* `last_evaluation_id` (int64): Most recent evaluation linked to the incident.
|
|
36
|
+
* `resolved_by_evaluation_id` (int64): Evaluation that resolved the incident.
|
|
37
|
+
* `summary` (object): Compact incident summary payload.
|
|
38
|
+
* `created_at` (date-time): Creation time.
|
|
39
|
+
* `updated_at` (date-time): Last update time.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## List Expectation Incidents
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Files::ExpectationIncident.list
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
53
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
54
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `created_at` or `expectation_id`.
|
|
55
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `expectation_id` and `workspace_id`. Valid field combinations are `[ workspace_id, expectation_id ]`.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Show Expectation Incident
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
Files::ExpectationIncident.find(id)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
* `id` (int64): Required - Expectation Incident ID.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Resolve an expectation incident
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Files::ExpectationIncident.resolve(id)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Parameters
|
|
80
|
+
|
|
81
|
+
* `id` (int64): Required - Expectation Incident ID.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Snooze an expectation incident until a specified time
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
Files::ExpectationIncident.snooze(id,
|
|
90
|
+
snoozed_until: "snoozed_until"
|
|
91
|
+
)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
* `id` (int64): Required - Expectation Incident ID.
|
|
97
|
+
* `snoozed_until` (string): Required - Time until which the incident should remain snoozed.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Acknowledge an expectation incident
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
Files::ExpectationIncident.acknowledge(id)
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Parameters
|
|
109
|
+
|
|
110
|
+
* `id` (int64): Required - Expectation Incident ID.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Resolve an expectation incident
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
expectation_incident = Files::ExpectationIncident.find(id)
|
|
119
|
+
|
|
120
|
+
expectation_incident.resolve
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Parameters
|
|
124
|
+
|
|
125
|
+
* `id` (int64): Required - Expectation Incident ID.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Snooze an expectation incident until a specified time
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
expectation_incident = Files::ExpectationIncident.find(id)
|
|
134
|
+
|
|
135
|
+
expectation_incident.snooze(
|
|
136
|
+
snoozed_until: "snoozed_until"
|
|
137
|
+
)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
* `id` (int64): Required - Expectation Incident ID.
|
|
143
|
+
* `snoozed_until` (string): Required - Time until which the incident should remain snoozed.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Acknowledge an expectation incident
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
expectation_incident = Files::ExpectationIncident.find(id)
|
|
152
|
+
|
|
153
|
+
expectation_incident.acknowledge
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Parameters
|
|
157
|
+
|
|
158
|
+
* `id` (int64): Required - Expectation Incident ID.
|
data/docs/key_lifecycle_rule.md
CHANGED
|
@@ -34,7 +34,7 @@ Files::KeyLifecycleRule.list
|
|
|
34
34
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
35
35
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
36
36
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `key_type`.
|
|
37
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id`.
|
|
37
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `key_type` and `workspace_id`. Valid field combinations are `[ workspace_id, key_type ]`.
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
---
|
data/lib/files.com/errors.rb
CHANGED
|
@@ -187,6 +187,8 @@ module Files
|
|
|
187
187
|
class DestinationParentConflictError < ProcessingFailureError; end
|
|
188
188
|
class DestinationParentDoesNotExistError < ProcessingFailureError; end
|
|
189
189
|
class ExceededRuntimeLimitError < ProcessingFailureError; end
|
|
190
|
+
class ExpectationAlreadyHasOpenWindowError < ProcessingFailureError; end
|
|
191
|
+
class ExpectationNotManualTriggerError < ProcessingFailureError; end
|
|
190
192
|
class ExpiredPrivateKeyError < ProcessingFailureError; end
|
|
191
193
|
class ExpiredPublicKeyError < ProcessingFailureError; end
|
|
192
194
|
class ExportFailureError < ProcessingFailureError; end
|