Skip to content

Commit 333cf2d

Browse files
authored
Update monitoring commands documentation (#665)
* Update monitoring commands documentation * [Mega-Linter] Apply linters fixes :) --------- Co-authored-by: nvuillam <[email protected]>
1 parent 319b7de commit 333cf2d

12 files changed

+40
-17
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`
66

7+
- Update monitoring commands documentation
8+
79
## [4.52.0] 2024-08-02
810

911
- **Minimum Node version is now 20**

docs/salesforce-deployment-assistant-error-list.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ You probably also need to add CRM Analytics Admin Permission Set assignment to t
341341
---
342342
## Error parsing file
343343
344-
- `Error (.*) Error parsing file: (.*) `
344+
- `Error (.*) Error parsing file: (.*)`
345345
346346
**Resolution tip**
347347
@@ -1012,7 +1012,7 @@ Please check https://developer.salesforce.com/forums/?id=9060G0000005kVLQAY
10121012
---
10131013
## Test classes with 0% coverage
10141014
1015-
- ` 0%`
1015+
- `0%`
10161016
10171017
**Resolution tip**
10181018

src/commands/hardis/lint/access.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ const messages = Messages.loadMessages("sfdx-hardis", "org");
3333
export default class Access extends SfdxCommand {
3434
public static title = "check permission access";
3535

36-
public static description = "Check if elements(apex class and field) are at least in one permission set";
36+
public static description = `Check if elements(apex class and field) are at least in one permission set
37+
38+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-missing-access/) and can output Grafana, Slack and MsTeams Notifications.
39+
`;
3740

3841
public static examples = [
3942
"$ sfdx hardis:lint:access",

src/commands/hardis/lint/metadatastatus.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ const messages = Messages.loadMessages("sfdx-hardis", "org");
2323
/* jscpd:ignore-end */
2424
export default class metadatastatus extends SfdxCommand {
2525
public static title = "check inactive metadatas";
26-
public static description = "Check if elements(flows) are inactive in the project";
26+
public static description = `Check if elements (flows and validation rules) are inactive in the project
27+
28+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-inactive-metadata/) and can output Grafana, Slack and MsTeams Notifications.
29+
`;
2730
public static examples = ["$ sfdx hardis:lint:metadatastatus"];
2831
/* jscpd:ignore-start */
2932
protected static flagsConfig = {

src/commands/hardis/lint/unusedmetadatas.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ const messages = Messages.loadMessages("sfdx-hardis", "org");
2525
/* jscpd:ignore-end */
2626
export default class UnusedMetadatas extends SfdxCommand {
2727
public static title = "check unused labels and custom permissions";
28-
public static description = "Check if elements (custom labels and custom permissions) are used in the project";
28+
public static description = `Check if elements (custom labels and custom permissions) are used in the project
29+
30+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-metadata/) and can output Grafana, Slack and MsTeams Notifications.
31+
`;
2932
public static examples = ["$ sfdx hardis:lint:unusedmetadatas"];
3033
/* jscpd:ignore-start */
3134
protected static flagsConfig = {

src/commands/hardis/org/diagnose/audittrail.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ monitoringAllowedSectionsActions:
116116
"Some section": [] // Will ignore all actions from such section
117117
"Some other section": ["actionType1","actionType2","actionType3"] // Will ignore only those 3 actions from section "Some other section". Other actions in the same section will be considered as suspect.
118118
\`\`\`
119-
`;
119+
120+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-suspect-audit-trail/) and can output Grafana, Slack and MsTeams Notifications.
121+
`;
120122

121123
public static examples = [
122124
"$ sfdx hardis:org:diagnose:audittrail",

src/commands/hardis/org/diagnose/legacyapi.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ See article below
2929
3030
[![Handle Salesforce API versions Deprecation like a pro](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-deprecated-api.jpg)](https://nicolas.vuillamy.fr/handle-salesforce-api-versions-deprecation-like-a-pro-335065f52238)
3131
32+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-deprecated-api-calls/) and can output Grafana, Slack and MsTeams Notifications.
3233
`;
3334

3435
public static examples = [

src/commands/hardis/org/diagnose/unusedlicenses.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@ Messages.importMessagesDirectory(__dirname);
1818
const messages = Messages.loadMessages("sfdx-hardis", "org");
1919

2020
export default class DiagnoseUnusedLicenses extends SfdxCommand {
21-
public static title = "Detect unused Permission Set Licenses";
21+
public static title = "Detect unused Permission Set Licenses (beta)";
2222

2323
public static description = `When you assign a Permission Set to a user, and that this Permission Set is related to a Permission Set License, a Permission Set License Assignment is automatically created for the user.
2424
25-
But when you unassign this Permission Set from the user, **the Permission Set License Assignment is not deleted**.
25+
But when you unassign this Permission Set from the user, **the Permission Set License Assignment is not deleted**.
2626
27-
This leads that you can be **charged for Permission Set Licenses that are not used** !
27+
This leads that you can be **charged for Permission Set Licenses that are not used** !
2828
29-
This command detects such useless Permission Set Licenses Assignments and suggests to delete them.
29+
This command detects such useless Permission Set Licenses Assignments and suggests to delete them.
3030
31-
Many thanks to [Vincent Finet](https://www.linkedin.com/in/vincentfinet/) for the inspiration during his great speaker session at [French Touch Dreamin '23](https://frenchtouchdreamin.com/), and his kind agreement for reusing such inspiration in this command :)
32-
`;
31+
Many thanks to [Vincent Finet](https://www.linkedin.com/in/vincentfinet/) for the inspiration during his great speaker session at [French Touch Dreamin '23](https://frenchtouchdreamin.com/), and his kind agreement for reusing such inspiration in this command :)
32+
33+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-licenses/) and can output Grafana, Slack and MsTeams Notifications.
34+
`;
3335

3436
public static examples = ["$ sfdx hardis:org:diagnose:unusedlicenses", "$ sfdx hardis:org:diagnose:unusedlicenses --fix"];
3537

src/commands/hardis/org/diagnose/unusedusers.ts

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ licensetypes values are the following:
3333
Note: You can see the full list of available license identifiers in [Salesforce Documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm)
3434
3535
Use --returnactiveusers to revert the command and retrieve active users that has logged in during the period.
36+
37+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-inactive-users/) and can output Grafana, Slack and MsTeams Notifications.
3638
`;
3739

3840
public static examples = [

src/commands/hardis/org/monitor/backup.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ export default class MonitorBackup extends SfdxCommand {
2626
public static title = "Backup DX sources";
2727

2828
public static description = `Retrieve sfdx sources in the context of a monitoring backup
29-
29+
30+
Automatically skips metadatas from installed packages with namespace.
31+
3032
You can remove more metadata types from backup, especially in case you have too many metadatas and that provokes a crash, using:
3133
3234
- Manual update of \`manifest/package-skip-items.xml\` config file (then commit & push in the same branch)
3335
3436
- Environment variable MONITORING_BACKUP_SKIP_METADATA_TYPES (example: \`MONITORING_BACKUP_SKIP_METADATA_TYPES=CustomLabel,StaticResource,Translation\`): that will be applied to all monitoring branches.
37+
38+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-metadata-backup/) and can output Grafana, Slack and MsTeams Notifications.
3539
`;
3640

3741
public static examples = ["$ sfdx hardis:org:monitor:backup"];

src/commands/hardis/org/monitor/limits.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ const messages = Messages.loadMessages("sfdx-hardis", "org");
2020
export default class MonitorBackup extends SfdxCommand {
2121
public static title = "Check org limits";
2222

23-
public static description = `Check limits of a SF org and send related notifications
24-
25-
Used in [sfdx-hardis monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-org-limits/) to send messages to Slack, Teams, Email and Grafana.
23+
public static description = `Check limits of a SF org and send notifications about limits are superior to 50%, 75% or 100%.
2624
25+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-org-limits/) and can output Grafana, Slack and MsTeams Notifications.
2726
`;
2827

2928
public static examples = ["$ sfdx hardis:org:monitor:limits"];

src/commands/hardis/org/test/apex.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ If following configuration is defined, it will fail if apex coverage target is n
2626
- Env \`APEX_TESTS_MIN_COVERAGE_ORG_WIDE\` or \`.sfdx-hardis\` property \`apexTestsMinCoverageOrgWide\`
2727
- Env \`APEX_TESTS_MIN_COVERAGE_ORG_WIDE\` or \`.sfdx-hardis\` property \`apexTestsMinCoverageOrgWide\`
2828
29-
You can override env var SFDX_TEST_WAIT_MINUTES to wait more than 60 minutes
29+
You can override env var SFDX_TEST_WAIT_MINUTES to wait more than 60 minutes.
30+
31+
This command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-apex-tests/) and can output Grafana, Slack and MsTeams Notifications.
3032
`;
3133

3234
public static examples = ["$ sfdx hardis:org:test:apex"];

0 commit comments

Comments
 (0)