Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=Network fabric for containers
Documentation=https://github.com/coreos/flannel
Before=docker.service
After=network-online.target
[Service]
Type=notify
Restart=always
RestartSec=5
$:.unshift File.join(File.dirname(__FILE__),'..','lib')
require 'net/https'
require 'json'
require 'open-uri'
module APIG
SEVERITY_TO_STATUS = {
1 => {'status' => 'critical', 'message' => 'Severity 1 issue. Look into it asap!'},
2 => {'status' => 'warning', 'message' => 'Severity 2 issue.'},
3 => {'status' => 'warning', 'message' => 'Severity 3 issue.'}
$:.unshift File.join(File.dirname(__FILE__),'..','lib')
require 'Dashing/Jenkins'
require 'rubygems'
require 'net/https'
require 'json'
require 'open-uri'
module APIG
SEVERITY_TO_STATUS = {
1 => {'status' => 'critical', 'message' => 'Severity 1 issue. Look into it asap!'},