Documentation ¶
Index ¶
- type Alert
- func (a *Alert) AlertID(ctx context.Context, raw *alert.Alert) (int, error)
- func (a *Alert) ID(ctx context.Context, raw *alert.Alert) (string, error)
- func (a *Alert) RecentEvents(ctx context.Context, obj *alert.Alert, opts *graphql2.AlertRecentEventsOptions) (*graphql2.AlertLogEntryConnection, error)
- func (a *Alert) Service(ctx context.Context, raw *alert.Alert) (*service.Service, error)
- func (a *Alert) State(ctx context.Context, raw *alert.Alert) (*alert.State, error)
- func (a *Alert) Status(ctx context.Context, raw *alert.Alert) (graphql2.AlertStatus, error)
- type AlertLogEntry
- type App
- func (a *App) Alert() graphql2.AlertResolver
- func (a *App) AlertLogEntry() graphql2.AlertLogEntryResolver
- func (a *App) EscalationPolicy() graphql2.EscalationPolicyResolver
- func (a *App) EscalationPolicyStep() graphql2.EscalationPolicyStepResolver
- func (app *App) FindOneAlert(ctx context.Context, id int) (*alert.Alert, error)
- func (app *App) FindOneAlertState(ctx context.Context, alertID int) (*alert.State, error)
- func (app *App) FindOneCM(ctx context.Context, id string) (*contactmethod.ContactMethod, error)
- func (app *App) FindOneHeartbeatMonitor(ctx context.Context, id string) (*heartbeat.Monitor, error)
- func (app *App) FindOnePolicy(ctx context.Context, id string) (*escalation.Policy, error)
- func (app *App) FindOneRotation(ctx context.Context, id string) (*rotation.Rotation, error)
- func (app *App) FindOneSchedule(ctx context.Context, id string) (*schedule.Schedule, error)
- func (app *App) FindOneService(ctx context.Context, id string) (*service.Service, error)
- func (app *App) FindOneUser(ctx context.Context, id string) (*user.User, error)
- func (a *App) Handler() http.Handler
- func (a *App) HeartbeatMonitor() graphql2.HeartbeatMonitorResolver
- func (a *App) IntegrationKey() graphql2.IntegrationKeyResolver
- func (a *App) Mutation() graphql2.MutationResolver
- func (a *App) OnCallShift() graphql2.OnCallShiftResolver
- func (a *App) PlayHandler() http.Handler
- func (a *App) Query() graphql2.QueryResolver
- func (a *App) Rotation() graphql2.RotationResolver
- func (a *App) Schedule() graphql2.ScheduleResolver
- func (a *App) ScheduleRule() graphql2.ScheduleRuleResolver
- func (a *App) Service() graphql2.ServiceResolver
- func (a *App) Target() graphql2.TargetResolver
- func (a *App) User() graphql2.UserResolver
- func (a *App) UserContactMethod() graphql2.UserContactMethodResolver
- func (a *App) UserNotificationRule() graphql2.UserNotificationRuleResolver
- func (a *App) UserOverride() graphql2.UserOverrideResolver
- type ContactMethod
- type EscalationPolicy
- type EscalationPolicyStep
- type HeartbeatMonitor
- type IntegrationKey
- type Mutation
- func (a *Mutation) AddAuthSubject(ctx context.Context, input user.AuthSubject) (bool, error)
- func (m *Mutation) CreateAlert(ctx context.Context, input graphql2.CreateAlertInput) (*alert.Alert, error)
- func (m *Mutation) CreateEscalationPolicy(ctx context.Context, input graphql2.CreateEscalationPolicyInput) (pol *escalation.Policy, err error)
- func (m *Mutation) CreateEscalationPolicyStep(ctx context.Context, input graphql2.CreateEscalationPolicyStepInput) (step *escalation.Step, err error)
- func (m *Mutation) CreateHeartbeatMonitor(ctx context.Context, input graphql2.CreateHeartbeatMonitorInput) (*heartbeat.Monitor, error)
- func (m *Mutation) CreateIntegrationKey(ctx context.Context, input graphql2.CreateIntegrationKeyInput) (key *integrationkey.IntegrationKey, err error)
- func (m *Mutation) CreateRotation(ctx context.Context, input graphql2.CreateRotationInput) (result *rotation.Rotation, err error)
- func (m *Mutation) CreateSchedule(ctx context.Context, input graphql2.CreateScheduleInput) (sched *schedule.Schedule, err error)
- func (m *Mutation) CreateService(ctx context.Context, input graphql2.CreateServiceInput) (result *service.Service, err error)
- func (m *Mutation) CreateUserContactMethod(ctx context.Context, input graphql2.CreateUserContactMethodInput) (*contactmethod.ContactMethod, error)
- func (m *Mutation) CreateUserNotificationRule(ctx context.Context, input graphql2.CreateUserNotificationRuleInput) (*notificationrule.NotificationRule, error)
- func (m *Mutation) CreateUserOverride(ctx context.Context, input graphql2.CreateUserOverrideInput) (*override.UserOverride, error)
- func (a *Mutation) DeleteAll(ctx context.Context, input []assignment.RawTarget) (bool, error)
- func (a *Mutation) DeleteAuthSubject(ctx context.Context, input user.AuthSubject) (bool, error)
- func (a *Mutation) DeleteUser(ctx context.Context, id string) (bool, error)
- func (m *Mutation) EscalateAlerts(ctx context.Context, ids []int) ([]alert.Alert, error)
- func (m *Mutation) SendContactMethodVerification(ctx context.Context, input graphql2.SendContactMethodVerificationInput) (bool, error)
- func (m *Mutation) SetConfig(ctx context.Context, input []graphql2.ConfigValueInput) (bool, error)
- func (a *Mutation) SetFavorite(ctx context.Context, input graphql2.SetFavoriteInput) (bool, error)
- func (m *Mutation) SetLabel(ctx context.Context, input graphql2.SetLabelInput) (bool, error)
- func (a *Mutation) TestContactMethod(ctx context.Context, id string) (bool, error)
- func (m *Mutation) UpdateAlerts(ctx context.Context, args graphql2.UpdateAlertsInput) ([]alert.Alert, error)
- func (m *Mutation) UpdateEscalationPolicy(ctx context.Context, input graphql2.UpdateEscalationPolicyInput) (bool, error)
- func (m *Mutation) UpdateEscalationPolicyStep(ctx context.Context, input graphql2.UpdateEscalationPolicyStepInput) (bool, error)
- func (m *Mutation) UpdateHeartbeatMonitor(ctx context.Context, input graphql2.UpdateHeartbeatMonitorInput) (bool, error)
- func (m *Mutation) UpdateRotation(ctx context.Context, input graphql2.UpdateRotationInput) (res bool, err error)
- func (m *Mutation) UpdateSchedule(ctx context.Context, input graphql2.UpdateScheduleInput) (ok bool, err error)
- func (m *Mutation) UpdateScheduleTarget(ctx context.Context, input graphql2.ScheduleTargetInput) (bool, error)
- func (a *Mutation) UpdateService(ctx context.Context, input graphql2.UpdateServiceInput) (bool, error)
- func (a *Mutation) UpdateUser(ctx context.Context, input graphql2.UpdateUserInput) (bool, error)
- func (m *Mutation) UpdateUserContactMethod(ctx context.Context, input graphql2.UpdateUserContactMethodInput) (bool, error)
- func (m *Mutation) UpdateUserOverride(ctx context.Context, input graphql2.UpdateUserOverrideInput) (bool, error)
- func (m *Mutation) VerifyContactMethod(ctx context.Context, input graphql2.VerifyContactMethodInput) (bool, error)
- type OnCallShift
- type Query
- func (q *Query) Alert(ctx context.Context, alertID int) (*alert.Alert, error)
- func (q *Query) Alerts(ctx context.Context, opts *graphql2.AlertSearchOptions) (conn *graphql2.AlertConnection, err error)
- func (a *Query) AuthSubjectsForProvider(ctx context.Context, _first *int, _after *string, providerID string) (conn *graphql2.AuthSubjectConnection, err error)
- func (q *Query) Config(ctx context.Context, all *bool) ([]graphql2.ConfigValue, error)
- func (q *Query) EscalationPolicies(ctx context.Context, opts *graphql2.EscalationPolicySearchOptions) (conn *graphql2.EscalationPolicyConnection, err error)
- func (q *Query) EscalationPolicy(ctx context.Context, id string) (*escalation.Policy, error)
- func (q *Query) HeartbeatMonitor(ctx context.Context, id string) (*heartbeat.Monitor, error)
- func (q *Query) IntegrationKey(ctx context.Context, id string) (*integrationkey.IntegrationKey, error)
- func (q *Query) Labels(ctx context.Context, input *graphql2.LabelSearchOptions) (conn *graphql2.LabelConnection, err error)
- func (q *Query) Rotation(ctx context.Context, id string) (*rotation.Rotation, error)
- func (q *Query) Rotations(ctx context.Context, opts *graphql2.RotationSearchOptions) (conn *graphql2.RotationConnection, err error)
- func (q *Query) Schedule(ctx context.Context, id string) (*schedule.Schedule, error)
- func (q *Query) Schedules(ctx context.Context, opts *graphql2.ScheduleSearchOptions) (conn *graphql2.ScheduleConnection, err error)
- func (q *Query) Service(ctx context.Context, id string) (*service.Service, error)
- func (q *Query) Services(ctx context.Context, opts *graphql2.ServiceSearchOptions) (conn *graphql2.ServiceConnection, err error)
- func (q *Query) SlackChannel(ctx context.Context, id string) (*slack.Channel, error)
- func (q *Query) SlackChannels(ctx context.Context, input *graphql2.SlackChannelSearchOptions) (conn *graphql2.SlackChannelConnection, err error)
- func (q *Query) TimeZones(ctx context.Context, input *graphql2.TimeZoneSearchOptions) (conn *graphql2.TimeZoneConnection, err error)
- func (a *Query) User(ctx context.Context, id *string) (*user.User, error)
- func (q *Query) UserContactMethod(ctx context.Context, id string) (*contactmethod.ContactMethod, error)
- func (q *Query) UserOverride(ctx context.Context, id string) (*override.UserOverride, error)
- func (q *Query) UserOverrides(ctx context.Context, input *graphql2.UserOverrideSearchOptions) (conn *graphql2.UserOverrideConnection, err error)
- func (q *Query) Users(ctx context.Context, opts *graphql2.UserSearchOptions, first *int, ...) (conn *graphql2.UserConnection, err error)
- type Rotation
- func (r *Rotation) ActiveUserIndex(ctx context.Context, obj *rotation.Rotation) (int, error)
- func (r *Rotation) IsFavorite(ctx context.Context, rot *rotation.Rotation) (bool, error)
- func (r *Rotation) NextHandoffTimes(ctx context.Context, rot *rotation.Rotation, num *int) ([]time.Time, error)
- func (r *Rotation) TimeZone(ctx context.Context, rot *rotation.Rotation) (string, error)
- func (r *Rotation) UserIDs(ctx context.Context, rot *rotation.Rotation) ([]string, error)
- func (r *Rotation) Users(ctx context.Context, rot *rotation.Rotation) ([]user.User, error)
- type Schedule
- func (s *Schedule) AssignedTo(ctx context.Context, raw *schedule.Schedule) ([]assignment.RawTarget, error)
- func (s *Schedule) IsFavorite(ctx context.Context, raw *schedule.Schedule) (bool, error)
- func (s *Schedule) Shifts(ctx context.Context, raw *schedule.Schedule, start, end time.Time) ([]oncall.Shift, error)
- func (s *Schedule) Target(ctx context.Context, raw *schedule.Schedule, input assignment.RawTarget) (*graphql2.ScheduleTarget, error)
- func (s *Schedule) Targets(ctx context.Context, raw *schedule.Schedule) ([]graphql2.ScheduleTarget, error)
- func (r *Schedule) TimeZone(ctx context.Context, data *schedule.Schedule) (string, error)
- type ScheduleRule
- type Service
- func (s *Service) EscalationPolicy(ctx context.Context, raw *service.Service) (*escalation.Policy, error)
- func (s *Service) HeartbeatMonitors(ctx context.Context, raw *service.Service) ([]heartbeat.Monitor, error)
- func (s *Service) IntegrationKeys(ctx context.Context, raw *service.Service) ([]integrationkey.IntegrationKey, error)
- func (s *Service) IsFavorite(ctx context.Context, raw *service.Service) (bool, error)
- func (s *Service) Labels(ctx context.Context, raw *service.Service) ([]label.Label, error)
- func (s *Service) OnCallUsers(ctx context.Context, raw *service.Service) ([]oncall.ServiceOnCallUser, error)
- type Target
- type User
- func (a *User) AuthSubjects(ctx context.Context, obj *user.User) ([]user.AuthSubject, error)
- func (a *User) ContactMethods(ctx context.Context, obj *user.User) ([]contactmethod.ContactMethod, error)
- func (a *User) NotificationRules(ctx context.Context, obj *user.User) ([]notificationrule.NotificationRule, error)
- func (a *User) OnCallSteps(ctx context.Context, obj *user.User) ([]escalation.Step, error)
- func (a *User) Role(ctx context.Context, usr *user.User) (graphql2.UserRole, error)
- type UserNotificationRule
- type UserOverride
- func (u *UserOverride) AddUser(ctx context.Context, raw *override.UserOverride) (*user.User, error)
- func (u *UserOverride) RemoveUser(ctx context.Context, raw *override.UserOverride) (*user.User, error)
- func (u *UserOverride) Target(ctx context.Context, raw *override.UserOverride) (*assignment.RawTarget, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert App
func (*Alert) RecentEvents ¶ added in v0.23.0
func (a *Alert) RecentEvents(ctx context.Context, obj *alert.Alert, opts *graphql2.AlertRecentEventsOptions) (*graphql2.AlertLogEntryConnection, error)
type AlertLogEntry ¶ added in v0.23.0
type AlertLogEntry App
func (*AlertLogEntry) ID ¶ added in v0.23.0
func (a *AlertLogEntry) ID(ctx context.Context, obj *alertlog.Entry) (int, error)
type App ¶
type App struct { DB *sql.DB UserStore user.Store CMStore contactmethod.Store NRStore notificationrule.Store NCStore notificationchannel.Store AlertStore alert.Store AlertLogStore alertlog.Store ServiceStore service.Store FavoriteStore favorite.Store PolicyStore escalation.Store ScheduleStore schedule.Store RotationStore rotation.Store OnCallStore oncall.Store IntKeyStore integrationkey.Store LabelStore label.Store RuleStore rule.Store OverrideStore override.Store ConfigStore *config.Store SlackStore *slack.ChannelSender HeartbeatStore heartbeat.Store NotificationStore notification.Store TimeZoneStore *timezone.Store }
func (*App) Alert ¶
func (a *App) Alert() graphql2.AlertResolver
func (*App) AlertLogEntry ¶ added in v0.23.0
func (a *App) AlertLogEntry() graphql2.AlertLogEntryResolver
func (*App) EscalationPolicy ¶
func (a *App) EscalationPolicy() graphql2.EscalationPolicyResolver
func (*App) EscalationPolicyStep ¶
func (a *App) EscalationPolicyStep() graphql2.EscalationPolicyStepResolver
func (*App) FindOneAlert ¶
func (*App) FindOneAlertState ¶
func (*App) FindOneCM ¶
func (app *App) FindOneCM(ctx context.Context, id string) (*contactmethod.ContactMethod, error)
FindOneCM will return a single contact method for the given id, using the contexts dataloader if enabled.
func (*App) FindOneHeartbeatMonitor ¶ added in v0.24.0
func (*App) FindOnePolicy ¶
func (*App) FindOneRotation ¶
func (*App) FindOneSchedule ¶
func (*App) FindOneService ¶
func (*App) FindOneUser ¶
func (*App) HeartbeatMonitor ¶ added in v0.24.0
func (a *App) HeartbeatMonitor() graphql2.HeartbeatMonitorResolver
func (*App) IntegrationKey ¶
func (a *App) IntegrationKey() graphql2.IntegrationKeyResolver
func (*App) Mutation ¶
func (a *App) Mutation() graphql2.MutationResolver
func (*App) OnCallShift ¶
func (a *App) OnCallShift() graphql2.OnCallShiftResolver
func (*App) PlayHandler ¶
func (*App) Query ¶
func (a *App) Query() graphql2.QueryResolver
func (*App) Rotation ¶
func (a *App) Rotation() graphql2.RotationResolver
func (*App) Schedule ¶
func (a *App) Schedule() graphql2.ScheduleResolver
func (*App) ScheduleRule ¶
func (a *App) ScheduleRule() graphql2.ScheduleRuleResolver
func (*App) Service ¶
func (a *App) Service() graphql2.ServiceResolver
func (*App) Target ¶
func (a *App) Target() graphql2.TargetResolver
func (*App) User ¶
func (a *App) User() graphql2.UserResolver
func (*App) UserContactMethod ¶ added in v0.23.0
func (a *App) UserContactMethod() graphql2.UserContactMethodResolver
func (*App) UserNotificationRule ¶
func (a *App) UserNotificationRule() graphql2.UserNotificationRuleResolver
func (*App) UserOverride ¶
func (a *App) UserOverride() graphql2.UserOverrideResolver
type ContactMethod ¶ added in v0.23.0
type ContactMethod App
func (*ContactMethod) FormattedValue ¶ added in v0.23.0
func (a *ContactMethod) FormattedValue(ctx context.Context, obj *contactmethod.ContactMethod) (string, error)
type EscalationPolicy ¶
type EscalationPolicy App
func (*EscalationPolicy) AssignedTo ¶
func (ep *EscalationPolicy) AssignedTo(ctx context.Context, raw *escalation.Policy) ([]assignment.RawTarget, error)
func (*EscalationPolicy) Steps ¶
func (ep *EscalationPolicy) Steps(ctx context.Context, raw *escalation.Policy) ([]escalation.Step, error)
type EscalationPolicyStep ¶
type EscalationPolicyStep App
func (*EscalationPolicyStep) EscalationPolicy ¶
func (step *EscalationPolicyStep) EscalationPolicy(ctx context.Context, raw *escalation.Step) (*escalation.Policy, error)
func (*EscalationPolicyStep) Targets ¶
func (step *EscalationPolicyStep) Targets(ctx context.Context, raw *escalation.Step) ([]assignment.RawTarget, error)
type HeartbeatMonitor ¶ added in v0.24.0
type HeartbeatMonitor App
func (*HeartbeatMonitor) TimeoutMinutes ¶ added in v0.24.0
type IntegrationKey ¶
type IntegrationKey App
func (*IntegrationKey) Href ¶
func (key *IntegrationKey) Href(ctx context.Context, raw *integrationkey.IntegrationKey) (string, error)
func (*IntegrationKey) Type ¶
func (key *IntegrationKey) Type(ctx context.Context, raw *integrationkey.IntegrationKey) (graphql2.IntegrationKeyType, error)
type Mutation ¶
type Mutation App
func (*Mutation) AddAuthSubject ¶
func (*Mutation) CreateAlert ¶ added in v0.23.0
func (*Mutation) CreateEscalationPolicy ¶
func (m *Mutation) CreateEscalationPolicy(ctx context.Context, input graphql2.CreateEscalationPolicyInput) (pol *escalation.Policy, err error)
func (*Mutation) CreateEscalationPolicyStep ¶
func (m *Mutation) CreateEscalationPolicyStep(ctx context.Context, input graphql2.CreateEscalationPolicyStepInput) (step *escalation.Step, err error)
func (*Mutation) CreateHeartbeatMonitor ¶ added in v0.24.0
func (*Mutation) CreateIntegrationKey ¶
func (m *Mutation) CreateIntegrationKey(ctx context.Context, input graphql2.CreateIntegrationKeyInput) (key *integrationkey.IntegrationKey, err error)
func (*Mutation) CreateRotation ¶
func (*Mutation) CreateSchedule ¶
func (*Mutation) CreateService ¶
func (*Mutation) CreateUserContactMethod ¶
func (m *Mutation) CreateUserContactMethod(ctx context.Context, input graphql2.CreateUserContactMethodInput) (*contactmethod.ContactMethod, error)
func (*Mutation) CreateUserNotificationRule ¶
func (m *Mutation) CreateUserNotificationRule(ctx context.Context, input graphql2.CreateUserNotificationRuleInput) (*notificationrule.NotificationRule, error)
func (*Mutation) CreateUserOverride ¶
func (m *Mutation) CreateUserOverride(ctx context.Context, input graphql2.CreateUserOverrideInput) (*override.UserOverride, error)
func (*Mutation) DeleteAuthSubject ¶
func (*Mutation) DeleteUser ¶
func (*Mutation) EscalateAlerts ¶
func (*Mutation) SendContactMethodVerification ¶ added in v0.23.0
func (*Mutation) SetFavorite ¶
func (*Mutation) TestContactMethod ¶
func (*Mutation) UpdateAlerts ¶
func (*Mutation) UpdateEscalationPolicy ¶
func (*Mutation) UpdateEscalationPolicyStep ¶
func (*Mutation) UpdateHeartbeatMonitor ¶ added in v0.24.0
func (*Mutation) UpdateRotation ¶
func (*Mutation) UpdateSchedule ¶
func (*Mutation) UpdateScheduleTarget ¶
func (*Mutation) UpdateService ¶
func (*Mutation) UpdateUser ¶
func (*Mutation) UpdateUserContactMethod ¶
func (*Mutation) UpdateUserOverride ¶
func (*Mutation) VerifyContactMethod ¶ added in v0.23.0
type OnCallShift ¶
type OnCallShift App
type Query ¶
type Query App
func (*Query) Alerts ¶
func (q *Query) Alerts(ctx context.Context, opts *graphql2.AlertSearchOptions) (conn *graphql2.AlertConnection, err error)
func (*Query) AuthSubjectsForProvider ¶
func (*Query) EscalationPolicies ¶
func (q *Query) EscalationPolicies(ctx context.Context, opts *graphql2.EscalationPolicySearchOptions) (conn *graphql2.EscalationPolicyConnection, err error)
func (*Query) EscalationPolicy ¶
func (*Query) HeartbeatMonitor ¶ added in v0.24.0
func (*Query) IntegrationKey ¶
func (q *Query) IntegrationKey(ctx context.Context, id string) (*integrationkey.IntegrationKey, error)
func (*Query) Labels ¶
func (q *Query) Labels(ctx context.Context, input *graphql2.LabelSearchOptions) (conn *graphql2.LabelConnection, err error)
func (*Query) Rotations ¶
func (q *Query) Rotations(ctx context.Context, opts *graphql2.RotationSearchOptions) (conn *graphql2.RotationConnection, err error)
func (*Query) Schedules ¶
func (q *Query) Schedules(ctx context.Context, opts *graphql2.ScheduleSearchOptions) (conn *graphql2.ScheduleConnection, err error)
func (*Query) Services ¶
func (q *Query) Services(ctx context.Context, opts *graphql2.ServiceSearchOptions) (conn *graphql2.ServiceConnection, err error)
func (*Query) SlackChannel ¶
func (*Query) SlackChannels ¶
func (q *Query) SlackChannels(ctx context.Context, input *graphql2.SlackChannelSearchOptions) (conn *graphql2.SlackChannelConnection, err error)
func (*Query) TimeZones ¶
func (q *Query) TimeZones(ctx context.Context, input *graphql2.TimeZoneSearchOptions) (conn *graphql2.TimeZoneConnection, err error)
func (*Query) UserContactMethod ¶
func (q *Query) UserContactMethod(ctx context.Context, id string) (*contactmethod.ContactMethod, error)
func (*Query) UserOverride ¶
func (*Query) UserOverrides ¶
func (q *Query) UserOverrides(ctx context.Context, input *graphql2.UserOverrideSearchOptions) (conn *graphql2.UserOverrideConnection, err error)
type Rotation ¶
type Rotation App
func (*Rotation) ActiveUserIndex ¶
func (*Rotation) IsFavorite ¶ added in v0.23.0
func (*Rotation) NextHandoffTimes ¶
type Schedule ¶
type Schedule App
func (*Schedule) AssignedTo ¶
func (*Schedule) IsFavorite ¶ added in v0.23.0
func (*Schedule) Target ¶
func (s *Schedule) Target(ctx context.Context, raw *schedule.Schedule, input assignment.RawTarget) (*graphql2.ScheduleTarget, error)
type ScheduleRule ¶
type ScheduleRule App
func (*ScheduleRule) Target ¶
func (r *ScheduleRule) Target(ctx context.Context, raw *rule.Rule) (*assignment.RawTarget, error)
func (*ScheduleRule) WeekdayFilter ¶
type Service ¶
type Service App
func (*Service) EscalationPolicy ¶
func (*Service) HeartbeatMonitors ¶ added in v0.24.0
func (*Service) IntegrationKeys ¶
func (s *Service) IntegrationKeys(ctx context.Context, raw *service.Service) ([]integrationkey.IntegrationKey, error)
func (*Service) IsFavorite ¶
func (*Service) OnCallUsers ¶
type User ¶
type User App
func (*User) AuthSubjects ¶
func (*User) ContactMethods ¶
func (a *User) ContactMethods(ctx context.Context, obj *user.User) ([]contactmethod.ContactMethod, error)
func (*User) NotificationRules ¶
func (a *User) NotificationRules(ctx context.Context, obj *user.User) ([]notificationrule.NotificationRule, error)
func (*User) OnCallSteps ¶
type UserNotificationRule ¶
type UserNotificationRule App
func (*UserNotificationRule) ContactMethod ¶
func (nr *UserNotificationRule) ContactMethod(ctx context.Context, raw *notificationrule.NotificationRule) (*contactmethod.ContactMethod, error)
type UserOverride ¶
type UserOverride App
func (*UserOverride) AddUser ¶
func (u *UserOverride) AddUser(ctx context.Context, raw *override.UserOverride) (*user.User, error)
func (*UserOverride) RemoveUser ¶
func (u *UserOverride) RemoveUser(ctx context.Context, raw *override.UserOverride) (*user.User, error)
func (*UserOverride) Target ¶
func (u *UserOverride) Target(ctx context.Context, raw *override.UserOverride) (*assignment.RawTarget, error)
Source Files ¶
- alert.go
- app.go
- config.go
- contactmethod.go
- dataloaders.go
- escalationpolicy.go
- heartbeatmonitor.go
- integrationkey.go
- label.go
- mutation.go
- notificationrule.go
- oncall.go
- playground.go
- query.go
- rotation.go
- schedule.go
- schedulerule.go
- service.go
- slack.go
- target.go
- timezone.go
- tx.go
- user.go
- useroverride.go
Click to show internal directories.
Click to hide internal directories.