@@ -3,6 +3,41 @@ export const DEPRECATED_MANAGED_BY_OTA_MARKER = '[managed by OTA]';
3
3
export const MANAGED_BY_OTA_MARKER = '- Auto-managed by OTA engine' ;
4
4
5
5
export const LABELS = {
6
+ DNS_LOOKUP_FAILURE : {
7
+ name : 'domain lookup failed' ,
8
+ color : 'FFFFFF' ,
9
+ description : 'Fetching failed because the domain temporarily failed to resolve on DNS' ,
10
+ } ,
11
+ DNS_RESOLUTION_FAILURE : {
12
+ name : 'domain resolution failed' ,
13
+ color : 'FFFFFF' ,
14
+ description : 'Fetching failed because the domain fails to resolve on DNS' ,
15
+ } ,
16
+ DOCUMENT_LOAD_TIMEOUT : {
17
+ name : 'document load timed out' ,
18
+ color : 'FFFFFF' ,
19
+ description : 'Fetching failed with a timeout error' ,
20
+ } ,
21
+ DOCUMENT_NOT_FOUND : {
22
+ name : 'document not found' ,
23
+ color : 'FFFFFF' ,
24
+ description : 'Fetch location is outdated' ,
25
+ } ,
26
+ DOCUMENT_STRUCTURE_CHANGE : {
27
+ name : 'document structure changed' ,
28
+ color : 'FFFFFF' ,
29
+ description : 'Extraction selectors are outdated' ,
30
+ } ,
31
+ EMPTY_CONTENT : {
32
+ name : 'document was empty' ,
33
+ color : 'FFFFFF' ,
34
+ description : 'Fetching failed because the server returns an empty content' ,
35
+ } ,
36
+ EMPTY_RESPONSE : {
37
+ name : 'received empty response' ,
38
+ color : 'FFFFFF' ,
39
+ description : 'Fetching failed because server returned an empty response body' ,
40
+ } ,
6
41
HTTP_403 : {
7
42
name : 'document access forbidden' ,
8
43
color : 'FFFFFF' ,
@@ -28,26 +63,16 @@ export const LABELS = {
28
63
color : 'FFFFFF' ,
29
64
description : 'Fetching failed with a 503 (service unavailable) HTTP code' ,
30
65
} ,
66
+ INVALID_SELECTOR : {
67
+ name : 'invalid selector' ,
68
+ color : 'FFFFFF' ,
69
+ description : 'Some selectors cannot be understood by the engine' ,
70
+ } ,
31
71
SSL_EXPIRED : {
32
72
name : 'certificate expired' ,
33
73
color : 'FFFFFF' ,
34
74
description : 'Fetching failed because the domain SSL certificate has expired' ,
35
75
} ,
36
- DNS_LOOKUP_FAILURE : {
37
- name : 'domain lookup failed' ,
38
- color : 'FFFFFF' ,
39
- description : 'Fetching failed because the domain temporarily failed to resolve on DNS' ,
40
- } ,
41
- DNS_RESOLUTION_FAILURE : {
42
- name : 'domain resolution failed' ,
43
- color : 'FFFFFF' ,
44
- description : 'Fetching failed because the domain fails to resolve on DNS' ,
45
- } ,
46
- EMPTY_RESPONSE : {
47
- name : 'received empty response' ,
48
- color : 'FFFFFF' ,
49
- description : 'Fetching failed because server returned an empty response body' ,
50
- } ,
51
76
SSL_INVALID : {
52
77
name : 'certificate was invalid' ,
53
78
color : 'FFFFFF' ,
@@ -58,36 +83,11 @@ export const LABELS = {
58
83
color : 'FFFFFF' ,
59
84
description : 'Fetching failed because of too many redirects' ,
60
85
} ,
61
- DOCUMENT_LOAD_TIMEOUT : {
62
- name : 'document load timed out' ,
63
- color : 'FFFFFF' ,
64
- description : 'Fetching failed with a timeout error' ,
65
- } ,
66
- EMPTY_CONTENT : {
67
- name : 'document was empty' ,
68
- color : 'FFFFFF' ,
69
- description : 'Fetching failed because the server returns an empty content' ,
70
- } ,
71
86
UNKNOWN_FAILURE : {
72
87
name : 'failed for unknown reason' ,
73
88
color : 'FFFFFF' ,
74
89
description : 'Fetching failed for an undetermined reason that needs investigation' ,
75
90
} ,
76
- DOCUMENT_STRUCTURE_CHANGE : {
77
- name : 'document structure changed' ,
78
- color : 'FFFFFF' ,
79
- description : 'Extraction selectors are outdated' ,
80
- } ,
81
- DOCUMENT_NOT_FOUND : {
82
- name : 'document not found' ,
83
- color : 'FFFFFF' ,
84
- description : 'Fetch location is outdated' ,
85
- } ,
86
- INVALID_SELECTOR : {
87
- name : 'invalid selector' ,
88
- color : 'FFFFFF' ,
89
- description : 'Some selectors cannot be understood by the engine' ,
90
- } ,
91
91
NEEDS_INTERVENTION : {
92
92
name : '⚠ needs intervention' ,
93
93
color : 'FDD42A' ,
0 commit comments