
create class if not exists /test();

create class if not exists /test/buckettsdb (
   		
		host varchar,
		
		bk2  bucket {
				 "type"  :  "tsdb",
				 "param" : ["iparam1","iparam2","fparam1","fparam2","sparam1","vparam1"],
				 "ptype" : ["i","i","f","f","s","s"],
				 "unit"  : ["%","m","ms","ns","",""],
				 "precision":[0,0,3,4,0,0],
				 "ttl"   :   365,
				 "crc"	 :	["iparam1", "sparam1"]
			 } 'full',

		keys(host),
		indexes(host)
	
	) with key=manu, nickname='buckettsdb'
;

create class if not exists /test/buckettsdb64 (
   		
		host varchar,
		
		bk64  bucket {
				 "type"  :  "tsdb",
				 "crc64" :  true,
				 "param" : ["iparam1","iparam2","fparam1","fparam2","sparam1","vparam1"],
				 "ptype" : ["i","i","f","f","s","s"],
				 "unit"  : ["%","m","ms","ns","",""],
				 "precision":[0,0,3,4,0,0],
				 "ttl"   :   365,
				 "crc"	 :	["iparam1", "sparam1"]
			 } 'full',

		keys(host),
		indexes(host)
	
	) with key=manu, nickname='buckettsdb64'
;
