Skip to content

Instantly share code, notes, and snippets.

@pulecp
Created January 26, 2015 12:14
Show Gist options
  • Save pulecp/c95d010f0fe349ff5ed0 to your computer and use it in GitHub Desktop.
Save pulecp/c95d010f0fe349ff5ed0 to your computer and use it in GitHub Desktop.
Flapjack::Diner.create_contact_notification_rules(
'0',
{
'regex_tags' => [ '^bacula$', '^job:$' ],
'time_restrictions' => [
{
'start_time' => '2013-01-28 18:00:00',
'end_time' => '2013-01-29 08:00:00',
'rrules' => [
{
'validations' => {
'day' => [ 1, 2, 3, 4, 5 ]
},
'rule_type' => 'Weekly',
'interval' => 1,
'week_start' => 0
}
],
'exrules' => [],
'rtimes' => [],
'extimes' => []
}
],
'unknown_media' => [ 'jabber' ],
'warning_media' => [ 'jabber' ],
'critical_media' => [ 'jabber' ],
'unknown_blackhole' => true,
'warning_blackhole' => true,
'critical_blackhole' => true
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment