00init.mql 806 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. -- 14bucket 目录初始化:Bucket 操作测试
  2. create class if not exists /test/aaa/test_bucket_logs (
  3. name varchar,
  4. msg text,
  5. n int,
  6. keys(name)
  7. ) with bucket=logs
  8. /**
  9. onerror(continue)
  10. **/
  11. ;
  12. create class if not exists /test/aaa/test_bucket_strulogs (
  13. name varchar,
  14. data text,
  15. val int,
  16. keys(name)
  17. ) with bucket=strulogs
  18. /**
  19. onerror(continue)
  20. **/
  21. ;
  22. create class if not exists /test/aaa/test_bucket_tsdb (
  23. name varchar,
  24. value int,
  25. ts timestamp,
  26. keys(name)
  27. ) with bucket=tsdb, nickname='test_bucket_tsdb'
  28. /**
  29. onerror(continue)
  30. **/
  31. ;
  32. create class if not exists /test/aaa/test_bucket_promdb (
  33. name varchar,
  34. metric double,
  35. ts timestamp,
  36. keys(name)
  37. ) with bucket=promdb
  38. /**
  39. onerror(continue)
  40. **/
  41. ;