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
araiman
September 03, 2019
Programming
1
770
退屈なことは 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
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
470
AIでLINEスタンプを作ってみた
eycjur
1
230
Honoアップデート 2025年夏
yusukebe
1
920
速いWebフレームワークを作る
yusukebe
5
1.7k
250830 IaCの選定~AWS SAMのLambdaをECSに乗り換えたときの備忘録~
east_takumi
0
380
ファインディ株式会社におけるMCP活用とサービス開発
starfish719
0
220
Microsoft Orleans, Daprのアクターモデルを使い効率的に開発、デプロイを行うためのSekibanの試行錯誤 / Sekiban: Exploring Efficient Development and Deployment with Microsoft Orleans and Dapr Actor Models
tomohisa
0
240
Namespace and Its Future
tagomoris
6
700
CSC305 Summer Lecture 12
javiergs
PRO
0
140
rage against annotate_predecessor
junk0612
0
160
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
20
5.1k
オープンセミナー2025@広島「君はどこで動かすか?」アンケート結果
satoshi256kbyte
0
260
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
45
7.6k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.8k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
910
Six Lessons from altMBA
skipperchong
28
4k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Side Projects
sachag
455
43k
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 )
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠