Skip to content

Commit 8901de2

Browse files
authored
[ETL-690] Add additional expectations for fitbit data types (#153)
* Add additional expectations for fitbit data types * upgrade to v2 of ecr login action * Revert "upgrade to v2 of ecr login action" This reverts commit bcfef0e. * Fix remove artifacts command in cleanup workflow
1 parent 4317d9d commit 8901de2

File tree

1 file changed

+233
-2
lines changed

1 file changed

+233
-2
lines changed

src/glue/resources/data_values_expectations.json

Lines changed: 233 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
{
2+
"fitbitactivitylogs": {
3+
"expectations": [
4+
{
5+
"expectation_type": "expect_column_values_to_be_between",
6+
"kwargs": {
7+
"column": "AverageHeartRate",
8+
"min_value": 25,
9+
"max_value": 300
10+
}
11+
}
12+
],
13+
"expectation_suite_name": "fitbitactivitylogs_expectations"
14+
},
215
"fitbitdailydata": {
3-
"expectation_suite_name": "fitbitdailydata_expectations",
416
"expectations": [
517
{
618
"expectation_type": "expect_column_values_to_be_between",
@@ -25,8 +37,227 @@
2537
"min_value": 4,
2638
"max_value": 40
2739
}
40+
},
41+
{
42+
"expectation_type": "expect_column_values_to_be_between",
43+
"kwargs": {
44+
"column": "MinutesFairlyActive",
45+
"min_value": 0,
46+
"max_value": 1440
47+
}
48+
},
49+
{
50+
"expectation_type": "expect_column_values_to_be_between",
51+
"kwargs": {
52+
"column": "MinutesLightlyActive",
53+
"min_value": 0,
54+
"max_value": 1440
55+
}
56+
},
57+
{
58+
"expectation_type": "expect_column_values_to_be_between",
59+
"kwargs": {
60+
"column": "MinutesSedentary",
61+
"min_value": 0,
62+
"max_value": 1440
63+
}
64+
},
65+
{
66+
"expectation_type": "expect_column_values_to_be_between",
67+
"kwargs": {
68+
"column": "MinutesVeryActive",
69+
"min_value": 0,
70+
"max_value": 1440
71+
}
72+
},
73+
{
74+
"expectation_type": "expect_column_values_to_be_between",
75+
"kwargs": {
76+
"column": "RestingHeartRate",
77+
"min_value": 25,
78+
"max_value": 300
79+
}
80+
},
81+
{
82+
"expectation_type": "expect_column_values_to_be_between",
83+
"kwargs": {
84+
"column": "Hrv_DailyRmssd",
85+
"min_value": 3,
86+
"max_value": 210
87+
}
88+
},
89+
{
90+
"expectation_type": "expect_column_values_to_be_between",
91+
"kwargs": {
92+
"column": "SpO2_Avg",
93+
"min_value": 50,
94+
"max_value": 100
95+
}
96+
},
97+
{
98+
"expectation_type": "expect_column_values_to_be_between",
99+
"kwargs": {
100+
"column": "SpO2_Min",
101+
"min_value": 50,
102+
"max_value": 100
103+
}
104+
},
105+
{
106+
"expectation_type": "expect_column_values_to_be_between",
107+
"kwargs": {
108+
"column": "SpO2_Max",
109+
"min_value": 50,
110+
"max_value": 100
111+
}
112+
},
113+
{
114+
"expectation_type": "expect_column_values_to_be_between",
115+
"kwargs": {
116+
"column": "TempSkin",
117+
"min_value": -15,
118+
"max_value": 15
119+
}
28120
}
29-
]
121+
],
122+
"expectation_suite_name": "fitbitdailydata_expectations"
123+
},
124+
"fitbitintradaycombined": {
125+
"expectations": [
126+
{
127+
"expectation_type": "expect_column_values_to_be_between",
128+
"kwargs": {
129+
"column": "DeepSleepSummaryBreathRate",
130+
"min_value": 4,
131+
"max_value": 40
132+
}
133+
},
134+
{
135+
"expectation_type": "expect_column_values_to_be_between",
136+
"kwargs": {
137+
"column": "RemSleepSummaryBreathRate",
138+
"min_value": 4,
139+
"max_value": 40
140+
}
141+
},
142+
{
143+
"expectation_type": "expect_column_values_to_be_between",
144+
"kwargs": {
145+
"column": "FullSleepSummaryBreathRate",
146+
"min_value": 4,
147+
"max_value": 40
148+
}
149+
},
150+
{
151+
"expectation_type": "expect_column_values_to_be_between",
152+
"kwargs": {
153+
"column": "LightSleepSummaryBreathRate",
154+
"min_value": 4,
155+
"max_value": 40
156+
}
157+
}
158+
],
159+
"expectation_suite_name": "fitbitintradaycombined_expectations"
160+
},
161+
"fitbitsleeplogs": {
162+
"expectations": [
163+
{
164+
"expectation_type": "expect_column_values_to_be_between",
165+
"kwargs": {
166+
"column": "MinutesAfterWakeup",
167+
"min_value": 0,
168+
"max_value": 1440
169+
}
170+
},
171+
{
172+
"expectation_type": "expect_column_values_to_be_between",
173+
"kwargs": {
174+
"column": "MinutesAsleep",
175+
"min_value": 0,
176+
"max_value": 1440
177+
}
178+
},
179+
{
180+
"expectation_type": "expect_column_values_to_be_between",
181+
"kwargs": {
182+
"column": "MinutesAwake",
183+
"min_value": 0,
184+
"max_value": 1440
185+
}
186+
},
187+
{
188+
"expectation_type": "expect_column_values_to_be_between",
189+
"kwargs": {
190+
"column": "MinutesToFallAsleep",
191+
"min_value": 0,
192+
"max_value": 1440
193+
}
194+
},
195+
{
196+
"expectation_type": "expect_column_values_to_be_between",
197+
"kwargs": {
198+
"column": "TimeInBed",
199+
"min_value": 0,
200+
"max_value": 1440
201+
}
202+
},
203+
{
204+
"expectation_type": "expect_column_values_to_be_between",
205+
"kwargs": {
206+
"column": "SleepLevelAwake",
207+
"min_value": 0,
208+
"max_value": 1440
209+
}
210+
},
211+
{
212+
"expectation_type": "expect_column_values_to_be_between",
213+
"kwargs": {
214+
"column": "SleepLevelAsleep",
215+
"min_value": 0,
216+
"max_value": 1440
217+
}
218+
},
219+
{
220+
"expectation_type": "expect_column_values_to_be_between",
221+
"kwargs": {
222+
"column": "SleepLevelDeep",
223+
"min_value": 0,
224+
"max_value": 1440
225+
}
226+
},
227+
{
228+
"expectation_type": "expect_column_values_to_be_between",
229+
"kwargs": {
230+
"column": "SleepLevelLight",
231+
"min_value": 0,
232+
"max_value": 1440
233+
}
234+
},
235+
{
236+
"expectation_type": "expect_column_values_to_be_between",
237+
"kwargs": {
238+
"column": "SleepLevelRem",
239+
"min_value": 0,
240+
"max_value": 1440
241+
}
242+
},
243+
{
244+
"expectation_type": "expect_column_values_to_be_between",
245+
"kwargs": {
246+
"column": "SleepLevelRestless",
247+
"min_value": 0,
248+
"max_value": 1440
249+
}
250+
},
251+
{
252+
"expectation_type": "expect_column_values_to_be_between",
253+
"kwargs": {
254+
"column": "SleepLevelWake",
255+
"min_value": 0,
256+
"max_value": 1440
257+
}
258+
}
259+
],
260+
"expectation_suite_name": "fitbitsleeplogs_expectations"
30261
},
31262
"healthkitv2workouts": {
32263
"expectation_suite_name": "healthkitv2workouts_expectations",

0 commit comments

Comments
 (0)