Skip to content

Commit

Permalink
Update readme and spec for triggers in Zabbix 3.2 including new event…
Browse files Browse the repository at this point in the history
… tags
  • Loading branch information
jrbeilke committed Oct 24, 2016
1 parent 4f2c83d commit cf85256
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,17 @@ zbx.triggers.create(
:priority => 5,
:status => 0,
:templateid => 0,
:type => 0
:type => 0,
:tags => [
{
:tag => "process",
:value => "aaa"
},
{
:tag => "error",
:value => ""
}
]
)
```

Expand Down
28 changes: 24 additions & 4 deletions spec/trigger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,18 @@
:expression => "{#{@template}:#{@proc}.last(0)}<1",
:comments => "Bla-bla is faulty (disaster)",
:priority => 5,
:status => 0,
:type => 0
:status => 0,
:type => 0,
:tags => [
{
:tag => "proc",
:value => "#{@proc}"
},
{
:tag => "error",
:value => ""
}
]
)
expect(triggerid).to be_kind_of(Integer)
end
Expand All @@ -54,8 +64,18 @@
:expression => "{#{@template}:#{@proc}.last(0)}<1",
:comments => "Bla-bla is faulty (disaster)",
:priority => 5,
:status => 0,
:type => 0
:status => 0,
:type => 0,
:tags => [
{
:tag => "proc",
:value => "#{@proc}"
},
{
:tag => "error",
:value => ""
}
]
)
end

Expand Down

0 comments on commit cf85256

Please sign in to comment.