10class.mql 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. create class if not exists /test();
  2. create class if not exists /test/buckettsdb (
  3. host varchar,
  4. bk2 bucket {
  5. "type" : "tsdb",
  6. "param" : ["iparam1","iparam2","fparam1","fparam2","sparam1","vparam1"],
  7. "ptype" : ["i","i","f","f","s","s"],
  8. "unit" : ["%","m","ms","ns","",""],
  9. "precision":[0,0,3,4,0,0],
  10. "ttl" : 365,
  11. "crc" : ["iparam1", "sparam1"]
  12. } 'full',
  13. keys(host),
  14. indexes(host)
  15. ) with key=manu, nickname='buckettsdb'
  16. ;
  17. create class if not exists /test/buckettsdb64 (
  18. host varchar,
  19. bk64 bucket {
  20. "type" : "tsdb",
  21. "crc64" : true,
  22. "param" : ["iparam1","iparam2","fparam1","fparam2","sparam1","vparam1"],
  23. "ptype" : ["i","i","f","f","s","s"],
  24. "unit" : ["%","m","ms","ns","",""],
  25. "precision":[0,0,3,4,0,0],
  26. "ttl" : 365,
  27. "crc" : ["iparam1", "sparam1"]
  28. } 'full',
  29. keys(host),
  30. indexes(host)
  31. ) with key=manu, nickname='buckettsdb64'
  32. ;