Giter VIP home page Giter VIP logo

opsgenie-alert-tagging's Introduction

Opsgenie Alert Tagging

Opsgenie Alert Tagging updates Opgenies alerts with their relevant tags based on the time and date each alert was created at.

This was a manual process which required a human to type in relevant tags within the UI of each alert. This has been created to automate this process. Future iterations of this will ensure that the program will run daily via a Github action.

Getting started

clone the repo:

$ git clone [email protected]:dxw/opsgenie-alert-tagging.git

run

$ bundle install

run tests with

$ bundle exec rspec

Environment Variables

Ensure the follwoing required environment variables are set in a .env file:

  • OPSGENIE_API_KEY: Osgenie API key. DevOps to generate this for you (needs admin access)

Documentation

Opsgenie API Documentation is found here https://docs.opsgenie.com/docs/alert-api

GOVUK bank holiday API Documentation is found here https://www.api.gov.uk/gds/bank-holidays/#bank-holidays

Running

To tag alerts for a specific date, run:

$ bundle exec rake opsgenie_alert_tagging:add_tags[<date>]

Where <date> is the date string in the format 2021-10-10.

By running the command without a date, this will default to yesterday's date

$ bundle exec rake opsgenie_alert_tagging:add_tags

View the updated alert with it's tags in the UI

opsgenie-alert-tagging's People

Contributors

beelorna avatar cristinaro avatar dependabot[bot] avatar renovate[bot] avatar rjw1 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opsgenie-alert-tagging's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bundler
Gemfile
  • ruby ~> 3.3.0
  • httparty undefined
  • csv undefined
  • dotenv undefined
  • pry undefined
  • rspec undefined
  • standardrb undefined
  • webmock undefined
  • rake undefined
  • opsgenie-schedule "~> 0.1.4"
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • ruby/setup-ruby v1
ruby-version
.ruby-version
  • ruby 3.3.0

  • Check this box to trigger a request for Renovate to run again on this repository

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.