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
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
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6k
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
300
Architectural Extensions
denyspoltorak
0
280
ぼくの開発環境2026
yuzneri
0
170
CSC307 Lecture 01
javiergs
PRO
0
690
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
260
AI巻き込み型コードレビューのススメ
nealle
1
150
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
160
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
380
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
130
Oxlint JS plugins
kazupon
1
850
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Automating Front-end Workflow
addyosmani
1371
200k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
410
The Pragmatic Product Professional
lauravandoore
37
7.1k
GitHub's CSS Performance
jonrohan
1032
470k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
280
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
320
The Invisible Side of Design
smashingmag
302
51k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
180
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 )
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠