-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquery-0888cedbf0d7f3e8c83aede3466fccb00af870688c27550b194ea1d6a47e624e.json
More file actions
108 lines (108 loc) · 3.13 KB
/
query-0888cedbf0d7f3e8c83aede3466fccb00af870688c27550b194ea1d6a47e624e.json
File metadata and controls
108 lines (108 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"db_name": "PostgreSQL",
"query": "SELECT DISTINCT ON (DATE(tested_at))\n DATE(tested_at) AS \"date!\",\n retrievability_percent::float8 AS \"retrievability_percent!\",\n sector_utilization_percent::float8 AS \"sector_utilization_percent\",\n is_consistent,\n is_reliable,\n working_url,\n result_code AS \"result_code: ResultCode\",\n error_code AS \"error_code: ErrorCode\",\n tested_at,\n url_metadata\n FROM\n url_results\n WHERE\n provider_id = $1\n AND result_type = 'Provider'\n AND tested_at >= $2::date\n AND tested_at < ($3::date + INTERVAL '1 day')\n ORDER BY\n DATE(tested_at),\n tested_at DESC\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "date!",
"type_info": "Date"
},
{
"ordinal": 1,
"name": "retrievability_percent!",
"type_info": "Float8"
},
{
"ordinal": 2,
"name": "sector_utilization_percent",
"type_info": "Float8"
},
{
"ordinal": 3,
"name": "is_consistent",
"type_info": "Bool"
},
{
"ordinal": 4,
"name": "is_reliable",
"type_info": "Bool"
},
{
"ordinal": 5,
"name": "working_url",
"type_info": "Text"
},
{
"ordinal": 6,
"name": "result_code: ResultCode",
"type_info": {
"Custom": {
"name": "result_code",
"kind": {
"Enum": [
"NoCidContactData",
"MissingAddrFromCidContact",
"MissingHttpAddrFromCidContact",
"FailedToGetWorkingUrl",
"NoDealsFound",
"TimedOut",
"Success",
"JobCreated",
"Error"
]
}
}
}
},
{
"ordinal": 7,
"name": "error_code: ErrorCode",
"type_info": {
"Custom": {
"name": "error_code",
"kind": {
"Enum": [
"NoProviderOrClient",
"NoProvidersFound",
"FailedToRetrieveCidContactData",
"FailedToGetPeerId",
"FailedToGetDeals"
]
}
}
}
},
{
"ordinal": 8,
"name": "tested_at",
"type_info": "Timestamptz"
},
{
"ordinal": 9,
"name": "url_metadata",
"type_info": "Jsonb"
}
],
"parameters": {
"Left": [
"Text",
"Date",
"Date"
]
},
"nullable": [
null,
null,
null,
true,
true,
true,
false,
true,
false,
true
]
},
"hash": "0888cedbf0d7f3e8c83aede3466fccb00af870688c27550b194ea1d6a47e624e"
}