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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
130
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
CSC307 Lecture 01
javiergs
PRO
0
690
CSC307 Lecture 03
javiergs
PRO
1
490
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
110
CSC307 Lecture 09
javiergs
PRO
1
830
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
170
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
190
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
610
Package Management Learnings from Homebrew
mikemcquaid
0
210
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
20
6.8k
AgentCoreとHuman in the Loop
har1101
5
220
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
2
210
GraphQLとの向き合い方2022年版
quramy
50
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
Skip the Path - Find Your Career Trail
mkilby
0
52
Leo the Paperboy
mayatellez
4
1.4k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Ethics towards AI in product and experience design
skipperchong
2
190
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Designing for Performance
lara
610
70k
What does AI have to do with Human Rights?
axbom
PRO
0
2k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
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 )
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠