|
**Evaluate Definition For**
|
Dictates the scope of records that are scanned in real-time:- **All Matching Records**: Scans all applicable records in real-time.
- **New Records Only**: Scans only new, applicable records in real-time.
|
|
**SN Instance To Run On**
|
Sets the SN instance that the definition will apply to.- Run on all non-production instances
- Run on specified instances
- Run on production instances only
**Note:** **Run on Specified Instances** activates the **Specific SN Instances to Run On** field.
|
|
**Specific SN Instances to Run On**
|
- Sets which specific ServiceNow instances the definition applies to.
- For this setting to display, the follow must be true:
- **Enable Instance Specific Definitions** must be enabled in the Scan Engine properties.
- The My SN Instances table must contain at least one instance.
**Note:** Only instances defined in the My SN Instances table can be selected here.
|
|
**Type of Rule \(Mandatory\)**
|
Sets the definition’s rule type:- Fails if script includes text
- Fails if script excludes text
- Fail if XML includes text
- Fail if XML excludes text
- Fail if conditions match
- Custom
|
|
**Scan Finding Limit**
|
- The maximum number of findings that can be generated for each definition during a scan.
- The limit is applied per applicable table. Forr example, if the limit is set to 100, a maximum of 100 findings will be generated for each applicable table.
- Prevents excessive or redundant findings and optimizes scan performance.
|
|
**Propose Fix**
|
- Allows a definition to be defined such that it enables the ability to automatically apply recommended changes to objects in your ServiceNow instance.
- When selected, the **Proposed Fix Script** field displays.
**Note:** This functionality is available in either the Impact Total package or the Platform Health add-on. See [Impact packages](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/impact/impact-packages.md) for entitlement information.
|
|
**Propose Fix Script**
|
- Provides a script field for creating a custom function which is used to show users an auto-corrected version of the record they are viewing.
- This field is only visible if **Propose Fix** is enabled.
|
|
**Search Type \(Mandatory\)**
|
- **Regex**: Search by regular expression.
- **Text**: Search for text.
- **Custom**: A custom search type using JavaScript.
- This field is only visible if **Type of Rule** is one of the following:
- Fails if script includes text
- Fails if script excludes text
- Fail if XML includes text
- Fail if XML excludes text
|
|
**Custom Rule Variable**
|
- Enables the Parameter 1 value string entry field.
- This field is only visible if **Type of Rule** is set to **Custom**.
|
|
**Parameter 1 Value**
|
Set a default value here if you want to allow users to change the value of a parameter without modifying a custom script.**Note:** This field is only visible if **Custom Rule** is **Enabled**.
|
|
**Parameter 1 Description**
|
A description of what the Parameter 1 Value is used for.**Note:** This field is only visible if **Type of Rule** is set to **Custom**.
|
|
**Delta Scans Not Applicable**
|
This definition will always scan as a full scan, not a delta scan, for all scan types. This means it will scan all records for findings, not just records updated since the previous scan.
|
|
**Return One Finding For The Entire Table**
|
- If the definition applies to the entire table and not to specific records, Scan Engine returns one finding record for the table instead of a finding for each record.
- When possible, the scanned table and scanned record are populated in the finding. If this isn’t possible, the scanned record value will be empty.
**Note:** If enabled, this definition will not scan in real-time.
|
|
**Search Pattern**
|
Lets users enter a regular expression to search for findings in Scripts and XML type fields. This field is only available if **Type of Rule** is set to one of the following:
- Fail if script includes text
- Fail if script excludes text
- Fail if XML includes text
- Fail if XML excludes text
In addition, **Search Type** must be set to **Regex**.
|
|
**Search Function**
|
Lets users enter a custom function to search for findings in Scripts and XML type fields. This field is only available if **Type of Rule** is set to one of the following:
- Fail if script includes text
- Fail if script excludes text
- Fail if XML includes text
- Fail if XML excludes text.
In addition, **Search Type** must be set to **Custom**.
|
|
**Search Text**
|
Enables a field for users to search for text in scripts and XML fields. Enter one or more comma-separated text values.This field is only available if **Type of Rule** is set to one of the following:
- Fail if script includes text
- Fail if script excludes text
- Fail if XML includes text
- Fail if XML excludes text
In addition, **Search Type** must be set to **Text \(comma separated\)**.
|
|
**Custom Function \(Mandatory\)**
|
- Provides a script field to create a custom function for identifying findings.
- This field is only visible if **Type of Rule** is set to **Custom**.
|