Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 1.37 KB

analyze_sql.md

File metadata and controls

31 lines (29 loc) · 1.37 KB

analyze sql

$ obdiag analyze sql [options]

Options:
  --host=HOST           tenant connection host
  --port=PORT           tenant connection port
  --password=PASSWORD   tenant connection user password
  --user=USER           tenant connection user name
  --from=FROM           specify the start of the time range. format: 'yyyy-mm-
                        dd hh:mm:ss'
  --to=TO               specify the end of the time range. format: 'yyyy-mm-dd
                        hh:mm:ss'
  --since=SINCE         Specify time range that from 'n' [d]ays, 'n' [h]ours
                        or 'n' [m]inutes. before to now. format: <n> <m|h|d>.
                        example: 1h.
  --level=LEVEL         The alarm level, optional parameters [critical, warn,
                        notice, ok]
  --output=OUTPUT       The format of the output results, choices=[json, html]
  --limit=LIMIT         The limit on the number of data rows returned by
                        sql_audit for the tenant.
  --store_dir=STORE_DIR
                        the dir to store result, current dir by default.
  --elapsed_time=ELAPSED_TIME
                        The minimum threshold for filtering execution time,
                        measured in microseconds.
  -c C                  obdiag custom config
  -h, --help            Show help and exit.
  -v, --verbose         Activate verbose output.