re:dashã§ãã使ããã¦ããã¯ã¨ãªã¼ã調ã¹ã
re:dashã®Forkæ©è½ã¯ããã好ããªãã ãã©ã便å©ããã¦æ°è»½ã«Forkãããçµæã使ã£ã¦ãã®ã使ã£ã¦ãªãã®ãããããªãã¯ã¨ãªã¼ãå¢ãã¦ãã¾ããã¡ã
ãã®è¨äºãã¿ããçµ±è¨æ å ±ã£ã½ãã®ãåãããããªã®ã§ãã¡ãã£ã¨ããã£ã¦ä»¥ä¸ã®ããã«ããã
使ç¨ãã¦ãããã¼ã¸ã§ã³ã¯ 0.10.1+b1836
ã
SELECT object_id AS query_id, SUM(CASE WHEN action = 'view' THEN 1 ELSE 0 END) AS view, SUM(CASE WHEN action = 'execute' THEN 1 ELSE 0 END) AS execute FROM events WHERE object_type = 'query' AND object_id != '' AND created_at BETWEEN to_date('2016-11-01', 'YYYY-MM-DD') AND to_date('2016-11-17', 'YYYY-MM-DD') GROUP BY object_id ORDER BY execute DESC;
çµæã¯ãããªæãã
object_id | view | execute -----------+------+--------- 78 | 125 | 99 68 | 123 | 106 87 | 68 | 66 79 | 68 | 55 85 | 68 | 42 103 | 63 | 50 107 | 59 | 43 8 | 58 | 13 89 | 53 | 7 125 | 52 | 28 109 | 48 | 21 104 | 44 | 11 112 | 39 | 21 100 | 39 | 19 115 | 31 | 2 122 | 25 | 9
ãã®çµæãã¿ã¦ã使ç¨é »åº¦ã®ä½ãã¯ã¨ãªã¼ã¯ç©æ¥µçã«ã¢ã¼ã«ã¤ããããã¨ãã§ãããã
ãã¾ã
events
ãã¼ãã«ã¯ãããªæãã
ãã¼ãã« "public.events" å | å | ä¿®é£¾èª -----------------------+--------------------------+----------------------------------------------------- id | integer | not null default nextval('events_id_seq'::regclass) org_id | integer | not null user_id | integer | action | character varying(255) | not null object_type | character varying(255) | not null object_id | character varying(255) | additional_properties | text | created_at | timestamp with time zone | not null ã¤ã³ããã¯ã¹: "events_pkey" PRIMARY KEY, btree (id) "events_org_id" btree (org_id) "events_user_id" btree (user_id) å¤é¨ãã¼å¶ç´: "events_org_id_fkey" FOREIGN KEY (org_id) REFERENCES organizations(id) "events_user_id_fkey" FOREIGN KEY (user_id) REFERENCES users(id)
action
, object_type
ã«ã¯ãããªå¤ãå
¥ã£ã¦ããã
action
add_data_source add_member api_get archive autorefresh cancel_execute change_data_source_permission create delete edit edit_description edit_name execute execute_query fork login pivot remove_data_source remove_member search update update_data_source view view_source
object_type
dashboard data_source datasource group group_data_sources page query redash user visualization widget