- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
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, an If condition action determines the next step in the workflow based on whether the status code of a previous HTTP request action returns 200
.
Use the Switch statement action to handle multiple branching paths in a single step. Specify a switch expression and compare it against one or more case values. If no case matches, a default branch runs instead. In the example below, a Switch statement routes the workflow based on whether the status code from a previous HTTP request is 200
, 403
, 404
, 500
, or another value.
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.
추가 유용한 문서, 링크 및 기사:
Do you have questions or feedback? Join the #workflows channel on the Datadog Community Slack.