Created
April 19, 2013 14:44
-
-
Save jsanda/5420800 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE KEYSPACE rhq WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; | |
USE rhq; | |
CREATE TABLE raw_metrics ( | |
schedule_id int, | |
time timestamp, | |
value double, | |
PRIMARY KEY (schedule_id, time) | |
); | |
CREATE TABLE one_hour_metrics ( | |
schedule_id int, | |
time timestamp, | |
type int, | |
value double, | |
PRIMARY KEY (schedule_id, time, type) | |
); | |
CREATE TABLE six_hour_metrics ( | |
schedule_id int, | |
time timestamp, | |
type int, | |
value double, | |
PRIMARY KEY (schedule_id, time, type) | |
); | |
CREATE TABLE twenty_four_hour_metrics ( | |
schedule_id int, | |
time timestamp, | |
type int, | |
value double, | |
PRIMARY KEY (schedule_id, time, type) | |
); | |
CREATE TABLE metrics_index ( | |
bucket varchar, | |
time timestamp, | |
schedule_id int, | |
null_col boolean, | |
PRIMARY KEY (bucket, time, schedule_id) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment