![]() |
VOOZH | about |
Custom rules allow you to codify your organizations’ expectations about your software components, teams, and more. You decide the evaluation criteria, frequency, and data input. You can create custom rules through the Scorecards API or through Datadog Workflow Automation. If you are not familiar with the Workflow Automation product, you can start building your first custom Scorecards rule with AI.
To add and evaluate custom rules using the Scorecards API:
/scorecard/rules.pass, fail, or skip for each {rule, entity} tuple that you are evaluating to /scorecard/outcomes/batch.After initial setup, rules can also be enabled or disabled through the API.
To evaluate and add custom rules in the Scorecards UI:
pass, fail, or skip and add an optional remark describing the reason for the outcome.Workflow Automation allows you to automate the evaluation of your custom rules in Datadog using the Update scorecard rule outcome action.
When you create a custom rule, you can evaluate it using one of the following options:
After creating your custom rule, choose the Add Workflow option when prompted to configure its evaluation criteria. From there, you can create a workflow from scratch or use a blueprint.
After the workflow is created, it is automatically linked to the Scorecard rule. Click the link to open the workflow, make changes, and view details such as the owner, run history, and last modified date.
All Workflows created from the Scorecards page or from a Scorecards blueprint are automatically tagged with source: scorecards for searching and filtering.
Note: Clicking the red unlink button on a Scorecard rule removes the workflow from the rule but does not automatically unpublish the workflow. To prevent evaluations from running, you should also unpublish any unlinked workflows.
After creating your custom rule, choose the Add Workflow option to configure its evaluation criteria. Search for and select an existing workflow to link to the rule.
You can also link an existing workflow to any custom rule that already generates outcomes:
Additional helpful documentation, links, and articles:
| |