Comments (8)
Sure, I'm trying.
I have some questions:
- event_type is assigned but not used
- Do you have any plan to use
event_type
?
- Do you have any plan to use
- incident is assigned but not used
- Do you have any plan to use
incident
?
- Do you have any plan to use
- Do you want to replace PlaceholderExpander with built-in
extract_placeholders
?- I want to use built-in methods to reduce code
I found that we cannot start incident_key/description with [
(left square bracket) and {
(left wave bracket). So we need updating example in README.
from fluent-plugin-pagerduty.
Hmm, we cannot use built-in extract_placeholders
in non-buffered output plugin, for now.
from fluent-plugin-pagerduty.
Hi @okkez
Thank you for your quick action!
I'll confirm event_type and incident tomorrow.
And, built-in extract_placeholders is better. And also It needs to be buffered plugin.
In the case of changing buffered plugin, Please set flush_interval: 0
like following
https://github.com/y-ken/fluent-plugin-geoip/blob/master/lib/fluent/plugin/out_geoip.rb
from fluent-plugin-pagerduty.
@y-ken Any progress?
from fluent-plugin-pagerduty.
Hi @okkez
I'm sorry for my read pager duty api again delayed.
These are unused and useless variables.
event_type
is useless. it can erase the line 46. And It kicks only trigger mode with description. So, It need check only @description.nil? condition at Line 23incident
does not need to assign return value.
from fluent-plugin-pagerduty.
Thank you for reading code and I've updated #5.
I have additional questions.
Does this plugin support event_type
parameter "acknowledge" and "resolve"?
It seems that this plugin does not support those event types.
Because we don't call APIs for those event types in this plugin.
Do you want to support all event types by this plugin?
I think that we don't need to support all event types in this plugin for now. Because we cannot acknowledge and resolve the triggered events automatically without defining rules to acknowledge or resolve.
from fluent-plugin-pagerduty.
Yes exactly. We don't need to support all event types for now. #5 seems fine. Great!
Do you think is it better to introduce error handling in the case of coming "acknowledge" and "resolve"?
from fluent-plugin-pagerduty.
How about following? Drop both "acknowledge" and "resolve" for now .
# TODO support :acknowledge, :resolve
config_param :event_type, :enum, list: [:trigger], default: :trigger
from fluent-plugin-pagerduty.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-plugin-pagerduty.