This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
fred_series_to_bigquery.json
executable file
·71 lines (71 loc) · 2.6 KB
/
fred_series_to_bigquery.json
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
{
"script":{
"released":"2020-08-04",
"license":"Licensed under the Apache License, Version 2.0",
"copyright":"Copyright 2020 Google LLC",
"icon":"analytics",
"title":"Federal Reserve Series Data",
"description":"Download federal reserve series.",
"test":"https://github.com/google/starthinker/blob/master/tests/fred.json",
"to":["bigquery"],
"from":["fred"],
"instructions":[
"Specify the values for a [Fred observations API call](https://fred.stlouisfed.org/docs/api/fred/series_observations.html).",
"A table will appear in the dataset."
],
"authors":["kenjora@google.com"]
},
"tasks":[
{ "fred":{
"auth":{"field":{ "name":"auth", "kind":"authentication", "order":0, "default":"service", "description":"Credentials used for writing data." }},
"api_key":{"field":{
"name":"fred_api_key",
"kind":"string",
"order":1,
"default":"",
"description":"32 character alpha-numeric lowercase string."
}},
"frequency":{"field":{
"name":"fred_frequency",
"kind":"choice",
"order":4,
"default":"",
"description":"An optional parameter that indicates a lower frequency to aggregate values to." ,
"choices":["", "d", "w", "bw", "m", "q", "sa", "a", "wef", "weth", "wew", "wetu", "wem", "wesu", "wesa", "bwew", "bwem"]
}},
"series":[
{
"series_id":{"field":{
"name":"fred_series_id",
"kind":"string",
"order":2,
"default":"",
"description":"Series ID to pull data from."
}},
"units":{"field":{
"name":"fred_units",
"kind":"choice",
"order":3,
"default":"lin",
"description":"A key that indicates a data value transformation." ,
"choices":["lin", "chg", "ch1", "pch", "pc1", "pca", "cch", "cca", "log"]
}},
"aggregation_method":{"field":{
"name":"fred_aggregation_method",
"kind":"choice",
"order":5,
"default":"avg",
"description":"A key that indicates the aggregation method used for frequency aggregation." ,
"choices":["avg", "sum", "eop"]
}}
}
],
"out":{
"bigquery":{
"project":{"field":{ "name":"project", "kind":"string", "order":10, "default":"", "description":"Existing BigQuery project." }},
"dataset":{"field":{ "name":"dataset", "kind":"string", "order":11, "default":"", "description":"Existing BigQuery dataset." }}
}
}
}}
]
}