Skip to content

Commit

Permalink
fixed asInflux in order to report status changes to db
Browse files Browse the repository at this point in the history
  • Loading branch information
sontags committed Aug 4, 2017
1 parent 271c482 commit 70d9dbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resultset.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ func (rs ResultSet) toPoints(parentTags map[string]string, saveOK []string) []Po
if rs.Err != nil {
fields["err"] = fmt.Sprintf("Error: %s", rs.Err.Error())
}
if rs.WasChecked {
fields["was"] = rs.Was.Int()
fields["changed"] = rs.StatusChanged
}
pt := Point{
Timestamp: rs.At,
Series: rs.Kind,
Expand Down

0 comments on commit 70d9dbc

Please sign in to comment.