cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to execute workflow (having SRG task) using DT API

heramb_sawant
Organizer

Hi Team
I have built one workflow , having Task 1 - run_validation which runs SRG.

When I am planning to run this workflow using DT API   /automation/v1/workflows/

Can somebody please help me to know How to pass SRG custom timeframe  timeframe( time window for SRG validation)  as a input time in DT API request body?

 

Regards,
Heramb Sawant

2 REPLIES 2

heramb_sawant
Organizer

Please help me on this

JohannesBraeuer
Dynatrace Helper
Dynatrace Helper

Hello Heramb, 

I would like to propose solving this by sending an event (BIZ_EVENT), which then acts as a trigger for your workflow. 
In Workflows: 
1. Set the trigger of your workflow to be an Event trigger
2. Configure a filter to act on those events that should trigger the workflow

Instead of calling the API, compile a JSON payload as explained here and set it to the endpoint: /platform/classic/environment-api/v2/bizevents/ingest

The event payload then provides the timeframe to validate. 

Regards,
Johannes


Best Regards,

Johannes

Featured Posts