- 필수 기능
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- 디지털 경험
- 소프트웨어 제공
- 보안
- 로그 관리
- 관리
- 인프라스트럭처
- ci
- containers
- csm
- ndm
- otel_guides
- overview
- slos
- synthetics
- tests
- 워크플로
Use Logic actions to add control logic to your workflow. For example, you can branch from a condition, perform an action iteratively, include a sleep interval, and more.
You can branch the execution path of your workflow based on the evaluation of one or more statements that you define. In the screenshot below, a Branch workflow from condition action determines the next step in the workflow based on whether the status code of a previous HTTP request action returns 200
.
The Sleep action pauses the execution of the workflow for a specified duration. Select a predefined duration from the Duration drop-down, or enter a custom variable in seconds.
The For loop action allows you to execute a set of actions iteratively for each item in a given input list. For loops accept an input list of up to 2000 items. You can perform many different operations within a for loop, including configuring error paths for individual iterations that fail.
In the example below, a for loop iterates over a list of incidents and sends a Slack message for any incident that is more than a week old.
To add a for loop to your workflow:
{{Current.Value}}
variable. To access the index of the current value, use {{Current.Index}}
.When a run completes, the workflow enters Debug mode. Select a step within the loop to see a list of All, Failed, or Successful iterations for that step. Select an iteration to see the output or the error message.
Additional helpful documentation, links, and articles:
Do you have questions or feedback? Join the #workflows channel on the Datadog Community Slack.