Skip to content

Commit

Permalink
Merge pull request #52 from heimweh/master
Browse files Browse the repository at this point in the history
Schedule restriction - Add support for start_day_of_week
  • Loading branch information
evan2645 authored Dec 16, 2016
2 parents f4d5289 + bf56a9a commit b98d93d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ package pagerduty

import (
"fmt"
"github.com/google/go-querystring/query"
"net/http"

"github.com/google/go-querystring/query"
)

// Restriction limits on-call responsibility for a layer to certain times of the day or week.
type Restriction struct {
Type string `json:"type,omitempty"`
StartTimeOfDay string `json:"start_time_of_day,omitempty"`
StartDayOfWeek uint `json:"start_day_of_week,omitempty"`
DurationSeconds uint `json:"duration_seconds,omitempty"`
}

Expand Down

0 comments on commit b98d93d

Please sign in to comment.