00init.mql 673 B

1234567891011121314151617181920212223242526272829303132333435
  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. create class if not exists /test/aaa/test_bucket_strulogs (
  10. name varchar,
  11. data text,
  12. val int,
  13. keys(name)
  14. ) with bucket=strulogs
  15. ;
  16. create class if not exists /test/aaa/test_bucket_tsdb (
  17. name varchar,
  18. value int,
  19. ts timestamp,
  20. keys(name)
  21. ) with bucket=tsdb
  22. ;
  23. create class if not exists /test/aaa/test_bucket_promdb (
  24. name varchar,
  25. metric double,
  26. ts timestamp,
  27. keys(name)
  28. ) with bucket=promdb
  29. ;