Automations
All questions related to Workflow Automation, AutomationEngine, and EdgeConnect, as well as integrations with various tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable / Disable Workflow Trigger

MarwanC
Advisor

 

I have a workflow that is triggered automatically by incoming ACTIVE/CLOSE Davis Problem, I need an API to disable the entire workflow outside working hours.

Then I want to enable it again during working hours.

This is really a must to avoid extra license cost as this is run in the non production environment.

I searched  the whole Dynatrace documentation but I am not able to find the API

May be someone have come across this and I appreciate any input.

I appreciate your support

Marwan...

3 REPLIES 3

p_devulapalli
DynaMight Leader
DynaMight Leader

@MarwanC From what I understand you would be charge for the workflow from the moment its deployed/published whether the workflow is running or not running . You would not be able to disable/enable a workflow to save cost.

Alternative option is to use a simple workflow if it fits your use case which do not consume workflow hours

https://docs.dynatrace.com/docs/shortlink/simple-workflow

 

Phani Devulapalli

sujit_k_singh
Champion

Hello @MarwanC 

Adding to what @p_devulapalli said — this is worth being precise about, because there are two different things being conflated: the trigger being enabled/disabled vs the workflow being deployed/draft.
On billing: Dynatrace has confirmed in community threads (Solved: Re: DPS Pricing gotchas - workflows storage cost - Community Home) that workflow costs don't differentiate between enabled or disabled workflows — any deployed workflow can be executed at any time, either manually or via API, even if a trigger or schedule is defined, so toggling the trigger via API won't reduce your workflow-hours charge. The kinds of workflows that do avoid workflow-hours are: simple workflows (single-task, restricted functionality) Create a simple workflow in Dynatrace Workflows — Dynatrace Docs

and draft-only workflows (not yet deployed, or un-deployed). Build workflows — Dynatrace Docs

Thanks,

Sujit

Dynatrace Professional Certified

sonja
Dynatrace Champion
Dynatrace Champion

Hi @MarwanC,

Adding the official documentation on how consumption is calculated for draft workflows (and yes, draft workflows don't count toward workflow hours):

https://docs.dynatrace.com/docs/license/capabilities/automation/automation#how-consumption-is-calcul...

Cheers,
Sonja

Featured Posts