Skip to content

Commit

Permalink
chore(events): add events api
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien4218 committed Nov 13, 2023
1 parent 9b92895 commit 4f7ae8f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions newrelic/events_service.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package newrelic

import (
"context"
)

type EventsAPI interface {
CreateEvent(accountID int, event interface{}) error
CreateEventWithContext(ctx context.Context, accountID int, event interface{}) error
}

func NewEventsService(client *NewRelic) EventsAPI {
return &client.Events
}

0 comments on commit 4f7ae8f

Please sign in to comment.