hardis:org:monitor:all
Description
Monitor org, generate reports and sends notifications
You can disable some commands defining either a monitoringDisable property in .sfdx-hardis.yml
, or a comma separated list in env variable MONITORING_DISABLE
Example in .sfdx-hardis.yml:
monitoringDisable:
- METADATA_STATUS
- MISSING_ATTRIBUTES
- UNUSED_METADATAS
Example in env var:
MONITORING_DISABLE=METADATA_STATUS,MISSING_ATTRIBUTES,UNUSED_METADATAS
A default list of monitoring commands is used, if you want to override it you can define property monitoringCommands in your .sfdx-hardis.yml file
Example:
monitoringCommands:
- title: My Custom command
command: sfdx my:custom:command
- title: My Custom command 2
command: sfdx my:other:custom:command
You can force the daily run of all commands by defining env var MONITORING_IGNORE_FREQUENCY=true
Parameters
Name | Type | Description | Default | Required | Options |
---|---|---|---|---|---|
apiversion | option | override the api version used for api requests made by this command | |||
debug -d |
boolean | Activate debug mode (more logs) | |||
json | boolean | format output as json | |||
loglevel | option | logging level for this command invocation | warn | trace debug info warn error fatal |
|
skipauth | boolean | Skip authentication check when a default username is required | |||
targetusername -u |
option | username or alias for the target org; overrides default target org | |||
websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration |
Examples
$ sfdx hardis:org:monitor:all