Kapacitor alerting threshold sensitivity

Hopefully a simple question - is there a way to tune the sensitivity for Kapacitor alerts based on threshold?

Use Case: I’m using Kapacitor to alert us when a container peaks above 80% CPU usage. Problem is this often happens when a container is starting up for the first time, resulting in false positives.

You can try using .stateDuration()