Skip to content

Commit

Permalink
Add example in package documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcw committed Mar 30, 2013
1 parent 7f7314f commit 2e27320
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions pagerduty.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
// Package pagerduty is a client to the Pager Duty Integration API
// described here: http://developer.pagerduty.com/documentation/integration/events
/*
Package pagerduty is a client to the Pager Duty Integration API.
The API is described here: http://developer.pagerduty.com/documentation/integration/events
// Create a new "trigger" event
event := pagerduty.NewTriggerEvent(myKey, "test API")
// Customize the incident key. If not done, pager duty will assign one to you.
event.IncidentKey = "My Incident Key"
// Submit the event to pager duty's API
response, statusCode, err := pagerduty.Submit(event)
*/
package pagerduty

import (
Expand Down

0 comments on commit 2e27320

Please sign in to comment.