1010class.mql 850 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. scope(file)
  3. timeout(3m)
  4. **/
  5. ;
  6. create class if not exists /test() with namespace="test"
  7. ;
  8. create class if not exists /test/bucketpromdb (
  9. host varchar,
  10. prom bucket {
  11. "type" : "promdb",
  12. "ttl" : 2,
  13. "dict" : true,
  14. "version": 1,
  15. "slot" : 5
  16. } 'prom',
  17. pprom bucket {
  18. "type" : "promdb",
  19. "ttl" : 2,
  20. "dict" : true,
  21. "version": 1,
  22. "slot" : 5
  23. } 'pprom',
  24. keys(host),
  25. indexes(host)
  26. ) with key=manu, nickname='bucketpromdb'
  27. ;
  28. create class if not exists /test/bucketpromdb/subpromdb () with nickname ='subpromdb' ;
  29. create class if not exists /test/bucketpromdb/subpromdb2 () with nickname ='subpromdb2' ;