Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
退屈なことは RedashAPI にやらせよう/utilize-redash
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
araiman
September 03, 2019
Programming
1
780
退屈なことは RedashAPI にやらせよう/utilize-redash
RedashAPIの紹介 @Redash Meetup 6.0.0
araiman
September 03, 2019
Tweet
Share
More Decks by araiman
See All by araiman
Redashのreplaceを試みたが、 結局使い続けている話/try-replace-redash
araiman
0
200
Other Decks in Programming
See All in Programming
CSC307 Lecture 01
javiergs
PRO
0
690
Oxlint JS plugins
kazupon
1
850
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
370
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
260
組織で育むオブザーバビリティ
ryota_hnk
0
170
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
650
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
450
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
270
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
180
Featured
See All Featured
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
220
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
410
How to make the Groovebox
asonas
2
1.9k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
YesSQL, Process and Tooling at Scale
rocio
174
15k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
320
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
170
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.6k
Exploring anti-patterns in Rails
aemeredith
2
250
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
160
Transcript
౹ƍŶƋƒ RedashAPI ƎƧƬžƫũ 3FEBTI.FFUVQ !BSJNBOY
ࣗݾհ w ໊લߥҪ྄ຏ w ৬छσʔλΤϯδχΞ!גࣜձࣾΤϒϦʔ w झຯٿ؍ઓ υϥΰϯζϚϦʔϯζ w
5XJUUFS!BSBJNBOY
ΞδΣϯμ w "1*ʹΑΓ࡞ۀΛେ෯ʹͬͨࣄྫ w "1*ػೳ֓ཁ w "1*ར༻ͷྲྀΕdάϥϑͷՄࢹԽΛྫʹd
ΞδΣϯμ w "1*ʹΑΓ࡞ۀΛେ෯ʹͬͨࣄྫ w "1*ػೳ֓ཁ w "1*ར༻ͷྲྀΕdάϥϑͷՄࢹԽΛྫʹd
࣌ؒ
࡞ۀ༰ ҎԼͷΑ͏ͳνϟʔτΛݸ࡞Δඞཁ͕͋ͬͨ
࡞ۀఔ "1*׆༻લ ΫΤϦ࡞ ΫΤϦ࣮ߦ άϥϑඳը ɾ42-ͷهड़ ɾมͷઃఆ ɾ࣮ߦ ɾ9:࣠ͷઃఆ ɾมͷઃఆ
ɾ:࣠ͷεέʔϧ ɹมߋ
࡞ۀఔ "1*׆༻ޙ ΫΤϦ࡞ ΫΤϦ࣮ߦ άϥϑඳը ɾ42-ͷهड़ ɾมͷઃఆ શͯࣗಈԽ͠·ͨ͠ ɾ࣮ߦ ɾ9:࣠ͷઃఆ
ɾมͷઃఆ ɾ:࣠ͷεέʔϧ ɹมߋ
༻ٕज़ w ݴޠ w 1ZUIPO w ϥΠϒϥϦ w KTPO w
SFRVFTUT
ΞδΣϯμ w "1*ʹΑΓ࡞ۀΛେ෯ʹͬͨࣄྫ w "1*ػೳ֓ཁ w "1*ར༻ͷྲྀΕdάϥϑͷՄࢹԽΛྫʹd
άϥϑͷඳը·Ͱ"1*Ͱ݁Ͱ͖Δ͜ͱ ͍ͬͯ·͔ͨ͠ʁ
ެࣜυΩϡϝϯτͷهड़ ΫΤϦͷग़ྗɺΫΤϦͷߋ৽ʹؔͯ͠ͷྫࣔ
ιʔείʔυ ͨ͘͞Μʂ(6*ʹଘࡏ͢ΔػೳԿͰͰ͖ͦ͏
"1*ͷػೳ֓ཁ Queries Resouce ΫΤϦͷ$36%ɾ42-ϑΥʔϚοτɾΫΤϦݕࡧ QueryResults Resouce ΫΤϦͷ࣮ߦɾΫΤϦ݁Ռͷऔಘ Job Resource ࣮ߦதδϣϒͷऔಘΩϟϯηϧ
Visualization Resource άϥϑͷ$36% Dashboard Resource μογϡϘʔυͷ$36%
ΞδΣϯμ w "1*ʹΑΓ࡞ۀΛେ෯ʹͬͨࣄྫ w "1*ػೳ֓ཁ w "1*ར༻ͷྲྀΕdάϥϑͷՄࢹԽΛྫʹd
"1*ར༻ͷྲྀΕdάϥϑͷՄࢹԽΛྫʹd w 6TFS"1*,FZͷऔಘ w +40/ܗࣜͷϦΫΤετσʔλ࡞ w "1*ͷϦΫΤετ
6TFS"1*,FZͷऔಘ ΞΧϯτϖʔδ͔ΒऔಘՄೳ
+40/ܗࣜͷϦΫΤετσʔλ࡞ body = { "id": None, "type": "CHART", "name": "άϥϑ໊",
"description": "", "options": { "globalSeriesType": "bubble", "columnMapping": { “column_for_x”: "x", “column_for_y”: "y", “column_for_series”: "series", “column_for_bubble_size”: "size" }, ... }, "query_id": 1234 } νϟʔτͷछྨ ΧϥϜࢦఆ
"1*ͷϦΫΤετ body = { "id": None, ... "query_id": 1234 }
header = { "content-type": "application/json", "Authorization": "Key your_api_key" } requests.post( "http://localhost/api/visualizations/1234", data=json.dumps(body), headers=header )
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠