Git Product home page Git Product logo

steampipe-plugin-opsgenie's Introduction

Opsgenie Plugin for Steampipe

Use SQL to query infrastructure including servers, networks, facilities and more from Opsgenie.

Quick start

Install

Download and install the latest Opsgenie plugin:

steampipe plugin install jplanckeel/opsgenie

Configure your credentials and config file.

Configure your account details in ~/.steampipe/config/opsgenie.spc:

connection "steampipe-plugin-opsgenie" {
  plugin  = "jplanckeel/opsgenie"

  # URL to access the API (required).
  # If using the EU instance of Opsgenie, the URL needs to be api.eu.opsgenie.com for requests to be successful.
  #url = "api.opsgenie.com"

  # API token for your opsgenie instance (required).
  # See https://docs.opsgenie.com/docs/api-access-management
  #token = "5c44f27d-8dd5-4939-aa5f-499d8cssf64a"

  # To filter request you can add opsgenie query
  #query = "status: open AND responders: 'My_Team'"
}

Run steampipe:

steampipe query

List teams in your Opsgenie account:

select
   team_id,
   name,
   description 
from
   opsgenie_team;
+--------------------------------------+------------------------------------+--------------------------------------------+
| team_id                              | name                               | description                                |
+--------------------------------------+------------------------------------+--------------------------------------------+
| 8cfdd4da-73e9-4526-be90-02111f2f2f1f | Infra_Team                         | Infrastructure Team                        |
| 555d4f34-46d5-41b6-88bd-12df8z1f7104 | Dev_Team                           | Developper Team                            |
+--------------------------------------+------------------------------------+--------------------------------------------+

Developing

Prerequisites:

Clone:

git clone https://github.com/jplanckeel/steampipe-plugin-opsgenie.git
cd steampipe-plugin-opsgenie

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

make

Configure the plugin:

cp config/* ~/.steampipe/config
vi ~/.steampipe/config/opsgenie.spc

Try it!

steampipe query
> .inspect opsgenie

Further reading:

Contributing

Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.

help wanted issues:

steampipe-plugin-opsgenie's People

Contributors

jplanckeel avatar dependabot[bot] avatar khushboo9024 avatar

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.