Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CRUD handlers for user notification rules + remove custom actions endpoint handlers #19

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @grafana/grafana-oncall-backend
joeyorlando marked this conversation as resolved.
Show resolved Hide resolved
28 changes: 14 additions & 14 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ type Client struct {
limiter *rate.Limiter
UserAgent string
// List of Services. Keep in sync with func newClient
Alerts *AlertService
Integrations *IntegrationService
EscalationChains *EscalationChainService
Escalations *EscalationService
Users *UserService
Schedules *ScheduleService
Routes *RouteService
SlackChannels *SlackChannelService
UserGroups *UserGroupService
CustomActions *CustomActionService
OnCallShifts *OnCallShiftService
Teams *TeamService
Webhooks *WebhookService
Alerts *AlertService
Integrations *IntegrationService
EscalationChains *EscalationChainService
Escalations *EscalationService
Users *UserService
Schedules *ScheduleService
Routes *RouteService
SlackChannels *SlackChannelService
UserGroups *UserGroupService
OnCallShifts *OnCallShiftService
Teams *TeamService
Webhooks *WebhookService
UserNotificationRules *UserNotificationRuleService
}

func New(base_url, token string) (*Client, error) {
Expand Down Expand Up @@ -108,10 +108,10 @@ func newClient(url string) (*Client, error) {
c.Routes = NewRouteService(c)
c.SlackChannels = NewSlackChannelService(c)
c.UserGroups = NewUserGroupService(c)
c.CustomActions = NewCustomActionService(c)
c.OnCallShifts = NewOnCallShiftService(c)
c.Teams = NewTeamService(c)
c.Webhooks = NewWebhookService(c)
c.UserNotificationRules = NewUserNotificationRuleService(c)

return c, nil
}
Expand Down
170 changes: 0 additions & 170 deletions custom_action.go

This file was deleted.

119 changes: 0 additions & 119 deletions custom_action_test.go

This file was deleted.

Loading