{"id":333105,"date":"2022-05-13T21:00:19","date_gmt":"2022-05-13T21:00:19","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=333105"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=333105","title":{"rendered":"<span>\u041a\u0442\u043e \u0442\u0430\u043a\u043e\u0439 Analytics Engineer \u2013 E2E-\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c bash + dbt + Looker<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4bd\/1a1\/52b\/4bd1a152b3fa5e1cba81a09100239a0d.png\" width=\"780\" height=\"439\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4bd\/1a1\/52b\/4bd1a152b3fa5e1cba81a09100239a0d.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442! \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u0440\u0442\u0435\u043c\u0438\u0439 \u041a\u043e\u0437\u044b\u0440\u044c, \u0438 \u044f Analytics Engineer \u0432 Wheely.<\/p>\n<p>\u041c\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0434\u043e\u043b\u0433\u043e \u0438 \u043d\u0443\u0434\u043d\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0442\u044c, \u043a\u0442\u043e \u0442\u0430\u043a\u043e\u0439 Analytics (<em>Data \/ Backend<\/em>) Engineer, \u043a\u0430\u043a\u0438\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u043b\u0430\u0434\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 <em>buzzwords<\/em>  \u0432 \u0442\u0440\u0435\u043d\u0434\u0435 \u0438 \u0446\u0435\u043d\u044f\u0442\u0441\u044f \u0432 CV, \u043e\u0434\u043d\u0430\u043a\u043e, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435  \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0435\u0433\u043e \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439  \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0427\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 <strong>End-to-End<\/strong> \u0438 \u0432 \u0447\u0435\u043c \u0435\u0433\u043e \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c?<\/p>\n<\/li>\n<li>\n<p>\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f <strong>Extract &amp; Load<\/strong> \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e API MaestroQA<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong> \u0432\u0438\u0442\u0440\u0438\u043d \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e dbt<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/strong> \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Looker<\/p>\n<\/li>\n<\/ul>\n<h3>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 End-to-End &#8212; \u043e\u0442 \u0438\u0434\u0435\u0438 \u0434\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p>\u0412 \u0434\u0432\u0443\u0445 \u0441\u043b\u043e\u0432\u0430\u0445, <strong>End-to-End<\/strong> \u2013 \u044d\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0430\u044f \u0432\u0441\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u043f\u0430\u0437\u043b\u0430.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/pw\/ry\/zf\/pwryzfj8f9hq9mpl3stkect4roq.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/pw\/ry\/zf\/pwryzfj8f9hq9mpl3stkect4roq.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044e &#8212; \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/www.maestroqa.com\/\">MaestroQA<\/a>, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438 \u043e\u0446\u0435\u043d\u043a\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 (Customer Support).<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/x5\/0l\/oq\/x50loqnsa7uhpyukjfg1yrl1jmc.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/x5\/0l\/oq\/x50loqnsa7uhpyukjfg1yrl1jmc.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u0438\u0434\u0435\u0439 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a, \u043a\u0435\u043c \u0431\u044b \u043e\u043d  \u043d\u0438 \u0431\u044b\u043b (Manager, Product Owner, CEO), \u043f\u043e\u0447\u0442\u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442 \u0437\u0430\u0434\u0430\u0447\u0443 \u0432  \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u043b\u0438\u0442\u044c 100500 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442 \u0432 \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c multithreading \u0432 \u043a\u043e\u0434<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0443\u043f\u0435\u0440\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c 15 dbt-\u043c\u043e\u0434\u0435\u043b\u0435\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430 \u043b\u044e\u0431\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0441\u0442\u043e\u0438\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0414\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u043e:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c Customer Support (\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u043e\u0446\u0435\u043d\u043a\u0438, \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b)<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043b\u0430\u0434\u043e\u043d\u0438 (\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043e KPI \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 (\u0430\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c, \u0433\u043e\u0440\u043e\u0434\u0430\u043c, \u0441\u0442\u0440\u0430\u043d\u0430\u043c \u0438 \u0442.\u0434.)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 (\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0441\u043b\u0430\u0431\u044b\u0445\/\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0445 \u043c\u0435\u0441\u0442 \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 feedback)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0443\u0447\u0438\u043c\u0441\u044f \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0435\u0439\u0441\u044b (\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0435\u043c, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0440\u0435\u043d\u0438\u043d\u0433\u043e\u0432 \u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u0432)<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u044d\u0442\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0444\u043e\u043a\u0443\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442 Analytics Engineer \u043e\u0442,  \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 Data Engineer, Backend Engineer. \u041e\u0431\u043b\u0430\u0434\u0430\u044f \u0432\u0441\u0435\u043c \u0441\u043f\u0435\u043a\u0442\u0440\u043e\u043c \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u043a, Analytics Engineer \u0441\u043e\u0437\u0434\u0430\u0435\u0442  \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u0438 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u0413\u043e\u0432\u043e\u0440\u0438\u0442 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0441  \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0438 \u043c\u044b\u0441\u043b\u0438\u0442 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2013 Extract &amp; Load Data<\/h3>\n<p>\u041e\u043a\u0435\u0439, \u0442\u0435\u043f\u0435\u0440\u044c \u0431\u043b\u0438\u0436\u0435 \u043a \u0434\u0435\u043b\u0443. \u042f \u0432\u044b\u0431\u0440\u0430\u043b MaestroQA \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e &#8212; \u044d\u0442\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0432 SaaS-\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445. <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ix\/wk\/ag\/ixwkagcx-f8e9n3upqwofdhv9to.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/ix\/wk\/ag\/ixwkagcx-f8e9n3upqwofdhv9to.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0435 \u043d\u0430 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0412\u044b\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u043a\u0443\u0441\u0430, \u043d\u043e  \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 shell-\u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Airflow.<\/p>\n<h4>1. \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a API \u0441\u0435\u0440\u0432\u0438\u0441\u0430:<\/h4>\n<ul>\n<li>\n<p>\u041d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0440\u044f\u0434 \u043c\u0435\u0442\u043e\u0434\u043e\u0432: <code>request-raw-export<\/code>, <code>request-groups-export<\/code>, <code>request-audit-log-export<\/code>,  <code>get-export-data<\/code><\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u0442\u043e\u0434\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432: <code>apiToken<\/code>, <code>startDate<\/code>, <code>endDate<\/code>, <code>exportId<\/code><\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<p>\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 API \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0442\u043e\u0439 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439  \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043d\u0435 \u0441\u0430\u043c\u0443 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \u0430 \u043d\u043e\u043c\u0435\u0440 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u041f\u0440\u0435\u0434\u044a\u044f\u0432\u0438\u0432 \u044d\u0442\u043e\u0442  \u043d\u043e\u043c\u0435\u0440 \u0432 \u0434\u0440\u0443\u0433\u043e\u0435 \u043e\u043a\u043d\u043e (\u043c\u0435\u0442\u043e\u0434 <code>get-export-data<\/code>), \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u0430.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Async API \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0443, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c <code>exportId<\/code>, \u043d\u043e \u0442\u0430\u043a \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0434\u0430\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435.<\/p>\n<h4>2. \u041f\u043e\u043b\u0443\u0447\u0438\u043c API Token.<\/h4>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/vy\/_p\/tk\/vy_ptkbld7scu1mzdi2mrmwfvg8.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/vy\/_p\/tk\/vy_ptkbld7scu1mzdi2mrmwfvg8.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u042d\u0442\u043e \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0432\u0430\u0448\u0438\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c.<\/p>\n<h4>3. \u0413\u043e\u0442\u043e\u0432\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438.<\/h4>\n<p>\u0428\u0430\u0433 1. \u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u044b\u0440\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (<code>total_scores.sh<\/code>):<\/p>\n<ul>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a API (<code>JSON_DATA<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <code>exportId<\/code> (\u0442\u0430\u043b\u043e\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>exportId<\/code> \u0438 \u0435\u0441\u043b\u0438 \u041e\u041a, \u0442\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 (<code>retrieve.sh<\/code>)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\"># 1. Prepare request JSON_DATA=$(jq -n \\               --arg maestroqa_token \"$MAESTROQA_TOKEN\" \\               --arg start_date \"$START_DATE\" \\               --arg end_date \"$END_DATE\" \\               --arg single_file_export \"$SINGLE_FILE_EXPORT\" \\               --arg name \"$FILE_NAME\" \\               '{apiToken: $maestroqa_token, startDate: $start_date, endDate: $end_date, singleFileExport: $single_file_export, name: $name }' )  # 2. Get exportId EXPORT_ID=$(curl -s -X POST $ENDPOINT \\     -H 'Content-Type: application\/json' \\     -d \"${JSON_DATA}\" \\     | jq -r '.exportId')  # 3. Retrieve data by exportId if [ -z \"$EXPORT_ID\" ] then       echo \"EXPORT_ID is empty\"       exit 1 else       echo \"EXPORT_ID=$EXPORT_ID\"       EXPORT_ID=$EXPORT_ID bash retrieve.sh fi<\/code><\/pre>\n<p>\u0428\u0430\u0433 2. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 (<code>retrieve.sh<\/code>):<\/p>\n<ul>\n<li>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 (<code>get_status()<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a API (<code>JSON_DATA<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c API \u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 (<code>complete<\/code>) \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 S3<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\"># 1. function used to poll to get current status get_status() {     curl -s -X GET $RETRIEVE_ENDPOINT \\     -H 'Content-Type: application\/json' \\     -d \"${JSON_DATA}\" \\     | jq -r '.status' \\     | cat }  # 2. prepare request JSON_DATA=$(jq -n \\               --arg maestroqa_token \"$MAESTROQA_TOKEN\" \\               --arg export_id \"$EXPORT_ID\" \\               '{apiToken: $maestroqa_token, exportId: $export_id }' )  # 3. get current status (\"in progress\" \/ \"complete\") STATUS=\"$(get_status)\" printf \"STATUS=$STATUS\\n\"  # 4. poll every 10 seconds while [ \"$STATUS\" != \"complete\" ]; do   printf \"STATUS=$STATUS\\n\"   sleep 10   STATUS=\"$(get_status)\" done  # 5. Store resulting file to S3 curl -s -X GET $RETRIEVE_ENDPOINT \\   -H 'Content-Type: application\/json' \\   -d \"${JSON_DATA}\" \\   | jq -r '.dataUrl' \\   | xargs curl -s \\   | aws s3 cp - s3:\/\/$BUCKET\/$BUCKET_PATH\/$FILE_NAME\/$FILE_NAME-$START_DATE-to-$END_DATE.csv  echo \"UPLOADED TO s3:\/\/$BUCKET\/$BUCKET_PATH\/$FILE_NAME\/$FILE_NAME-$START_DATE-to-$END_DATE.csv\"<\/code><\/pre>\n<ol start=\"4\">\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Airflow.<\/p>\n<\/li>\n<\/ol>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u0440\u0443\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435  \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0423\u0434\u043e\u0431\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e  \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Airflow, \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438,  \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qh\/79\/ct\/qh79ctior6v5brdm3jxx6taz3-a.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/qh\/79\/ct\/qh79ctior6v5brdm3jxx6taz3-a.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 DAG:<\/p>\n<pre><code class=\"python\">from airflow import DAG from airflow.operators.bash_operator import BashOperator  import os import yaml from datetime import datetime, timedelta from slack.notifications import failed_task_slack_notification  ### INIT DAG DAG_NAME = \"maestroqa_api\" SCHEDULE_INTERVAL = '0 0 * * *'  DAG_PATH = os.path.dirname(__file__) CONFIG_FILE_NAME = \"config.yml\" CONFIG_PATH = os.path.join(DAG_PATH, CONFIG_FILE_NAME) CONFIG = yaml.safe_load(open(CONFIG_PATH))[\"endpoints\"]  default_args = {     \"owner\": \"airflow\",     \"depends_on_past\": False,     \"start_date\": datetime(2022, 2, 1),     \"retries\": 1,     \"retry_delay\": timedelta(minutes=3),     \"catchup\": False,     \"dagrun_timeout\": timedelta(minutes=5),     'on_failure_callback': failed_task_slack_notification }  dag = DAG(     DAG_NAME,     default_args=default_args,      schedule_interval=SCHEDULE_INTERVAL )  os.environ[\"START_DATE\"] = \"{{ execution_date.isoformat() }}\" os.environ[\"END_DATE\"] = \"{{ next_execution_date.isoformat() }}\"  groups = BashOperator(             task_id=CONFIG['groups']['FILE_NAME'],             bash_command=f\"cd {DAG_PATH}\/ &amp;&amp; bash {CONFIG['groups']['FILE_NAME']}.sh \",             env={ **os.environ.copy(), **CONFIG['groups'] },             trigger_rule=\"all_done\",             dag=dag     )  total_scores = BashOperator(             task_id=CONFIG['total_scores']['FILE_NAME'],             bash_command=f\"cd {DAG_PATH}\/ &amp;&amp; bash {CONFIG['total_scores']['FILE_NAME']}.sh \",             env={ **os.environ.copy(), **CONFIG['total_scores'] },             trigger_rule=\"all_done\",             dag=dag     )  groups >> total_scores<\/code><\/pre>\n<h3>\u0421\u043c\u043e\u0434\u0435\u043b\u0438\u0440\u0443\u0435\u043c \u0432\u0438\u0442\u0440\u0438\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u2013 Transform Data<\/h3>\n<p>\u041a \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u044d\u0442\u0430\u043f\u0443 \u0443 \u043d\u0430\u0441 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0444\u0430\u0439\u043b\u044b \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 S3.<\/p>\n<h4>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0432 S3 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 EXTERNAL TABLE<\/h4>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SELECT-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0412 \u044d\u0442\u043e\u043c \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 <em>package<\/em> <a href=\"https:\/\/github.com\/dbt-labs\/dbt-external-tables\">dbt-labs\/dbt_external_tables<\/a>:<\/p>\n<pre><code class=\"yaml\">version: 2  sources:    - name: maestroqa     database: wheely     schema: spectrum     tags: [\"sources\", \"maestroqa\"]     loader: Airflow (S3 via External Tables)     description: \"MaestroQA \u2013 customer service quality assurance software\"      tables:          - name: groups           identifier: maestroqa_groups           description: \"Agent Groups\"           external:             location: \"s3:\/\/{{ var('s3_bucket_name') }}\/maestroqa\/GROUPS\/\"             row_format: serde 'org.apache.hadoop.hive.serde2.OpenCSVSerde'             table_properties: \"('skip.header.line.count'='1')\"           columns:             - name: group_name               data_type: varchar               description: \"Group \/ Team name: All Agents, UK Team, Ru Team, FR Team, UK Team\"             - name: group_id               data_type: varchar             - name: agent_name               data_type: varchar             - name: agent_email               data_type: varchar             - name: agent_ids               data_type: varchar               description: \"List of semicolon separated Agent IDs. Used to link with MaestroQA Total Scores table\"             - name: available               data_type: bool               description: \"Flag indicating if agent is available at the moment\"<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 EXTERNAL TABLES \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 dbt \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 <code>sources<\/code> (\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445)<\/p>\n<h4>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0442\u0440\u0438\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 API. \u0412\u044b\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f 2 \u0442\u0438\u043f\u0430 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>Groups &#8212; \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a \u0430\u0433\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u043c\u0430\u043d\u0434 <\/p>\n<\/li>\n<li>\n<p>Scores &#8212; \u0444\u0430\u043a\u0442\u044b \u043e\u0446\u0435\u043d\u043e\u043a \u0438 \u0441\u043a\u043e\u0440\u0438\u043d\u0433\u043e\u0432 \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0441\u043e\u0431\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043c \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u043a\u0443 <code>agent_ids<\/code>,  \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0443\u044e \u0441\u043e\u0431\u043e\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432. \u0421 \u044d\u0442\u0438\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f  \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f &#8212; \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0435  \u043f\u043b\u043e\u0441\u043a\u0438\u0439 \u0432\u0438\u0434, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/mr\/sz\/ia\/mrsziaezfinv5q0ofuofbqoa8xq.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/mr\/sz\/ia\/mrsziaezfinv5q0ofuofbqoa8xq.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 &#8212; \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0448\u0438\u0440\u043e\u043a\u0443\u044e \u0432\u0438\u0442\u0440\u0438\u043d\u0443, \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438  \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u043b\u044e\u0431\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<pre><code class=\"sql\">{{     config (       materialized='table',       dist='auto',       sort=['graded_dt', 'country'],       tags=['maestroqa']     ) }}  SELECT      -- IDs   scores.gradable_id , scores.agent_id       -- dimensions     , scores.grader , scores.agent_name , scores.agent_email , groups.group_name , CASE groups.group_name       WHEN 'Ru Team' THEN 'RU'       WHEN 'FR Team' THEN 'FR'       WHEN 'UK Team' THEN 'GB'       WHEN 'All Agents' THEN 'All'     END AS country              -- dates     , scores.date_graded::DATE AS graded_dt      -- measures     , scores.rubric_score , scores.max_rubric_score  FROM {{ ref('stg_maestroqa_total_scores') }} AS scores     LEFT JOIN {{ ref('flt_maestroqa_groups') }} AS groups ON groups.agent_id = scores.agent_id          AND groups.group_name IN ('All Agents', 'Ru Team', 'FR Team', 'UK Team')<\/code><\/pre>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0433\u0440\u0430\u0444 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 dbt (DAG) \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ei\/ad\/u3\/eiadu3ozhaiswazh-ss-z054ne8.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/ei\/ad\/u3\/eiadu3ozhaiswazh-ss-z054ne8.png\"\/><figcaption><\/figcaption><\/figure>\n<h3>\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0447\u0435\u0440\u0435\u0437 BI \u2013 Deliver value<\/h3>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043a \u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u0430\u043f\u0443 \u043f\u043e\u043c\u0438\u043c\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 S3 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e  \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u0448\u0438\u0440\u043e\u043a\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432 \u0421\u0423\u0411\u0414 (\u0432\u0438\u0442\u0440\u0438\u043d\u0430), \u043e\u0431\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b  \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u043b\u044e\u0431\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0435 \u0432\u0441\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438  \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c SQL. \u042d\u0442\u043e\u0442 \u0431\u0430\u0440\u044c\u0435\u0440 \u043f\u0440\u0438\u0437\u0432\u0430\u043d\u044b \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c BI-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b,  \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043a:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0434\u0430\u043d\u043d\u044b\u043c<\/p>\n<\/li>\n<li>\n<p>\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439, \u043c\u0435\u0442\u0440\u0438\u043a \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0413\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0435 \u0440\u044f\u0434\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439 \u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0440\u0430\u0441\u0441\u044b\u043b\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 Looker \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441  \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0430\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439.  \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 LookML, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0435\u043c Javascript:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/xy\/yp\/kd\/xyypkdyvg8_dlskrxubzfuvteqs.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/xy\/yp\/kd\/xyypkdyvg8_dlskrxubzfuvteqs.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043b\u044e\u0431\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u043c \u0434\u043b\u044f  \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043d\u0430 \u0441\u0432\u043e\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u2013 \u0432 Looker \u044d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Explore:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qk\/jn\/lz\/qkjnlzsoedxyapuqda7scge30ei.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/qk\/jn\/lz\/qkjnlzsoedxyapuqda7scge30ei.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u043b\u0438\u0442\u043e\u0447\u043a\u0438 (tiles) \u043c\u043e\u0436\u043d\u043e \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b, \u0440\u0430\u0441\u0441\u044b\u043b\u0430\u0442\u044c  \u0432\u0441\u0435\u043c \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438  \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043c\u0435\u0442\u0440\u0438\u043a:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/n8\/io\/jt\/n8iojtewpopbyoilpqhmuwonk7q.png\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/webt\/n8\/io\/jt\/n8iojtewpopbyoilpqhmuwonk7q.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c &#8212; \u044d\u0442\u043e \u0432\u0435\u0440\u0448\u0438\u043d\u0430 \u0430\u0439\u0441\u0431\u0435\u0440\u0433\u0430, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043d\u043e  \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u043e\u043b\u044c\u0437\u0430 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438.<\/p>\n<h3>\u0423\u043c\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0431\u0438\u0437\u043d\u0435\u0441\u0430<\/h3>\n<p>\u042d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u0445\u043e\u0442\u044f\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0430\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0435 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b. \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u044b \u0448\u0438\u0440\u043e\u043a\u043e\u0433\u043e  \u043f\u0440\u043e\u0444\u0438\u043b\u044f, \u043c\u0443\u043b\u044c\u0442\u0438\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u0438\u0441\u0442\u044b, \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0435  \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u043d\u0443\u0436\u043d\u044b \u043d\u0430  \u0440\u044b\u043d\u043a\u0435 \u043a\u0430\u043a \u043d\u0438\u043a\u043e\u0433\u0434\u0430.<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u0430\u0441\u043f\u0435\u043a\u0442\u044b \u044f \u0434\u0435\u0440\u0436\u0430\u043b \u0432 \u0443\u043c\u0435, \u043a\u043e\u0433\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u043c\u0438 \u043a\u0443\u0440\u0441\u043e\u0432 <a href=\"https:\/\/otus.pw\/MwH3\/\">Analytics Engineer<\/a> \u0438 <a href=\"https:\/\/otus.pw\/qA2p\/\">Data Engineer<\/a> \u0432 OTUS.<\/p>\n<p>\u042d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0437\u0430\u043d\u044f\u0442\u0438\u0439 \u043f\u043e \u0442\u0435\u043c\u0430\u043c, \u0430 \u0435\u0434\u0438\u043d\u0430\u044f, \u0441\u0432\u044f\u0437\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f, \u0432  \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0430\u043a\u0446\u0435\u043d\u0442 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u0432. \u041d\u0430 <a href=\"https:\/\/otus.ru\/lessons\/dwh\/\">live-\u0441\u0435\u0441\u0441\u0438\u044f\u0445<\/a> \u044f \u0438 \u043c\u043e\u0438 \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043a\u0435\u0439\u0441\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u043e\u0435 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 dbt<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b c BI-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0438 SQL<\/p>\n<\/li>\n<li>\n<p>\u041a\u0435\u0439\u0441\u044b: \u0421\u043a\u0432\u043e\u0437\u043d\u0430\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430, Company\u2019s KPI, Timeseries analysis<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u0432\u043e\u0438\u043c\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f\u043c\u0438, \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u043c\u0438 \u044f \u0434\u0435\u043b\u044e\u0441\u044c \u0432 \u0422\u0413-\u043a\u0430\u043d\u0430\u043b\u0435 <a href=\"https:\/\/t.me\/enthusiastech\">Technology Enthusiast<\/a>.<\/p>\n<p>\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439, \u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0438 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b\u0438?<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/otus\/blog\/665642\/\"> https:\/\/habr.com\/ru\/company\/otus\/blog\/665642\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442! \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u0440\u0442\u0435\u043c\u0438\u0439 \u041a\u043e\u0437\u044b\u0440\u044c, \u0438 \u044f Analytics Engineer \u0432 Wheely.<\/p>\n<p>\u041c\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0434\u043e\u043b\u0433\u043e \u0438 \u043d\u0443\u0434\u043d\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0442\u044c, \u043a\u0442\u043e \u0442\u0430\u043a\u043e\u0439 Analytics (<em>Data \/ Backend<\/em>) Engineer, \u043a\u0430\u043a\u0438\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u043b\u0430\u0434\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 <em>buzzwords<\/em>  \u0432 \u0442\u0440\u0435\u043d\u0434\u0435 \u0438 \u0446\u0435\u043d\u044f\u0442\u0441\u044f \u0432 CV, \u043e\u0434\u043d\u0430\u043a\u043e, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435  \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0435\u0433\u043e \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439  \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0427\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 <strong>End-to-End<\/strong> \u0438 \u0432 \u0447\u0435\u043c \u0435\u0433\u043e \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c?<\/p>\n<\/li>\n<li>\n<p>\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f <strong>Extract &amp; Load<\/strong> \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e API MaestroQA<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong> \u0432\u0438\u0442\u0440\u0438\u043d \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e dbt<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/strong> \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Looker<\/p>\n<\/li>\n<\/ul>\n<h3>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 End-to-End &#8212; \u043e\u0442 \u0438\u0434\u0435\u0438 \u0434\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p>\u0412 \u0434\u0432\u0443\u0445 \u0441\u043b\u043e\u0432\u0430\u0445, <strong>End-to-End<\/strong> \u2013 \u044d\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0430\u044f \u0432\u0441\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u043f\u0430\u0437\u043b\u0430.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044e &#8212; \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/www.maestroqa.com\/\">MaestroQA<\/a>, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438 \u043e\u0446\u0435\u043d\u043a\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 (Customer Support).<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u0438\u0434\u0435\u0439 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a, \u043a\u0435\u043c \u0431\u044b \u043e\u043d  \u043d\u0438 \u0431\u044b\u043b (Manager, Product Owner, CEO), \u043f\u043e\u0447\u0442\u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442 \u0437\u0430\u0434\u0430\u0447\u0443 \u0432  \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u043b\u0438\u0442\u044c 100500 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442 \u0432 \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c multithreading \u0432 \u043a\u043e\u0434<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0443\u043f\u0435\u0440\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c 15 dbt-\u043c\u043e\u0434\u0435\u043b\u0435\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430 \u043b\u044e\u0431\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0441\u0442\u043e\u0438\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0414\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u043e:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c Customer Support (\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u043e\u0446\u0435\u043d\u043a\u0438, \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b)<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043b\u0430\u0434\u043e\u043d\u0438 (\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043e KPI \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 (\u0430\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c, \u0433\u043e\u0440\u043e\u0434\u0430\u043c, \u0441\u0442\u0440\u0430\u043d\u0430\u043c \u0438 \u0442.\u0434.)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 (\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0441\u043b\u0430\u0431\u044b\u0445\/\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0445 \u043c\u0435\u0441\u0442 \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 feedback)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0443\u0447\u0438\u043c\u0441\u044f \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0435\u0439\u0441\u044b (\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0435\u043c, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0440\u0435\u043d\u0438\u043d\u0433\u043e\u0432 \u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u0432)<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u044d\u0442\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0444\u043e\u043a\u0443\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442 Analytics Engineer \u043e\u0442,  \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 Data Engineer, Backend Engineer. \u041e\u0431\u043b\u0430\u0434\u0430\u044f \u0432\u0441\u0435\u043c \u0441\u043f\u0435\u043a\u0442\u0440\u043e\u043c \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u043a, Analytics Engineer \u0441\u043e\u0437\u0434\u0430\u0435\u0442  \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u0438 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u0413\u043e\u0432\u043e\u0440\u0438\u0442 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0441  \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0438 \u043c\u044b\u0441\u043b\u0438\u0442 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2013 Extract &amp; Load Data<\/h3>\n<p>\u041e\u043a\u0435\u0439, \u0442\u0435\u043f\u0435\u0440\u044c \u0431\u043b\u0438\u0436\u0435 \u043a \u0434\u0435\u043b\u0443. \u042f \u0432\u044b\u0431\u0440\u0430\u043b MaestroQA \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e &#8212; \u044d\u0442\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0432 SaaS-\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445. <\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0435 \u043d\u0430 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0412\u044b\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u043a\u0443\u0441\u0430, \u043d\u043e  \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 shell-\u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Airflow.<\/p>\n<h4>1. \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a API \u0441\u0435\u0440\u0432\u0438\u0441\u0430:<\/h4>\n<ul>\n<li>\n<p>\u041d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0440\u044f\u0434 \u043c\u0435\u0442\u043e\u0434\u043e\u0432: <code>request-raw-export<\/code>, <code>request-groups-export<\/code>, <code>request-audit-log-export<\/code>,  <code>get-export-data<\/code><\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u0442\u043e\u0434\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432: <code>apiToken<\/code>, <code>startDate<\/code>, <code>endDate<\/code>, <code>exportId<\/code><\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<p>\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 API \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0442\u043e\u0439 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439  \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043d\u0435 \u0441\u0430\u043c\u0443 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \u0430 \u043d\u043e\u043c\u0435\u0440 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u041f\u0440\u0435\u0434\u044a\u044f\u0432\u0438\u0432 \u044d\u0442\u043e\u0442  \u043d\u043e\u043c\u0435\u0440 \u0432 \u0434\u0440\u0443\u0433\u043e\u0435 \u043e\u043a\u043d\u043e (\u043c\u0435\u0442\u043e\u0434 <code>get-export-data<\/code>), \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u0430.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Async API \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0443, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c <code>exportId<\/code>, \u043d\u043e \u0442\u0430\u043a \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0434\u0430\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435.<\/p>\n<h4>2. \u041f\u043e\u043b\u0443\u0447\u0438\u043c API Token.<\/h4>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u042d\u0442\u043e \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0432\u0430\u0448\u0438\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c.<\/p>\n<h4>3. \u0413\u043e\u0442\u043e\u0432\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438.<\/h4>\n<p>\u0428\u0430\u0433 1. \u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u044b\u0440\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (<code>total_scores.sh<\/code>):<\/p>\n<ul>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a API (<code>JSON_DATA<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <code>exportId<\/code> (\u0442\u0430\u043b\u043e\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>exportId<\/code> \u0438 \u0435\u0441\u043b\u0438 \u041e\u041a, \u0442\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 (<code>retrieve.sh<\/code>)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\"># 1. Prepare request JSON_DATA=$(jq -n \\               --arg maestroqa_token \"$MAESTROQA_TOKEN\" \\               --arg start_date \"$START_DATE\" \\               --arg end_date \"$END_DATE\" \\               --arg single_file_export \"$SINGLE_FILE_EXPORT\" \\               --arg name \"$FILE_NAME\" \\               '{apiToken: $maestroqa_token, startDate: $start_date, endDate: $end_date, singleFileExport: $single_file_export, name: $name }' )  # 2. Get exportId EXPORT_ID=$(curl -s -X POST $ENDPOINT \\     -H 'Content-Type: application\/json' \\     -d \"${JSON_DATA}\" \\     | jq -r '.exportId')  # 3. Retrieve data by exportId if [ -z \"$EXPORT_ID\" ] then       echo \"EXPORT_ID is empty\"       exit 1 else       echo \"EXPORT_ID=$EXPORT_ID\"       EXPORT_ID=$EXPORT_ID bash retrieve.sh fi<\/code><\/pre>\n<p>\u0428\u0430\u0433 2. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 (<code>retrieve.sh<\/code>):<\/p>\n<ul>\n<li>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 (<code>get_status()<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a API (<code>JSON_DATA<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c API \u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 (<code>complete<\/code>) \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 S3<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\"># 1. function used to poll to get current status get_status() {     curl -s -X GET $RETRIEVE_ENDPOINT \\     -H 'Content-Type: application\/json' \\     -d \"${JSON_DATA}\" \\     | jq -r '.status' \\     | cat }  # 2. prepare request JSON_DATA=$(jq -n \\               --arg maestroqa_token \"$MAESTROQA_TOKEN\" \\               --arg export_id \"$EXPORT_ID\" \\               '{apiToken: $maestroqa_token, exportId: $export_id }' )  # 3. get current status (\"in progress\" \/ \"complete\") STATUS=\"$(get_status)\" printf \"STATUS=$STATUS\\n\"  # 4. poll every 10 seconds while [ \"$STATUS\" != \"complete\" ]; do   printf \"STATUS=$STATUS\\n\"   sleep 10   STATUS=\"$(get_status)\" done  # 5. Store resulting file to S3 curl -s -X GET $RETRIEVE_ENDPOINT \\   -H 'Content-Type: application\/json' \\   -d \"${JSON_DATA}\" \\   | jq -r '.dataUrl' \\   | xargs curl -s \\   | aws s3 cp - s3:\/\/$BUCKET\/$BUCKET_PATH\/$FILE_NAME\/$FILE_NAME-$START_DATE-to-$END_DATE.csv  echo \"UPLOADED TO s3:\/\/$BUCKET\/$BUCKET_PATH\/$FILE_NAME\/$FILE_NAME-$START_DATE-to-$END_DATE.csv\"<\/code><\/pre>\n<ol start=\"4\">\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Airflow.<\/p>\n<\/li>\n<\/ol>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u0440\u0443\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435  \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0423\u0434\u043e\u0431\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e  \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Airflow, \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438,  \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 DAG:<\/p>\n<pre><code class=\"python\">from airflow import DAG from airflow.operators.bash_operator import BashOperator  import os import yaml from datetime import datetime, timedelta from slack.notifications import failed_task_slack_notification  ### INIT DAG DAG_NAME = \"maestroqa_api\" SCHEDULE_INTERVAL = '0 0 * * *'  DAG_PATH = os.path.dirname(__file__) CONFIG_FILE_NAME = \"config.yml\" CONFIG_PATH = os.path.join(DAG_PATH, CONFIG_FILE_NAME) CONFIG = yaml.safe_load(open(CONFIG_PATH))[\"endpoints\"]  default_args = {     \"owner\": \"airflow\",     \"depends_on_past\": False,     \"start_date\": datetime(2022, 2, 1),     \"retries\": 1,     \"retry_delay\": timedelta(minutes=3),     \"catchup\": False,     \"dagrun_timeout\": timedelta(minutes=5),     'on_failure_callback': failed_task_slack_notification }  dag = DAG(     DAG_NAME,     default_args=default_args,      schedule_interval=SCHEDULE_INTERVAL )  os.environ[\"START_DATE\"] = \"{{ execution_date.isoformat() }}\" os.environ[\"END_DATE\"] = \"{{ next_execution_date.isoformat() }}\"  groups = BashOperator(             task_id=CONFIG['groups']['FILE_NAME'],             bash_command=f\"cd {DAG_PATH}\/ &amp;&amp; bash {CONFIG['groups']['FILE_NAME']}.sh \",             env={ **os.environ.copy(), **CONFIG['groups'] },             trigger_rule=\"all_done\",             dag=dag     )  total_scores = BashOperator(             task_id=CONFIG['total_scores']['FILE_NAME'],             bash_command=f\"cd {DAG_PATH}\/ &amp;&amp; bash {CONFIG['total_scores']['FILE_NAME']}.sh \",             env={ **os.environ.copy(), **CONFIG['total_scores'] },             trigger_rule=\"all_done\",             dag=dag     )  groups >> total_scores<\/code><\/pre>\n<h3>\u0421\u043c\u043e\u0434\u0435\u043b\u0438\u0440\u0443\u0435\u043c \u0432\u0438\u0442\u0440\u0438\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u2013 Transform Data<\/h3>\n<p>\u041a \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u044d\u0442\u0430\u043f\u0443 \u0443 \u043d\u0430\u0441 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0444\u0430\u0439\u043b\u044b \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 S3.<\/p>\n<h4>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0432 S3 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 EXTERNAL TABLE<\/h4>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SELECT-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0412 \u044d\u0442\u043e\u043c \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 <em>package<\/em> <a href=\"https:\/\/github.com\/dbt-labs\/dbt-external-tables\">dbt-labs\/dbt_external_tables<\/a>:<\/p>\n<pre><code class=\"yaml\">version: 2  sources:    - name: maestroqa     database: wheely     schema: spectrum     tags: [\"sources\", \"maestroqa\"]     loader: Airflow (S3 via External Tables)     description: \"MaestroQA \u2013 customer service quality assurance software\"      tables:          - name: groups           identifier: maestroqa_groups           description: \"Agent Groups\"           external:             location: \"s3:\/\/{{ var('s3_bucket_name') }}\/maestroqa\/GROUPS\/\"             row_format: serde 'org.apache.hadoop.hive.serde2.OpenCSVSerde'             table_properties: \"('skip.header.line.count'='1')\"           columns:             - name: group_name               data_type: varchar               description: \"Group \/ Team name: All Agents, UK Team, Ru Team, FR Team, UK Team\"             - name: group_id               data_type: varchar             - name: agent_name               data_type: varchar             - name: agent_email               data_type: varchar             - name: agent_ids               data_type: varchar               description: \"List of semicolon separated Agent IDs. Used to link with MaestroQA Total Scores table\"             - name: available               data_type: bool               description: \"Flag indicating if agent is available at the moment\"<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 EXTERNAL TABLES \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 dbt \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 <code>sources<\/code> (\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445)<\/p>\n<h4>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0442\u0440\u0438\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 API. \u0412\u044b\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f 2 \u0442\u0438\u043f\u0430 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>Groups &#8212; \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a \u0430\u0433\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u043c\u0430\u043d\u0434 <\/p>\n<\/li>\n<li>\n<p>Scores &#8212; \u0444\u0430\u043a\u0442\u044b \u043e\u0446\u0435\u043d\u043e\u043a \u0438 \u0441\u043a\u043e\u0440\u0438\u043d\u0433\u043e\u0432 \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0441\u043e\u0431\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043c \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u043a\u0443 <code>agent_ids<\/code>,  \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0443\u044e \u0441\u043e\u0431\u043e\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432. \u0421 \u044d\u0442\u0438\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f  \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f &#8212; \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0435  \u043f\u043b\u043e\u0441\u043a\u0438\u0439 \u0432\u0438\u0434, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 &#8212; \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0448\u0438\u0440\u043e\u043a\u0443\u044e \u0432\u0438\u0442\u0440\u0438\u043d\u0443, \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438  \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u043b\u044e\u0431\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<pre><code class=\"sql\">{{     config (       materialized='table',       dist='auto',       sort=['graded_dt', 'country'],       tags=['maestroqa']     ) }}  SELECT      -- IDs   scores.gradable_id , scores.agent_id       -- dimensions     , scores.grader , scores.agent_name , scores.agent_email , groups.group_name , CASE<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-333105","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/333105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333105"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/333105\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}