Skip to content

Commit

Permalink
Add timeout unit
Browse files Browse the repository at this point in the history
Signed-off-by: Rupal Mahajan <[email protected]>
  • Loading branch information
rupal-bq committed Feb 26, 2024
1 parent 8660cdd commit 44720ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Option | Default Value | Valid Options | Environment Variable | Description
--subject | This is an email containing your dashboard report | - | OPENSEARCH_SUBJECT | subject for the email
--note | Hi,\nHere is the latest report! | string or path to text file | OPENSEARCH_EMAIL_NOTE | The email body
--selfsignedcerts | false | true, false | - | enable or disable self-signed certicates for smtp transport
--timeout | 300000ms | - | OPENSEARCH_TIMEOUT | timeout for generating report in ms
| - | - | - | CHROMIUM_PATH | path to chromium directory

You can also find this information using help command.
Expand Down
2 changes: 1 addition & 1 deletion src/arguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function getCommandArguments() {
.addOption(new Option('--selfsignedcerts <flag>', 'enable or disable self-signed certicates for smtp transport')
.default(DEFAULT_SELF_SIGNED_CERTIFICATES)
.choices(['true', 'false']))
.addOption(new Option('--timeout <timeout>', 'timeout for generating report')
.addOption(new Option('--timeout <timeout>', 'timeout for generating report in ms')
.default(DEFAULT_TIMEOUT)
.env(ENV_VAR.TIMEOUT));

Expand Down
2 changes: 1 addition & 1 deletion test/help.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Options:
--subject <subject> email subject (default: "This is an email containing your opensearch dashboard report", env: OPENSEARCH_EMAIL_SUBJECT)
--note <note> email body (string or path to text file) (default: "Hi,\\nHere is the latest report!", env: OPENSEARCH_EMAIL_NOTE)
--selfsignedcerts <flag> enable or disable self-signed certicates for smtp transport (choices: "true", "false", default: false)
--timeout <timeout> timeout for generating report (default: 300000, env: OPENSEARCH_TIMEOUT)
--timeout <timeout> timeout for generating report in ms (default: 300000, env: OPENSEARCH_TIMEOUT)
-h, --help display help for command
Note: The tenant in the url has the higher priority than tenant value provided as command option.
Expand Down

0 comments on commit 44720ab

Please sign in to comment.