Understand methods for applying scorecards
In Compass, you can create scorecards to measure the health of your components based on your unique requirements.
You can choose the method of applying the scorecard when you create a scorecard using the field How should this scorecard be applied?
If you use multiple filters, they will be AND
ed together.
Scorecards in Compass can be applied using one of the following methods:
Component types
説明 | All selected type(s) of components |
---|---|
Supported filters | Any of these component types |
Component label
説明 | Based on label of a component |
---|---|
Supported filters | Equal to this label |
Component tier
This method of applying scorecards is based on component tier, where a component's type and tier match the type and tier that you set when you created the scorecard. These scorecards are not mandatory across the organization, but you can use them for specific components as per your needs.
Use this method to bulk apply scorecards to components of selected type(s) in a more granular way, or apply using tiers that match your team's prioritization or importance of component(s).
Use regular expressions in scorecard criteria
Use regular expressions (regex) in scorecard criteria to set up policies that specific links be added to components.
A scorecard criterion with regex validation compares the links of the particular type on a component with the regex you provide. The criterion is met when at least one link or its display text matches the regex.
例
Suppose you want to set up a policy that every service component has a documentation link to a disaster recovery plan. In that case, you can add a scorecard criterion for the Documentation field with regex as \bdisaster\b.*\brecovery\b
. This criterion passes when two separate words — disaster
and recovery
— case-insensitive, but in that order, are part of a documentation link or its display text.
この内容はお役に立ちましたか?