Documentation ¶
Index ¶
- func CompatCMTypeValToDest(cmType graphql2.ContactMethodType, value string) (gadb.DestV1, error)
- func CompatDestToCMTypeVal(d gadb.DestV1) (graphql2.ContactMethodType, string)
- func CompatDestToTarget(d gadb.DestV1) (assignment.RawTarget, error)
- func Experimental(ctx context.Context, obj interface{}, next graphql.Resolver, flagName string) (res interface{}, err error)
- 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) Meta(ctx context.Context, alert *alert.Alert) ([]graphql2.AlertMetadata, error)
- func (a *Alert) MetaValue(ctx context.Context, alert *alert.Alert, key string) (string, error)
- func (a *Alert) Metrics(ctx context.Context, raw *alert.Alert) (*alertmetrics.Metric, error)
- func (a *Alert) NoiseReason(ctx context.Context, raw *alert.Alert) (*string, error)
- func (a *Alert) PendingNotifications(ctx context.Context, obj *alert.Alert) ([]graphql2.AlertPendingNotification, 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
- func (a *AlertLogEntry) ID(ctx context.Context, obj *alertlog.Entry) (int, error)
- func (a *AlertLogEntry) Message(ctx context.Context, obj *alertlog.Entry) (string, error)
- func (a *AlertLogEntry) State(ctx context.Context, obj *alertlog.Entry) (*graphql2.NotificationState, error)
- func (a *AlertLogEntry) Timestamp(ctx context.Context, obj *alertlog.Entry) (*time.Time, error)
- type AlertLogEntryState
- type AlertMetric
- type App
- func (a *App) Alert() graphql2.AlertResolver
- func (a *App) AlertLogEntry() graphql2.AlertLogEntryResolver
- func (a *App) AlertMetric() graphql2.AlertMetricResolver
- func (a *App) CompatTargetToDest(ctx context.Context, tgt assignment.Target) (gadb.DestV1, error)
- func (a *App) CreateEscalationPolicyStepInput() graphql2.CreateEscalationPolicyStepInputResolver
- func (a *App) Destination() graphql2.DestinationResolver
- func (a *App) DestinationInput() graphql2.DestinationInputResolver
- func (a *App) EscalationPolicy() graphql2.EscalationPolicyResolver
- func (a *App) EscalationPolicyStep() graphql2.EscalationPolicyStepResolver
- func (a *App) Expr() graphql2.ExprResolver
- func (app *App) FindOneAlert(ctx context.Context, id int) (*alert.Alert, error)
- func (app *App) FindOneAlertFeedback(ctx context.Context, id int) (*alert.Feedback, error)
- func (app *App) FindOneAlertMetadata(ctx context.Context, id int) (map[string]string, error)
- func (app *App) FindOneAlertMetric(ctx context.Context, id int) (*alertmetrics.Metric, error)
- func (app *App) FindOneAlertState(ctx context.Context, alertID int) (*alert.State, error)
- func (app *App) FindOneCM(ctx context.Context, id uuid.UUID) (*contactmethod.ContactMethod, error)
- func (app *App) FindOneHeartbeatMonitor(ctx context.Context, id string) (*heartbeat.Monitor, error)
- func (app *App) FindOneNC(ctx context.Context, id uuid.UUID) (*notificationchannel.Channel, error)
- func (app *App) FindOneNotificationMessageStatus(ctx context.Context, id string) (*notification.SendResult, 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) GQLAPIKey() graphql2.GQLAPIKeyResolver
- func (a *App) Handler() http.Handler
- func (a *App) HeartbeatMonitor() graphql2.HeartbeatMonitorResolver
- func (a *App) IntegrationKey() graphql2.IntegrationKeyResolver
- func (a *App) KeyConfig() graphql2.KeyConfigResolver
- func (a *App) MessageLogConnectionStats() graphql2.MessageLogConnectionStatsResolver
- func (a *App) Mutation() graphql2.MutationResolver
- func (a *App) OnCallNotificationRule() graphql2.OnCallNotificationRuleResolver
- func (a *App) OnCallNotificationRuleInput() graphql2.OnCallNotificationRuleInputResolver
- func (a *App) OnCallShift() graphql2.OnCallShiftResolver
- 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) TemporarySchedule() graphql2.TemporaryScheduleResolver
- func (a *App) UpdateEscalationPolicyStepInput() graphql2.UpdateEscalationPolicyStepInputResolver
- func (a *App) User() graphql2.UserResolver
- func (a *App) UserCalendarSubscription() graphql2.UserCalendarSubscriptionResolver
- func (a *App) UserContactMethod() graphql2.UserContactMethodResolver
- func (a *App) UserNotificationRule() graphql2.UserNotificationRuleResolver
- func (a *App) UserOverride() graphql2.UserOverrideResolver
- func (a *App) ValidateDestination(ctx context.Context, fieldName string, dest *gadb.DestV1) (err error)
- type ContactMethod
- func (a *ContactMethod) FormattedValue(ctx context.Context, obj *contactmethod.ContactMethod) (string, error)
- func (a *ContactMethod) LastTestMessageState(ctx context.Context, obj *contactmethod.ContactMethod) (*graphql2.NotificationState, error)
- func (a *ContactMethod) LastVerifyMessageState(ctx context.Context, obj *contactmethod.ContactMethod) (*graphql2.NotificationState, error)
- func (a *ContactMethod) StatusUpdates(ctx context.Context, obj *contactmethod.ContactMethod) (graphql2.StatusUpdateState, error)
- func (a *ContactMethod) Type(ctx context.Context, obj *contactmethod.ContactMethod) (*graphql2.ContactMethodType, error)
- func (a *ContactMethod) Value(ctx context.Context, obj *contactmethod.ContactMethod) (string, error)
- type CreateEscalationPolicyStepInput
- type DebugMessage
- type Destination
- type DestinationDisplayInfo
- type DestinationInput
- type EscalationPolicy
- func (ep *EscalationPolicy) AssignedTo(ctx context.Context, raw *escalation.Policy) ([]assignment.RawTarget, error)
- func (step *EscalationPolicy) IsFavorite(ctx context.Context, raw *escalation.Policy) (bool, error)
- func (ep *EscalationPolicy) Notices(ctx context.Context, raw *escalation.Policy) ([]notice.Notice, error)
- func (ep *EscalationPolicy) Steps(ctx context.Context, raw *escalation.Policy) ([]escalation.Step, error)
- type EscalationPolicyStep
- func (a *EscalationPolicyStep) Actions(ctx context.Context, raw *escalation.Step) ([]gadb.DestV1, error)
- func (step *EscalationPolicyStep) EscalationPolicy(ctx context.Context, raw *escalation.Step) (*escalation.Policy, error)
- func (step *EscalationPolicyStep) Targets(ctx context.Context, raw *escalation.Step) ([]assignment.RawTarget, error)
- type Expr
- type FieldValuePair
- type GQLAPIKey
- type HeartbeatMonitor
- type IntegrationKey
- func (key *IntegrationKey) Config(ctx context.Context, raw *integrationkey.IntegrationKey) (*gadb.UIKConfigV1, error)
- func (key *IntegrationKey) Href(ctx context.Context, raw *integrationkey.IntegrationKey) (string, error)
- func (key *IntegrationKey) TokenInfo(ctx context.Context, raw *integrationkey.IntegrationKey) (*graphql2.TokenInfo, error)
- func (key *IntegrationKey) Type(ctx context.Context, raw *integrationkey.IntegrationKey) (graphql2.IntegrationKeyType, error)
- type KeyConfig
- type MessageLog
- type MessageLogConnectionStats
- type Mutation
- func (a *Mutation) AddAuthSubject(ctx context.Context, input user.AuthSubject) (bool, error)
- func (a *Mutation) ClearTemporarySchedules(ctx context.Context, input graphql2.ClearTemporarySchedulesInput) (bool, error)
- func (m *Mutation) CloseMatchingAlert(ctx context.Context, input graphql2.CloseMatchingAlertInput) (bool, error)
- func (m *Mutation) CreateAlert(ctx context.Context, input graphql2.CreateAlertInput) (*alert.Alert, error)
- func (a *Mutation) CreateBasicAuth(ctx context.Context, input graphql2.CreateBasicAuthInput) (bool, 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 (a *Mutation) CreateGQLAPIKey(ctx context.Context, input graphql2.CreateGQLAPIKeyInput) (*graphql2.CreatedGQLAPIKey, error)
- func (m *Mutation) CreateHeartbeatMonitor(ctx context.Context, input graphql2.CreateHeartbeatMonitorInput) (hb *heartbeat.Monitor, err 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 (a *Mutation) CreateUser(ctx context.Context, input graphql2.CreateUserInput) (*user.User, error)
- func (m *Mutation) CreateUserCalendarSubscription(ctx context.Context, input graphql2.CreateUserCalendarSubscriptionInput) (cs *calsub.Subscription, 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) DebugCarrierInfo(ctx context.Context, input graphql2.DebugCarrierInfoInput) (*twilio.CarrierInfo, error)
- func (a *Mutation) DebugSendSms(ctx context.Context, input graphql2.DebugSendSMSInput) (*graphql2.DebugSendSMSInfo, 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) DeleteGQLAPIKey(ctx context.Context, input string) (bool, error)
- func (m *Mutation) DeleteSecondaryToken(ctx context.Context, keyID string) (bool, error)
- func (a *Mutation) EndAllAuthSessionsByCurrentUser(ctx context.Context) (bool, error)
- func (m *Mutation) EscalateAlerts(ctx context.Context, ids []int) ([]alert.Alert, error)
- func (m *Mutation) GenerateKeyToken(ctx context.Context, keyID string) (string, error)
- func (a *Mutation) LinkAccount(ctx context.Context, token string) (bool, error)
- func (m *Mutation) PromoteSecondaryToken(ctx context.Context, keyID string) (bool, error)
- func (m *Mutation) SendContactMethodVerification(ctx context.Context, input graphql2.SendContactMethodVerificationInput) (bool, error)
- func (m *Mutation) SetAlertNoiseReason(ctx context.Context, input graphql2.SetAlertNoiseReasonInput) (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) SetScheduleOnCallNotificationRules(ctx context.Context, input graphql2.SetScheduleOnCallNotificationRulesInput) (bool, error)
- func (m *Mutation) SetSystemLimits(ctx context.Context, input []graphql2.SystemLimitInput) (bool, error)
- func (a *Mutation) SetTemporarySchedule(ctx context.Context, input graphql2.SetTemporaryScheduleInput) (bool, error)
- func (m *Mutation) SwoAction(ctx context.Context, action graphql2.SWOAction) (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) UpdateAlertsByService(ctx context.Context, args graphql2.UpdateAlertsByServiceInput) (bool, error)
- func (a *Mutation) UpdateBasicAuth(ctx context.Context, input graphql2.UpdateBasicAuthInput) (bool, 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 (a *Mutation) UpdateGQLAPIKey(ctx context.Context, input graphql2.UpdateGQLAPIKeyInput) (bool, error)
- func (m *Mutation) UpdateHeartbeatMonitor(ctx context.Context, input graphql2.UpdateHeartbeatMonitorInput) (bool, error)
- func (m *Mutation) UpdateKeyConfig(ctx context.Context, input graphql2.UpdateKeyConfigInput) (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) UpdateUserCalendarSubscription(ctx context.Context, input graphql2.UpdateUserCalendarSubscriptionInput) (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 OnCallNotificationRule
- type OnCallNotificationRuleInput
- type OnCallShift
- type Query
- func (q *Query) ActionInputValidate(ctx context.Context, input gadb.UIKActionV1) (bool, error)
- 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 (a *Query) CalcRotationHandoffTimes(ctx context.Context, input *graphql2.CalcRotationHandoffTimesInput) ([]time.Time, error)
- func (q *Query) Config(ctx context.Context, all *bool) ([]graphql2.ConfigValue, error)
- func (q *Query) ConfigHints(ctx context.Context) ([]graphql2.ConfigHint, error)
- func (q *Query) DebugMessageStatus(ctx context.Context, input graphql2.DebugMessageStatusInput) (*graphql2.DebugMessageStatusInfo, error)
- func (q *Query) DebugMessages(ctx context.Context, input *graphql2.DebugMessagesInput) ([]graphql2.DebugMessage, error)
- func (a *Query) DestinationDisplayInfo(ctx context.Context, dest gadb.DestV1) (*nfydest.DisplayInfo, error)
- func (q *Query) DestinationFieldSearch(ctx context.Context, input graphql2.DestinationFieldSearchInput) (*graphql2.FieldSearchConnection, error)
- func (q *Query) DestinationFieldValidate(ctx context.Context, input graphql2.DestinationFieldValidateInput) (bool, error)
- func (q *Query) DestinationFieldValueName(ctx context.Context, input graphql2.DestinationFieldValidateInput) (string, error)
- func (q *Query) DestinationTypes(ctx context.Context, isDynamicAction *bool) ([]nfydest.TypeInfo, 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 (a *Query) ExperimentalFlags(ctx context.Context) ([]string, error)
- func (q *Query) Expr(context.Context) (*graphql2.Expr, error)
- func (q *Query) GenerateSlackAppManifest(ctx context.Context) (string, error)
- func (q *Query) GqlAPIKeys(ctx context.Context) ([]graphql2.GQLAPIKey, 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 (a *Query) IntegrationKeyTypes(ctx context.Context) ([]graphql2.IntegrationKeyTypeInfo, error)
- func (q *Query) IntegrationKeys(ctx context.Context, input *graphql2.IntegrationKeySearchOptions) (conn *graphql2.IntegrationKeyConnection, err error)
- func (q *Query) LabelKeys(ctx context.Context, input *graphql2.LabelKeySearchOptions) (conn *graphql2.StringConnection, err error)
- func (q *Query) LabelValues(ctx context.Context, input *graphql2.LabelValueSearchOptions) (conn *graphql2.StringConnection, err error)
- func (q *Query) Labels(ctx context.Context, input *graphql2.LabelSearchOptions) (conn *graphql2.LabelConnection, err error)
- func (a *Query) LinkAccountInfo(ctx context.Context, token string) (*graphql2.LinkAccountInfo, error)
- func (q *Query) ListGQLFields(ctx context.Context, query *string) ([]string, error)
- func (q *Query) MessageLogs(ctx context.Context, opts *graphql2.MessageLogSearchOptions) (conn *graphql2.MessageLogConnection, err error)
- func (a *Query) PhoneNumberInfo(ctx context.Context, number string) (*graphql2.PhoneNumberInfo, 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) SlackUserGroup(ctx context.Context, id string) (*slack.UserGroup, error)
- func (q *Query) SlackUserGroups(ctx context.Context, input *graphql2.SlackUserGroupSearchOptions) (conn *graphql2.SlackUserGroupConnection, err error)
- func (q *Query) SwoStatus(ctx context.Context) (*graphql2.SWOStatus, error)
- func (q *Query) SystemLimits(ctx context.Context) ([]graphql2.SystemLimit, 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) UserCalendarSubscription(ctx context.Context, id string) (*calsub.Subscription, error)
- func (q *Query) UserContactMethod(ctx context.Context, idStr 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) OnCallNotificationRules(ctx context.Context, raw *schedule.Schedule) ([]schedule.OnCallNotificationRule, 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 (s *Schedule) TemporarySchedules(ctx context.Context, raw *schedule.Schedule) ([]schedule.TemporarySchedule, 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) Notices(ctx context.Context, raw *service.Service) ([]notice.Notice, error)
- func (s *Service) OnCallUsers(ctx context.Context, raw *service.Service) ([]oncall.ServiceOnCallUser, error)
- type Target
- type TemporarySchedule
- type UpdateEscalationPolicyStepInput
- type User
- func (a *User) AssignedSchedules(ctx context.Context, obj *user.User) (schedules []schedule.Schedule, err error)
- func (a *User) AuthSubjects(ctx context.Context, obj *user.User) ([]user.AuthSubject, error)
- func (a *User) CalendarSubscriptions(ctx context.Context, obj *user.User) ([]calsub.Subscription, error)
- func (a *User) ContactMethods(ctx context.Context, obj *user.User) ([]contactmethod.ContactMethod, error)
- func (a *User) IsFavorite(ctx context.Context, raw *user.User) (bool, error)
- func (a *User) NotificationRules(ctx context.Context, obj *user.User) ([]notificationrule.NotificationRule, error)
- func (a *User) OnCallOverview(ctx context.Context, obj *user.User) (*graphql2.OnCallOverview, 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)
- func (a *User) Sessions(ctx context.Context, obj *user.User) ([]graphql2.UserSession, error)
- type UserCalendarSubscription
- func (a *UserCalendarSubscription) FullSchedule(ctx context.Context, obj *calsub.Subscription) (bool, error)
- func (a *UserCalendarSubscription) ReminderMinutes(ctx context.Context, obj *calsub.Subscription) ([]int, error)
- func (a *UserCalendarSubscription) Schedule(ctx context.Context, obj *calsub.Subscription) (*schedule.Schedule, error)
- func (a *UserCalendarSubscription) URL(ctx context.Context, obj *calsub.Subscription) (*string, 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 ¶
func CompatCMTypeValToDest ¶ added in v0.33.0
func CompatDestToCMTypeVal ¶ added in v0.32.0
func CompatDestToCMTypeVal(d gadb.DestV1) (graphql2.ContactMethodType, string)
CompatDestToCMTypeVal converts a gadb.DestV1 to a contactmethod.Type and string value for the built-in destination types.
func CompatDestToTarget ¶ added in v0.33.0
func CompatDestToTarget(d gadb.DestV1) (assignment.RawTarget, error)
CompatDestToTarget converts a gadb.DestV1 to a graphql2.RawTarget
Types ¶
type Alert ¶
type Alert App
func (*Alert) NoiseReason ¶ added in v0.31.0
func (*Alert) PendingNotifications ¶ added in v0.29.0
func (a *Alert) PendingNotifications(ctx context.Context, obj *alert.Alert) ([]graphql2.AlertPendingNotification, error)
PendingNotifications returns a list of notifications that are waiting to be sent
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) State ¶ added in v0.25.0
func (a *AlertLogEntry) State(ctx context.Context, obj *alertlog.Entry) (*graphql2.NotificationState, error)
type AlertLogEntryState ¶ added in v0.25.0
type AlertLogEntryState App
type AlertMetric ¶ added in v0.30.0
type AlertMetric App
func (*AlertMetric) TimeToAck ¶ added in v0.30.0
func (a *AlertMetric) TimeToAck(ctx context.Context, obj *alertmetrics.Metric) (*timeutil.ISODuration, error)
func (*AlertMetric) TimeToClose ¶ added in v0.30.0
func (a *AlertMetric) TimeToClose(ctx context.Context, obj *alertmetrics.Metric) (*timeutil.ISODuration, error)
type App ¶
type App struct { DB *sql.DB AuthBasicStore *basic.Store UserStore *user.Store CMStore *contactmethod.Store NRStore *notificationrule.Store NCStore *notificationchannel.Store AlertStore *alert.Store AlertMetricsStore *alertmetrics.Store AlertLogStore *alertlog.Store ServiceStore *service.Store FavoriteStore *favorite.Store PolicyStore *escalation.Store ScheduleStore *schedule.Store CalSubStore *calsub.Store RotationStore *rotation.Store OnCallStore *oncall.Store IntKeyStore *integrationkey.Store LabelStore *label.Store RuleStore *rule.Store OverrideStore *override.Store ConfigStore *config.Store LimitStore *limit.Store SlackStore *slack.ChannelSender HeartbeatStore *heartbeat.Store NoticeStore *notice.Store APIKeyStore *apikey.Store AuthLinkStore *authlink.Store NotificationManager *notification.Manager AuthHandler *auth.Handler NotificationStore *notification.Store Twilio *twilio.Config TimeZoneStore *timezone.Store SWO *swo.Manager DestReg *nfydest.Registry }
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) AlertMetric ¶ added in v0.30.0
func (a *App) AlertMetric() graphql2.AlertMetricResolver
func (*App) CompatTargetToDest ¶ added in v0.33.0
CompatTargetToDest converts an assignment.Target to a gadb.DestV1.
func (*App) CreateEscalationPolicyStepInput ¶ added in v0.33.0
func (a *App) CreateEscalationPolicyStepInput() graphql2.CreateEscalationPolicyStepInputResolver
func (*App) Destination ¶ added in v0.32.0
func (a *App) Destination() graphql2.DestinationResolver
func (*App) DestinationInput ¶ added in v0.33.0
func (a *App) DestinationInput() graphql2.DestinationInputResolver
func (*App) EscalationPolicy ¶
func (a *App) EscalationPolicy() graphql2.EscalationPolicyResolver
func (*App) EscalationPolicyStep ¶
func (a *App) EscalationPolicyStep() graphql2.EscalationPolicyStepResolver
func (*App) Expr ¶ added in v0.33.0
func (a *App) Expr() graphql2.ExprResolver
func (*App) FindOneAlert ¶
func (*App) FindOneAlertFeedback ¶ added in v0.31.0
func (*App) FindOneAlertMetadata ¶ added in v0.33.0
func (*App) FindOneAlertMetric ¶ added in v0.30.0
func (*App) FindOneAlertState ¶
func (*App) FindOneCM ¶
func (app *App) FindOneCM(ctx context.Context, id uuid.UUID) (*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) FindOneNC ¶ added in v0.30.0
FindOneNC will return a single notification channel for the given id, using the contexts dataloader if enabled.
func (*App) FindOneNotificationMessageStatus ¶ added in v0.25.0
func (app *App) FindOneNotificationMessageStatus(ctx context.Context, id string) (*notification.SendResult, error)
func (*App) FindOnePolicy ¶
func (*App) FindOneRotation ¶
func (*App) FindOneSchedule ¶
func (*App) FindOneService ¶
func (*App) FindOneUser ¶
func (*App) GQLAPIKey ¶ added in v0.32.0
func (a *App) GQLAPIKey() graphql2.GQLAPIKeyResolver
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) KeyConfig ¶ added in v0.33.0
func (a *App) KeyConfig() graphql2.KeyConfigResolver
func (*App) MessageLogConnectionStats ¶ added in v0.31.0
func (a *App) MessageLogConnectionStats() graphql2.MessageLogConnectionStatsResolver
func (*App) Mutation ¶
func (a *App) Mutation() graphql2.MutationResolver
func (*App) OnCallNotificationRule ¶ added in v0.28.0
func (a *App) OnCallNotificationRule() graphql2.OnCallNotificationRuleResolver
func (*App) OnCallNotificationRuleInput ¶ added in v0.33.0
func (a *App) OnCallNotificationRuleInput() graphql2.OnCallNotificationRuleInputResolver
func (*App) OnCallShift ¶
func (a *App) OnCallShift() graphql2.OnCallShiftResolver
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) TemporarySchedule ¶ added in v0.27.0
func (a *App) TemporarySchedule() graphql2.TemporaryScheduleResolver
func (*App) UpdateEscalationPolicyStepInput ¶ added in v0.33.0
func (a *App) UpdateEscalationPolicyStepInput() graphql2.UpdateEscalationPolicyStepInputResolver
func (*App) User ¶
func (a *App) User() graphql2.UserResolver
func (*App) UserCalendarSubscription ¶ added in v0.25.0
func (a *App) UserCalendarSubscription() graphql2.UserCalendarSubscriptionResolver
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)
func (*ContactMethod) LastTestMessageState ¶ added in v0.26.0
func (a *ContactMethod) LastTestMessageState(ctx context.Context, obj *contactmethod.ContactMethod) (*graphql2.NotificationState, error)
func (*ContactMethod) LastVerifyMessageState ¶ added in v0.26.0
func (a *ContactMethod) LastVerifyMessageState(ctx context.Context, obj *contactmethod.ContactMethod) (*graphql2.NotificationState, error)
func (*ContactMethod) StatusUpdates ¶ added in v0.31.0
func (a *ContactMethod) StatusUpdates(ctx context.Context, obj *contactmethod.ContactMethod) (graphql2.StatusUpdateState, error)
func (*ContactMethod) Type ¶ added in v0.33.0
func (a *ContactMethod) Type(ctx context.Context, obj *contactmethod.ContactMethod) (*graphql2.ContactMethodType, error)
func (*ContactMethod) Value ¶ added in v0.28.0
func (a *ContactMethod) Value(ctx context.Context, obj *contactmethod.ContactMethod) (string, error)
type CreateEscalationPolicyStepInput ¶ added in v0.33.0
type CreateEscalationPolicyStepInput App
func (*CreateEscalationPolicyStepInput) Targets ¶ added in v0.33.0
func (a *CreateEscalationPolicyStepInput) Targets(ctx context.Context, input *graphql2.CreateEscalationPolicyStepInput, targets []assignment.RawTarget) error
type DebugMessage ¶ added in v0.30.0
type DebugMessage App
type Destination ¶ added in v0.32.0
type Destination App
func (*Destination) DisplayInfo ¶ added in v0.32.0
func (a *Destination) DisplayInfo(ctx context.Context, obj *gadb.DestV1) (graphql2.InlineDisplayInfo, error)
DisplayInfo will return the display information for a destination by mapping to Query.DestinationDisplayInfo.
func (*Destination) Values ¶ added in v0.33.0
func (a *Destination) Values(ctx context.Context, obj *gadb.DestV1) ([]graphql2.FieldValuePair, error)
type DestinationDisplayInfo ¶ added in v0.32.0
type DestinationDisplayInfo App
type DestinationInput ¶ added in v0.33.0
type DestinationInput App
func (*DestinationInput) Values ¶ added in v0.33.0
func (a *DestinationInput) Values(ctx context.Context, obj *gadb.DestV1, values []graphql2.FieldValueInput) error
type EscalationPolicy ¶
type EscalationPolicy App
func (*EscalationPolicy) AssignedTo ¶
func (ep *EscalationPolicy) AssignedTo(ctx context.Context, raw *escalation.Policy) ([]assignment.RawTarget, error)
func (*EscalationPolicy) IsFavorite ¶ added in v0.28.0
func (step *EscalationPolicy) IsFavorite(ctx context.Context, raw *escalation.Policy) (bool, error)
func (*EscalationPolicy) Notices ¶ added in v0.26.0
func (ep *EscalationPolicy) Notices(ctx context.Context, raw *escalation.Policy) ([]notice.Notice, error)
func (*EscalationPolicy) Steps ¶
func (ep *EscalationPolicy) Steps(ctx context.Context, raw *escalation.Policy) ([]escalation.Step, error)
type EscalationPolicyStep ¶
type EscalationPolicyStep App
func (*EscalationPolicyStep) Actions ¶ added in v0.33.0
func (a *EscalationPolicyStep) Actions(ctx context.Context, raw *escalation.Step) ([]gadb.DestV1, error)
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 FieldValuePair ¶ added in v0.32.0
type FieldValuePair App
type HeartbeatMonitor ¶ added in v0.24.0
type HeartbeatMonitor App
func (*HeartbeatMonitor) AdditionalDetails ¶ added in v0.32.0
func (*HeartbeatMonitor) TimeoutMinutes ¶ added in v0.24.0
type IntegrationKey ¶
type IntegrationKey App
func (*IntegrationKey) Config ¶ added in v0.33.0
func (key *IntegrationKey) Config(ctx context.Context, raw *integrationkey.IntegrationKey) (*gadb.UIKConfigV1, error)
func (*IntegrationKey) Href ¶
func (key *IntegrationKey) Href(ctx context.Context, raw *integrationkey.IntegrationKey) (string, error)
func (*IntegrationKey) TokenInfo ¶ added in v0.33.0
func (key *IntegrationKey) TokenInfo(ctx context.Context, raw *integrationkey.IntegrationKey) (*graphql2.TokenInfo, error)
func (*IntegrationKey) Type ¶
func (key *IntegrationKey) Type(ctx context.Context, raw *integrationkey.IntegrationKey) (graphql2.IntegrationKeyType, error)
type MessageLog ¶ added in v0.30.1
type MessageLog App
type MessageLogConnectionStats ¶ added in v0.31.0
type MessageLogConnectionStats App
func (*MessageLogConnectionStats) TimeSeries ¶ added in v0.31.0
func (q *MessageLogConnectionStats) TimeSeries(ctx context.Context, opts *notification.SearchOptions, input graphql2.TimeSeriesOptions) ([]graphql2.TimeSeriesBucket, error)
type Mutation ¶
type Mutation App
func (*Mutation) AddAuthSubject ¶
func (*Mutation) ClearTemporarySchedules ¶ added in v0.27.0
func (*Mutation) CloseMatchingAlert ¶ added in v0.32.0
func (*Mutation) CreateAlert ¶ added in v0.23.0
func (*Mutation) CreateBasicAuth ¶ added in v0.31.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) CreateGQLAPIKey ¶ added in v0.32.0
func (a *Mutation) CreateGQLAPIKey(ctx context.Context, input graphql2.CreateGQLAPIKeyInput) (*graphql2.CreatedGQLAPIKey, 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) CreateUser ¶ added in v0.28.0
func (*Mutation) CreateUserCalendarSubscription ¶ added in v0.25.0
func (m *Mutation) CreateUserCalendarSubscription(ctx context.Context, input graphql2.CreateUserCalendarSubscriptionInput) (cs *calsub.Subscription, err error)
todo: return UserCalendarSubscription with generated url once endpoint has been created
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) DebugCarrierInfo ¶ added in v0.25.0
func (a *Mutation) DebugCarrierInfo(ctx context.Context, input graphql2.DebugCarrierInfoInput) (*twilio.CarrierInfo, error)
func (*Mutation) DebugSendSms ¶ added in v0.25.0
func (a *Mutation) DebugSendSms(ctx context.Context, input graphql2.DebugSendSMSInput) (*graphql2.DebugSendSMSInfo, error)
func (*Mutation) DeleteAuthSubject ¶
func (*Mutation) DeleteGQLAPIKey ¶ added in v0.32.0
func (*Mutation) DeleteSecondaryToken ¶ added in v0.33.0
func (*Mutation) EndAllAuthSessionsByCurrentUser ¶ added in v0.26.0
func (*Mutation) EscalateAlerts ¶
func (*Mutation) GenerateKeyToken ¶ added in v0.33.0
func (*Mutation) LinkAccount ¶ added in v0.30.0
func (*Mutation) PromoteSecondaryToken ¶ added in v0.33.0
func (*Mutation) SendContactMethodVerification ¶ added in v0.23.0
func (*Mutation) SetAlertNoiseReason ¶ added in v0.31.0
func (*Mutation) SetFavorite ¶
func (*Mutation) SetScheduleOnCallNotificationRules ¶ added in v0.28.0
func (*Mutation) SetSystemLimits ¶ added in v0.25.0
func (*Mutation) SetTemporarySchedule ¶ added in v0.27.0
func (*Mutation) TestContactMethod ¶
func (*Mutation) UpdateAlerts ¶
func (*Mutation) UpdateAlertsByService ¶ added in v0.25.0
func (*Mutation) UpdateBasicAuth ¶ added in v0.31.0
func (*Mutation) UpdateEscalationPolicy ¶
func (*Mutation) UpdateEscalationPolicyStep ¶
func (*Mutation) UpdateGQLAPIKey ¶ added in v0.32.0
func (*Mutation) UpdateHeartbeatMonitor ¶ added in v0.24.0
func (*Mutation) UpdateKeyConfig ¶ added in v0.33.0
func (*Mutation) UpdateRotation ¶
func (*Mutation) UpdateSchedule ¶
func (*Mutation) UpdateScheduleTarget ¶
func (*Mutation) UpdateService ¶
func (*Mutation) UpdateUser ¶
func (*Mutation) UpdateUserCalendarSubscription ¶ added in v0.25.0
func (*Mutation) UpdateUserContactMethod ¶
func (*Mutation) UpdateUserOverride ¶
func (*Mutation) VerifyContactMethod ¶ added in v0.23.0
type OnCallNotificationRule ¶ added in v0.28.0
type OnCallNotificationRule App
func (*OnCallNotificationRule) Dest ¶ added in v0.32.0
func (a *OnCallNotificationRule) Dest(ctx context.Context, raw *schedule.OnCallNotificationRule) (*gadb.DestV1, error)
func (*OnCallNotificationRule) Target ¶ added in v0.28.0
func (a *OnCallNotificationRule) Target(ctx context.Context, raw *schedule.OnCallNotificationRule) (*assignment.RawTarget, error)
type OnCallNotificationRuleInput ¶ added in v0.33.0
type OnCallNotificationRuleInput App
func (*OnCallNotificationRuleInput) Target ¶ added in v0.33.0
func (a *OnCallNotificationRuleInput) Target(ctx context.Context, input *graphql2.OnCallNotificationRuleInput, tgt *assignment.RawTarget) error
type OnCallShift ¶
type OnCallShift App
type Query ¶
type Query App
func (*Query) ActionInputValidate ¶ added in v0.33.0
func (*Query) Alerts ¶
func (q *Query) Alerts(ctx context.Context, opts *graphql2.AlertSearchOptions) (conn *graphql2.AlertConnection, err error)
func (*Query) AuthSubjectsForProvider ¶
func (*Query) CalcRotationHandoffTimes ¶ added in v0.27.0
func (*Query) ConfigHints ¶ added in v0.25.0
func (*Query) DebugMessageStatus ¶ added in v0.29.0
func (q *Query) DebugMessageStatus(ctx context.Context, input graphql2.DebugMessageStatusInput) (*graphql2.DebugMessageStatusInfo, error)
func (*Query) DebugMessages ¶ added in v0.30.0
func (q *Query) DebugMessages(ctx context.Context, input *graphql2.DebugMessagesInput) ([]graphql2.DebugMessage, error)
func (*Query) DestinationDisplayInfo ¶ added in v0.32.0
func (*Query) DestinationFieldSearch ¶ added in v0.32.0
func (q *Query) DestinationFieldSearch(ctx context.Context, input graphql2.DestinationFieldSearchInput) (*graphql2.FieldSearchConnection, error)
func (*Query) DestinationFieldValidate ¶ added in v0.32.0
func (*Query) DestinationFieldValueName ¶ added in v0.32.0
func (*Query) DestinationTypes ¶ added in v0.32.0
func (*Query) EscalationPolicies ¶
func (q *Query) EscalationPolicies(ctx context.Context, opts *graphql2.EscalationPolicySearchOptions) (conn *graphql2.EscalationPolicyConnection, err error)
func (*Query) EscalationPolicy ¶
func (*Query) ExperimentalFlags ¶ added in v0.31.0
func (*Query) GenerateSlackAppManifest ¶ added in v0.28.0
func (*Query) GqlAPIKeys ¶ added in v0.32.0
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) IntegrationKeyTypes ¶ added in v0.31.0
func (*Query) IntegrationKeys ¶ added in v0.30.1
func (q *Query) IntegrationKeys(ctx context.Context, input *graphql2.IntegrationKeySearchOptions) (conn *graphql2.IntegrationKeyConnection, err error)
func (*Query) LabelKeys ¶ added in v0.25.0
func (q *Query) LabelKeys(ctx context.Context, input *graphql2.LabelKeySearchOptions) (conn *graphql2.StringConnection, err error)
func (*Query) LabelValues ¶ added in v0.25.0
func (q *Query) LabelValues(ctx context.Context, input *graphql2.LabelValueSearchOptions) (conn *graphql2.StringConnection, err error)
func (*Query) Labels ¶
func (q *Query) Labels(ctx context.Context, input *graphql2.LabelSearchOptions) (conn *graphql2.LabelConnection, err error)
func (*Query) LinkAccountInfo ¶ added in v0.30.0
func (*Query) ListGQLFields ¶ added in v0.32.0
func (*Query) MessageLogs ¶ added in v0.30.1
func (q *Query) MessageLogs(ctx context.Context, opts *graphql2.MessageLogSearchOptions) (conn *graphql2.MessageLogConnection, err error)
func (*Query) PhoneNumberInfo ¶ added in v0.25.0
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) SlackUserGroup ¶ added in v0.31.0
SlackUserGroup is a GraphQL resolver for a Slack user group.
func (*Query) SlackUserGroups ¶ added in v0.31.0
func (q *Query) SlackUserGroups(ctx context.Context, input *graphql2.SlackUserGroupSearchOptions) (conn *graphql2.SlackUserGroupConnection, err error)
SlackUserGroups is a GraphQL resolver for a list of Slack user groups.
func (*Query) SystemLimits ¶ added in v0.25.0
func (*Query) TimeZones ¶
func (q *Query) TimeZones(ctx context.Context, input *graphql2.TimeZoneSearchOptions) (conn *graphql2.TimeZoneConnection, err error)
func (*Query) UserCalendarSubscription ¶ added in v0.25.0
func (*Query) UserContactMethod ¶
func (q *Query) UserContactMethod(ctx context.Context, idStr 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) OnCallNotificationRules ¶ added in v0.28.0
func (*Schedule) Target ¶
func (s *Schedule) Target(ctx context.Context, raw *schedule.Schedule, input assignment.RawTarget) (*graphql2.ScheduleTarget, error)
func (*Schedule) TemporarySchedules ¶ added in v0.27.0
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 TemporarySchedule ¶ added in v0.27.0
type TemporarySchedule App
func (*TemporarySchedule) Shifts ¶ added in v0.27.0
func (a *TemporarySchedule) Shifts(ctx context.Context, temp *schedule.TemporarySchedule) ([]oncall.Shift, error)
type UpdateEscalationPolicyStepInput ¶ added in v0.33.0
type UpdateEscalationPolicyStepInput App
func (*UpdateEscalationPolicyStepInput) Targets ¶ added in v0.33.0
func (a *UpdateEscalationPolicyStepInput) Targets(ctx context.Context, input *graphql2.UpdateEscalationPolicyStepInput, targets []assignment.RawTarget) error
type User ¶
type User App
func (*User) AssignedSchedules ¶ added in v0.32.0
func (*User) AuthSubjects ¶
func (*User) CalendarSubscriptions ¶ added in v0.25.0
func (*User) ContactMethods ¶
func (a *User) ContactMethods(ctx context.Context, obj *user.User) ([]contactmethod.ContactMethod, error)
func (*User) IsFavorite ¶ added in v0.29.0
func (*User) NotificationRules ¶
func (a *User) NotificationRules(ctx context.Context, obj *user.User) ([]notificationrule.NotificationRule, error)
func (*User) OnCallOverview ¶ added in v0.33.0
func (*User) OnCallSteps ¶
type UserCalendarSubscription ¶ added in v0.25.0
type UserCalendarSubscription App
func (*UserCalendarSubscription) FullSchedule ¶ added in v0.32.0
func (a *UserCalendarSubscription) FullSchedule(ctx context.Context, obj *calsub.Subscription) (bool, error)
func (*UserCalendarSubscription) ReminderMinutes ¶ added in v0.25.0
func (a *UserCalendarSubscription) ReminderMinutes(ctx context.Context, obj *calsub.Subscription) ([]int, error)
func (*UserCalendarSubscription) Schedule ¶ added in v0.25.0
func (a *UserCalendarSubscription) Schedule(ctx context.Context, obj *calsub.Subscription) (*schedule.Schedule, error)
func (*UserCalendarSubscription) URL ¶ added in v0.25.0
func (a *UserCalendarSubscription) URL(ctx context.Context, obj *calsub.Subscription) (*string, error)
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
- calendarsubscription.go
- compat.go
- config.go
- contactmethod.go
- dataloaders.go
- destinationdisplayinfo.go
- destinationtypes.go
- destinationvalidation.go
- directives.go
- escalationpolicy.go
- expr.go
- gqlapikeys.go
- heartbeatmonitor.go
- integrationkey.go
- label.go
- limit.go
- messagelog.go
- metrics.go
- mutation.go
- notificationrule.go
- oncall.go
- parseuuid.go
- query.go
- rotation.go
- schedule.go
- schedulerule.go
- service.go
- slack.go
- swo.go
- target.go
- timezone.go
- toolbox.go
- tx.go
- user.go
- useroverride.go