# Have Kapacitor ONLY send critical alerts?

**URL:** <https://community.influxdata.com/t/have-kapacitor-only-send-critical-alerts/2427>\
**Category:** Kapacitor\
**Tags:** kapacitor\
**Created:** [September 21, 2017, 8:56pm UTC](https://community.influxdata.com/t/have-kapacitor-only-send-critical-alerts/2427 "2017-09-21T20:56:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![star\_lord](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/star_lord/32/469_2.png) [@star\_lord](https://community.influxdata.com/u/star_lord)\
**Post date:** [September 21, 2017, 8:56pm UTC](https://community.influxdata.com/t/have-kapacitor-only-send-critical-alerts/2427/1 "2017-09-21T20:56:57Z")

</div>

Essentially, I would like Kapacitor to ONLY send alerts when the critical value defined in my lambda function exceeded.  
I DO NOT want to get alerts that have the status of “OK”.  
My expectation of the tick script was that it would ONLY alert when the critical value was exceeded. However, that is not the case. I receive “OK” alerts with values less than what is defined in the lambda function.  
I have looked at the `StateChangesOnly` method. However, I would like to receive **all** “CRITICAL” alerts not just going from “OK” to “CRITICAL”.  
Here is my TICKScript:

```auto
    stream
        |from() 
            .measurement('some_metric')
            .where(lambda: "client_key" == 'some_unique_key' AND "host" == 'some_host_name')
        |alert()        
             .crit(lambda: "value" > 11)        
             .log('/tmp/some_auto_alert.log')
             .post('http://example.com/some/endpoint')

```
