Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add duration to alert data #485

Merged
merged 1 commit into from
Apr 22, 2016
Merged

add duration to alert data #485

merged 1 commit into from
Apr 22, 2016

Conversation

nathanielc
Copy link
Contributor

Fixes #388 Adds a duration to the alert data of all triggered alerts.

You can also store this duration by using the .durationField property of an AlertNode in a similar way to the levelField property.

|alert()
    .durationField('duration')
|influxDBOut()
    ....

The data in InfluxDB will now contain a field with the key duration containing and int64 for the duration of the event in nanoseconds.

@nathanielc nathanielc merged commit ba71684 into master Apr 22, 2016
@nathanielc nathanielc deleted the nc-issue#388 branch April 22, 2016 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant