Git Product home page Git Product logo

Comments (8)

okkez avatar okkez commented on June 11, 2024

Sure, I'm trying.
I have some questions:

  • event_type is assigned but not used
    • Do you have any plan to use event_type?
  • incident is assigned but not used
    • Do you have any plan to use incident?
  • 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.

okkez avatar okkez commented on June 11, 2024

Hmm, we cannot use built-in extract_placeholders in non-buffered output plugin, for now.

from fluent-plugin-pagerduty.

y-ken avatar y-ken commented on June 11, 2024

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.

okkez avatar okkez commented on June 11, 2024

@y-ken Any progress?

from fluent-plugin-pagerduty.

y-ken avatar y-ken commented on June 11, 2024

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 23
  • incident does not need to assign return value.

from fluent-plugin-pagerduty.

okkez avatar okkez commented on June 11, 2024

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.

y-ken avatar y-ken commented on June 11, 2024

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.

okkez avatar okkez commented on June 11, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.