rgeniesse / sensu-pushbullet-handler Goto Github PK
View Code? Open in Web Editor NEWA Sensu handler plugin for sending notifications via Pushbullet
License: MIT License
A Sensu handler plugin for sending notifications via Pushbullet
License: MIT License
Currently, the handler will send a message to Pushbullet, then Pushbullet will send it to the current [0]
device only.
Error:
panic: The param 'device_iden' has an invalid value.
goroutine 1 [running]:
main.notifyPushbullet(0xc0001426c0, 0x0, 0x0)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/main.go:95 +0x329
main.run(0xc00017b680, 0xc0000bd500, 0x0, 0x2, 0x0, 0x0)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/main.go:80 +0x2a0
sensu-pushbullet-handler/vendor/github.com/spf13/cobra.(*Command).execute(0xc00017b680, 0xc0000b4190, 0x2, 0x2, 0xc00017b680, 0xc0000b4190)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/vendor/github.com/spf13/cobra/command.go:762 +0x473
sensu-pushbullet-handler/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc00017b680, 0x47, 0xc00017b680, 0xc0001c4300)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
sensu-pushbullet-handler/vendor/github.com/spf13/cobra.(*Command).Execute(0xc00017b680, 0x105ea4d, 0xc000189f88)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/vendor/github.com/spf13/cobra/command.go:800 +0x2b
main.main()
/Users/rgeniesse/go/src/sensu-pushbullet-handler/main.go:24 +0x2b
Newest release was done without QA against Sensu Go, rather only against the command line.
Currently, you can only send to a single device or all devices.
Update single device flag to accept just one device or multiple devices.
Rough spec/Pseudocode:
Error:
panic: Device not found
goroutine 1 [running]:
main.notifyPushbulletOne(0xc00013a6c0, 0x0, 0x0)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/main.go:142 +0x284
main.run(0xc000173680, 0xc0000c3e00, 0x0, 0x4, 0x0, 0x0)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/main.go:96 +0x289
sensu-pushbullet-handler/vendor/github.com/spf13/cobra.(*Command).execute(0xc000173680, 0xc0000ca010, 0x4, 0x4, 0xc000173680, 0xc0000ca010)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/vendor/github.com/spf13/cobra/command.go:762 +0x473
sensu-pushbullet-handler/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc000173680, 0x23, 0xc000173680, 0xc0001ba300)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
sensu-pushbullet-handler/vendor/github.com/spf13/cobra.(*Command).Execute(0xc000173680, 0x0, 0x177b381)
/Users/rgeniesse/go/src/sensu-pushbullet-handler/vendor/github.com/spf13/cobra/command.go:800 +0x2b
main.main()
/Users/rgeniesse/go/src/sensu-pushbullet-handler/main.go:24 +0x2b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.