gorsuch / go-pagerduty

Go API library for PagerDuty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-pagerduty

PagerDuty API client in Go.

Tested on all Go versions 1.0 and higher.

Getting started

package main

import "fmt"
import "github.com/danryan/go-pagerduty/pagerduty"

func main() {
  subdomain := "PAGERDUTY_SUBDOMAIN"
  apiKey := "PAGERDUTY_API_KEY"
  pd := pagerduty.New(subdomain, apiKey)

  incident := pd.Incidents.Get("ABCDEF")

  fmt.Printf("incident %v: status: %v\n", incident.ID, incident.Status)
}

Resources

Is it any good?

Possibly.

License

This library is distributed under the MIT License, a copy of which can be found in the LICENSE file.

About

Go API library for PagerDuty

License:MIT License


Languages

Language:Go 92.2%Language:Ruby 5.8%Language:Shell 1.9%