graphqlapp

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 80 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompatCMTypeValToDest added in v0.33.0

func CompatCMTypeValToDest(cmType graphql2.ContactMethodType, value string) (gadb.DestV1, error)

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

func Experimental added in v0.32.0

func Experimental(ctx context.Context, obj interface{}, next graphql.Resolver, flagName string) (res interface{}, err error)

Types

type Alert

type Alert App

func (*Alert) AlertID

func (a *Alert) AlertID(ctx context.Context, raw *alert.Alert) (int, error)

func (*Alert) ID

func (a *Alert) ID(ctx context.Context, raw *alert.Alert) (string, error)

func (*Alert) Meta added in v0.33.0

func (a *Alert) Meta(ctx context.Context, alert *alert.Alert) ([]graphql2.AlertMetadata, error)

func (*Alert) MetaValue added in v0.33.0

func (a *Alert) MetaValue(ctx context.Context, alert *alert.Alert, key string) (string, error)

func (*Alert) Metrics added in v0.30.0

func (a *Alert) Metrics(ctx context.Context, raw *alert.Alert) (*alertmetrics.Metric, error)

func (*Alert) NoiseReason added in v0.31.0

func (a *Alert) NoiseReason(ctx context.Context, raw *alert.Alert) (*string, error)

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 (*Alert) Service

func (a *Alert) Service(ctx context.Context, raw *alert.Alert) (*service.Service, error)

func (*Alert) State

func (a *Alert) State(ctx context.Context, raw *alert.Alert) (*alert.State, error)

func (*Alert) Status

func (a *Alert) Status(ctx context.Context, raw *alert.Alert) (graphql2.AlertStatus, 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)

func (*AlertLogEntry) Message added in v0.23.0

func (a *AlertLogEntry) Message(ctx context.Context, obj *alertlog.Entry) (string, error)

func (*AlertLogEntry) State added in v0.25.0

func (*AlertLogEntry) Timestamp added in v0.23.0

func (a *AlertLogEntry) Timestamp(ctx context.Context, obj *alertlog.Entry) (*time.Time, 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 (*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

func (a *App) CompatTargetToDest(ctx context.Context, tgt assignment.Target) (gadb.DestV1, error)

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 *App) FindOneAlert(ctx context.Context, id int) (*alert.Alert, error)

func (*App) FindOneAlertFeedback added in v0.31.0

func (app *App) FindOneAlertFeedback(ctx context.Context, id int) (*alert.Feedback, error)

func (*App) FindOneAlertMetadata added in v0.33.0

func (app *App) FindOneAlertMetadata(ctx context.Context, id int) (map[string]string, error)

func (*App) FindOneAlertMetric added in v0.30.0

func (app *App) FindOneAlertMetric(ctx context.Context, id int) (*alertmetrics.Metric, error)

func (*App) FindOneAlertState

func (app *App) FindOneAlertState(ctx context.Context, alertID int) (*alert.State, error)

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 *App) FindOneHeartbeatMonitor(ctx context.Context, id string) (*heartbeat.Monitor, error)

func (*App) FindOneNC added in v0.30.0

func (app *App) FindOneNC(ctx context.Context, id uuid.UUID) (*notificationchannel.Channel, error)

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 *App) FindOnePolicy(ctx context.Context, id string) (*escalation.Policy, error)

func (*App) FindOneRotation

func (app *App) FindOneRotation(ctx context.Context, id string) (*rotation.Rotation, error)

func (*App) FindOneSchedule

func (app *App) FindOneSchedule(ctx context.Context, id string) (*schedule.Schedule, error)

func (*App) FindOneService

func (app *App) FindOneService(ctx context.Context, id string) (*service.Service, error)

func (*App) FindOneUser

func (app *App) FindOneUser(ctx context.Context, id string) (*user.User, error)

func (*App) GQLAPIKey added in v0.32.0

func (a *App) GQLAPIKey() graphql2.GQLAPIKeyResolver

func (*App) Handler

func (a *App) Handler() http.Handler

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

func (*App) ValidateDestination added in v0.33.0

func (a *App) ValidateDestination(ctx context.Context, fieldName string, dest *gadb.DestV1) (err error)

ValidateDestination will validate a destination input.

In the future this will be a call to the plugin system.

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 (*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 (*ContactMethod) Type added in v0.33.0

func (*ContactMethod) Value added in v0.28.0

type CreateEscalationPolicyStepInput added in v0.33.0

type CreateEscalationPolicyStepInput App

func (*CreateEscalationPolicyStepInput) Targets added in v0.33.0

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

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

type Expr added in v0.33.0

type Expr App

func (*Expr) ConditionToExpr added in v0.33.0

func (e *Expr) ConditionToExpr(ctx context.Context, _ *graphql2.Expr, input graphql2.ConditionToExprInput) (string, error)

func (*Expr) ExprToCondition added in v0.33.0

func (e *Expr) ExprToCondition(ctx context.Context, _ *graphql2.Expr, input graphql2.ExprToConditionInput) (*graphql2.Condition, error)

type FieldValuePair added in v0.32.0

type FieldValuePair App

type GQLAPIKey added in v0.32.0

type GQLAPIKey App

func (*GQLAPIKey) CreatedBy added in v0.32.0

func (a *GQLAPIKey) CreatedBy(ctx context.Context, obj *graphql2.GQLAPIKey) (*user.User, error)

func (*GQLAPIKey) UpdatedBy added in v0.32.0

func (a *GQLAPIKey) UpdatedBy(ctx context.Context, obj *graphql2.GQLAPIKey) (*user.User, error)

type HeartbeatMonitor added in v0.24.0

type HeartbeatMonitor App

func (*HeartbeatMonitor) AdditionalDetails added in v0.32.0

func (a *HeartbeatMonitor) AdditionalDetails(ctx context.Context, hb *heartbeat.Monitor) (string, error)

func (*HeartbeatMonitor) Href added in v0.24.0

func (*HeartbeatMonitor) TimeoutMinutes added in v0.24.0

func (a *HeartbeatMonitor) TimeoutMinutes(ctx context.Context, hb *heartbeat.Monitor) (int, error)

type IntegrationKey

type IntegrationKey App

func (*IntegrationKey) Config added in v0.33.0

func (*IntegrationKey) Href

func (*IntegrationKey) TokenInfo added in v0.33.0

func (*IntegrationKey) Type

type KeyConfig added in v0.33.0

type KeyConfig App

func (*KeyConfig) OneRule added in v0.33.0

func (k *KeyConfig) OneRule(ctx context.Context, key *gadb.UIKConfigV1, ruleID string) (*gadb.UIKRuleV1, 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

type Mutation

type Mutation App

func (*Mutation) AddAuthSubject

func (a *Mutation) AddAuthSubject(ctx context.Context, input user.AuthSubject) (bool, error)

func (*Mutation) ClearTemporarySchedules added in v0.27.0

func (a *Mutation) ClearTemporarySchedules(ctx context.Context, input graphql2.ClearTemporarySchedulesInput) (bool, error)

func (*Mutation) CloseMatchingAlert added in v0.32.0

func (m *Mutation) CloseMatchingAlert(ctx context.Context, input graphql2.CloseMatchingAlertInput) (bool, error)

func (*Mutation) CreateAlert added in v0.23.0

func (m *Mutation) CreateAlert(ctx context.Context, input graphql2.CreateAlertInput) (*alert.Alert, error)

func (*Mutation) CreateBasicAuth added in v0.31.0

func (a *Mutation) CreateBasicAuth(ctx context.Context, input graphql2.CreateBasicAuthInput) (bool, error)

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 (*Mutation) CreateHeartbeatMonitor added in v0.24.0

func (m *Mutation) CreateHeartbeatMonitor(ctx context.Context, input graphql2.CreateHeartbeatMonitorInput) (hb *heartbeat.Monitor, err error)

func (*Mutation) CreateIntegrationKey

func (m *Mutation) CreateIntegrationKey(ctx context.Context, input graphql2.CreateIntegrationKeyInput) (key *integrationkey.IntegrationKey, err error)

func (*Mutation) CreateRotation

func (m *Mutation) CreateRotation(ctx context.Context, input graphql2.CreateRotationInput) (result *rotation.Rotation, err error)

func (*Mutation) CreateSchedule

func (m *Mutation) CreateSchedule(ctx context.Context, input graphql2.CreateScheduleInput) (sched *schedule.Schedule, err error)

func (*Mutation) CreateService

func (m *Mutation) CreateService(ctx context.Context, input graphql2.CreateServiceInput) (result *service.Service, err error)

func (*Mutation) CreateUser added in v0.28.0

func (a *Mutation) CreateUser(ctx context.Context, input graphql2.CreateUserInput) (*user.User, error)

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 (*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 (*Mutation) DeleteAll

func (a *Mutation) DeleteAll(ctx context.Context, input []assignment.RawTarget) (bool, error)

func (*Mutation) DeleteAuthSubject

func (a *Mutation) DeleteAuthSubject(ctx context.Context, input user.AuthSubject) (bool, error)

func (*Mutation) DeleteGQLAPIKey added in v0.32.0

func (a *Mutation) DeleteGQLAPIKey(ctx context.Context, input string) (bool, error)

func (*Mutation) DeleteSecondaryToken added in v0.33.0

func (m *Mutation) DeleteSecondaryToken(ctx context.Context, keyID string) (bool, error)

func (*Mutation) EndAllAuthSessionsByCurrentUser added in v0.26.0

func (a *Mutation) EndAllAuthSessionsByCurrentUser(ctx context.Context) (bool, error)

func (*Mutation) EscalateAlerts

func (m *Mutation) EscalateAlerts(ctx context.Context, ids []int) ([]alert.Alert, error)

func (*Mutation) GenerateKeyToken added in v0.33.0

func (m *Mutation) GenerateKeyToken(ctx context.Context, keyID string) (string, error)

func (*Mutation) LinkAccount added in v0.30.0

func (a *Mutation) LinkAccount(ctx context.Context, token string) (bool, error)

func (*Mutation) PromoteSecondaryToken added in v0.33.0

func (m *Mutation) PromoteSecondaryToken(ctx context.Context, keyID string) (bool, error)

func (*Mutation) SendContactMethodVerification added in v0.23.0

func (m *Mutation) SendContactMethodVerification(ctx context.Context, input graphql2.SendContactMethodVerificationInput) (bool, error)

func (*Mutation) SetAlertNoiseReason added in v0.31.0

func (m *Mutation) SetAlertNoiseReason(ctx context.Context, input graphql2.SetAlertNoiseReasonInput) (bool, error)

func (*Mutation) SetConfig

func (m *Mutation) SetConfig(ctx context.Context, input []graphql2.ConfigValueInput) (bool, error)

func (*Mutation) SetFavorite

func (a *Mutation) SetFavorite(ctx context.Context, input graphql2.SetFavoriteInput) (bool, error)

func (*Mutation) SetLabel

func (m *Mutation) SetLabel(ctx context.Context, input graphql2.SetLabelInput) (bool, error)

func (*Mutation) SetScheduleOnCallNotificationRules added in v0.28.0

func (a *Mutation) SetScheduleOnCallNotificationRules(ctx context.Context, input graphql2.SetScheduleOnCallNotificationRulesInput) (bool, error)

func (*Mutation) SetSystemLimits added in v0.25.0

func (m *Mutation) SetSystemLimits(ctx context.Context, input []graphql2.SystemLimitInput) (bool, error)

func (*Mutation) SetTemporarySchedule added in v0.27.0

func (a *Mutation) SetTemporarySchedule(ctx context.Context, input graphql2.SetTemporaryScheduleInput) (bool, error)

func (*Mutation) SwoAction added in v0.31.0

func (m *Mutation) SwoAction(ctx context.Context, action graphql2.SWOAction) (bool, error)

func (*Mutation) TestContactMethod

func (a *Mutation) TestContactMethod(ctx context.Context, id string) (bool, error)

func (*Mutation) UpdateAlerts

func (m *Mutation) UpdateAlerts(ctx context.Context, args graphql2.UpdateAlertsInput) ([]alert.Alert, error)

func (*Mutation) UpdateAlertsByService added in v0.25.0

func (m *Mutation) UpdateAlertsByService(ctx context.Context, args graphql2.UpdateAlertsByServiceInput) (bool, error)

func (*Mutation) UpdateBasicAuth added in v0.31.0

func (a *Mutation) UpdateBasicAuth(ctx context.Context, input graphql2.UpdateBasicAuthInput) (bool, error)

func (*Mutation) UpdateEscalationPolicy

func (m *Mutation) UpdateEscalationPolicy(ctx context.Context, input graphql2.UpdateEscalationPolicyInput) (bool, error)

func (*Mutation) UpdateEscalationPolicyStep

func (m *Mutation) UpdateEscalationPolicyStep(ctx context.Context, input graphql2.UpdateEscalationPolicyStepInput) (bool, error)

func (*Mutation) UpdateGQLAPIKey added in v0.32.0

func (a *Mutation) UpdateGQLAPIKey(ctx context.Context, input graphql2.UpdateGQLAPIKeyInput) (bool, error)

func (*Mutation) UpdateHeartbeatMonitor added in v0.24.0

func (m *Mutation) UpdateHeartbeatMonitor(ctx context.Context, input graphql2.UpdateHeartbeatMonitorInput) (bool, error)

func (*Mutation) UpdateKeyConfig added in v0.33.0

func (m *Mutation) UpdateKeyConfig(ctx context.Context, input graphql2.UpdateKeyConfigInput) (bool, error)

func (*Mutation) UpdateRotation

func (m *Mutation) UpdateRotation(ctx context.Context, input graphql2.UpdateRotationInput) (res bool, err error)

func (*Mutation) UpdateSchedule

func (m *Mutation) UpdateSchedule(ctx context.Context, input graphql2.UpdateScheduleInput) (ok bool, err error)

func (*Mutation) UpdateScheduleTarget

func (m *Mutation) UpdateScheduleTarget(ctx context.Context, input graphql2.ScheduleTargetInput) (bool, error)

func (*Mutation) UpdateService

func (a *Mutation) UpdateService(ctx context.Context, input graphql2.UpdateServiceInput) (bool, error)

func (*Mutation) UpdateUser

func (a *Mutation) UpdateUser(ctx context.Context, input graphql2.UpdateUserInput) (bool, error)

func (*Mutation) UpdateUserCalendarSubscription added in v0.25.0

func (m *Mutation) UpdateUserCalendarSubscription(ctx context.Context, input graphql2.UpdateUserCalendarSubscriptionInput) (bool, error)

func (*Mutation) UpdateUserContactMethod

func (m *Mutation) UpdateUserContactMethod(ctx context.Context, input graphql2.UpdateUserContactMethodInput) (bool, error)

func (*Mutation) UpdateUserOverride

func (m *Mutation) UpdateUserOverride(ctx context.Context, input graphql2.UpdateUserOverrideInput) (bool, error)

func (*Mutation) VerifyContactMethod added in v0.23.0

func (m *Mutation) VerifyContactMethod(ctx context.Context, input graphql2.VerifyContactMethodInput) (bool, error)

type OnCallNotificationRule added in v0.28.0

type OnCallNotificationRule App

func (*OnCallNotificationRule) Dest added in v0.32.0

func (*OnCallNotificationRule) Target added in v0.28.0

type OnCallNotificationRuleInput added in v0.33.0

type OnCallNotificationRuleInput App

func (*OnCallNotificationRuleInput) Target added in v0.33.0

type OnCallShift

type OnCallShift App

func (*OnCallShift) User

func (oc *OnCallShift) User(ctx context.Context, raw *oncall.Shift) (*user.User, error)

type Query

type Query App

func (*Query) ActionInputValidate added in v0.33.0

func (q *Query) ActionInputValidate(ctx context.Context, input gadb.UIKActionV1) (bool, error)

func (*Query) Alert

func (q *Query) Alert(ctx context.Context, alertID int) (*alert.Alert, error)

func (*Query) Alerts

func (q *Query) Alerts(ctx context.Context, opts *graphql2.AlertSearchOptions) (conn *graphql2.AlertConnection, err error)

func (*Query) AuthSubjectsForProvider

func (a *Query) AuthSubjectsForProvider(ctx context.Context, _first *int, _after *string, providerID string) (conn *graphql2.AuthSubjectConnection, err error)

func (*Query) CalcRotationHandoffTimes added in v0.27.0

func (a *Query) CalcRotationHandoffTimes(ctx context.Context, input *graphql2.CalcRotationHandoffTimesInput) ([]time.Time, error)

func (*Query) Config

func (q *Query) Config(ctx context.Context, all *bool) ([]graphql2.ConfigValue, error)

func (*Query) ConfigHints added in v0.25.0

func (q *Query) ConfigHints(ctx context.Context) ([]graphql2.ConfigHint, error)

func (*Query) DebugMessageStatus added in v0.29.0

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 (a *Query) DestinationDisplayInfo(ctx context.Context, dest gadb.DestV1) (*nfydest.DisplayInfo, error)

func (*Query) DestinationFieldSearch added in v0.32.0

func (*Query) DestinationFieldValidate added in v0.32.0

func (q *Query) DestinationFieldValidate(ctx context.Context, input graphql2.DestinationFieldValidateInput) (bool, error)

func (*Query) DestinationFieldValueName added in v0.32.0

func (q *Query) DestinationFieldValueName(ctx context.Context, input graphql2.DestinationFieldValidateInput) (string, error)

func (*Query) DestinationTypes added in v0.32.0

func (q *Query) DestinationTypes(ctx context.Context, isDynamicAction *bool) ([]nfydest.TypeInfo, error)

func (*Query) EscalationPolicies

func (*Query) EscalationPolicy

func (q *Query) EscalationPolicy(ctx context.Context, id string) (*escalation.Policy, error)

func (*Query) ExperimentalFlags added in v0.31.0

func (a *Query) ExperimentalFlags(ctx context.Context) ([]string, error)

func (*Query) Expr added in v0.33.0

func (q *Query) Expr(context.Context) (*graphql2.Expr, error)

func (*Query) GenerateSlackAppManifest added in v0.28.0

func (q *Query) GenerateSlackAppManifest(ctx context.Context) (string, error)

func (*Query) GqlAPIKeys added in v0.32.0

func (q *Query) GqlAPIKeys(ctx context.Context) ([]graphql2.GQLAPIKey, error)

func (*Query) HeartbeatMonitor added in v0.24.0

func (q *Query) HeartbeatMonitor(ctx context.Context, id string) (*heartbeat.Monitor, error)

func (*Query) IntegrationKey

func (q *Query) IntegrationKey(ctx context.Context, id string) (*integrationkey.IntegrationKey, error)

func (*Query) IntegrationKeyTypes added in v0.31.0

func (a *Query) IntegrationKeyTypes(ctx context.Context) ([]graphql2.IntegrationKeyTypeInfo, error)

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 (a *Query) LinkAccountInfo(ctx context.Context, token string) (*graphql2.LinkAccountInfo, error)

func (*Query) ListGQLFields added in v0.32.0

func (q *Query) ListGQLFields(ctx context.Context, query *string) ([]string, error)

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 (a *Query) PhoneNumberInfo(ctx context.Context, number string) (*graphql2.PhoneNumberInfo, error)

func (*Query) Rotation

func (q *Query) Rotation(ctx context.Context, id string) (*rotation.Rotation, error)

func (*Query) Rotations

func (q *Query) Rotations(ctx context.Context, opts *graphql2.RotationSearchOptions) (conn *graphql2.RotationConnection, err error)

func (*Query) Schedule

func (q *Query) Schedule(ctx context.Context, id string) (*schedule.Schedule, error)

func (*Query) Schedules

func (q *Query) Schedules(ctx context.Context, opts *graphql2.ScheduleSearchOptions) (conn *graphql2.ScheduleConnection, err error)

func (*Query) Service

func (q *Query) Service(ctx context.Context, id string) (*service.Service, error)

func (*Query) Services

func (q *Query) Services(ctx context.Context, opts *graphql2.ServiceSearchOptions) (conn *graphql2.ServiceConnection, err error)

func (*Query) SlackChannel

func (q *Query) SlackChannel(ctx context.Context, id string) (*slack.Channel, error)

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

func (q *Query) SlackUserGroup(ctx context.Context, id string) (*slack.UserGroup, error)

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) SwoStatus added in v0.31.0

func (q *Query) SwoStatus(ctx context.Context) (*graphql2.SWOStatus, error)

func (*Query) SystemLimits added in v0.25.0

func (q *Query) SystemLimits(ctx context.Context) ([]graphql2.SystemLimit, error)

func (*Query) TimeZones

func (q *Query) TimeZones(ctx context.Context, input *graphql2.TimeZoneSearchOptions) (conn *graphql2.TimeZoneConnection, err error)

func (*Query) User

func (a *Query) User(ctx context.Context, id *string) (*user.User, error)

func (*Query) UserCalendarSubscription added in v0.25.0

func (q *Query) UserCalendarSubscription(ctx context.Context, id string) (*calsub.Subscription, error)

func (*Query) UserContactMethod

func (q *Query) UserContactMethod(ctx context.Context, idStr string) (*contactmethod.ContactMethod, error)

func (*Query) UserOverride

func (q *Query) UserOverride(ctx context.Context, id string) (*override.UserOverride, error)

func (*Query) UserOverrides

func (q *Query) UserOverrides(ctx context.Context, input *graphql2.UserOverrideSearchOptions) (conn *graphql2.UserOverrideConnection, err error)

func (*Query) Users

func (q *Query) Users(ctx context.Context, opts *graphql2.UserSearchOptions, first *int, after, searchStr *string) (conn *graphql2.UserConnection, err error)

type Rotation

type Rotation App

func (*Rotation) ActiveUserIndex

func (r *Rotation) ActiveUserIndex(ctx context.Context, obj *rotation.Rotation) (int, error)

func (*Rotation) IsFavorite added in v0.23.0

func (r *Rotation) IsFavorite(ctx context.Context, rot *rotation.Rotation) (bool, error)

func (*Rotation) NextHandoffTimes

func (r *Rotation) NextHandoffTimes(ctx context.Context, rot *rotation.Rotation, num *int) ([]time.Time, error)

func (*Rotation) TimeZone

func (r *Rotation) TimeZone(ctx context.Context, rot *rotation.Rotation) (string, error)

func (*Rotation) UserIDs

func (r *Rotation) UserIDs(ctx context.Context, rot *rotation.Rotation) ([]string, error)

func (*Rotation) Users

func (r *Rotation) Users(ctx context.Context, rot *rotation.Rotation) ([]user.User, error)

type Schedule

type Schedule App

func (*Schedule) AssignedTo

func (s *Schedule) AssignedTo(ctx context.Context, raw *schedule.Schedule) ([]assignment.RawTarget, error)

func (*Schedule) IsFavorite added in v0.23.0

func (s *Schedule) IsFavorite(ctx context.Context, raw *schedule.Schedule) (bool, error)

func (*Schedule) OnCallNotificationRules added in v0.28.0

func (s *Schedule) OnCallNotificationRules(ctx context.Context, raw *schedule.Schedule) ([]schedule.OnCallNotificationRule, error)

func (*Schedule) Shifts

func (s *Schedule) Shifts(ctx context.Context, raw *schedule.Schedule, start, end time.Time, userIDs []string) ([]oncall.Shift, error)

func (*Schedule) Target

func (*Schedule) Targets

func (*Schedule) TemporarySchedules added in v0.27.0

func (s *Schedule) TemporarySchedules(ctx context.Context, raw *schedule.Schedule) ([]schedule.TemporarySchedule, error)

func (*Schedule) TimeZone

func (r *Schedule) TimeZone(ctx context.Context, data *schedule.Schedule) (string, 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

func (r *ScheduleRule) WeekdayFilter(ctx context.Context, raw *rule.Rule) ([]bool, error)

type Service

type Service App

func (*Service) EscalationPolicy

func (s *Service) EscalationPolicy(ctx context.Context, raw *service.Service) (*escalation.Policy, error)

func (*Service) HeartbeatMonitors added in v0.24.0

func (s *Service) HeartbeatMonitors(ctx context.Context, raw *service.Service) ([]heartbeat.Monitor, error)

func (*Service) IntegrationKeys

func (s *Service) IntegrationKeys(ctx context.Context, raw *service.Service) ([]integrationkey.IntegrationKey, error)

func (*Service) IsFavorite

func (s *Service) IsFavorite(ctx context.Context, raw *service.Service) (bool, error)

func (*Service) Labels

func (s *Service) Labels(ctx context.Context, raw *service.Service) ([]label.Label, error)

func (*Service) Notices added in v0.31.0

func (s *Service) Notices(ctx context.Context, raw *service.Service) ([]notice.Notice, error)

func (*Service) OnCallUsers

func (s *Service) OnCallUsers(ctx context.Context, raw *service.Service) ([]oncall.ServiceOnCallUser, error)

type Target

type Target App

func (*Target) Name

func (t *Target) Name(ctx context.Context, raw *assignment.RawTarget) (string, error)

type TemporarySchedule added in v0.27.0

type TemporarySchedule App

func (*TemporarySchedule) Shifts added in v0.27.0

type UpdateEscalationPolicyStepInput added in v0.33.0

type UpdateEscalationPolicyStepInput App

func (*UpdateEscalationPolicyStepInput) Targets added in v0.33.0

type User

type User App

func (*User) AssignedSchedules added in v0.32.0

func (a *User) AssignedSchedules(ctx context.Context, obj *user.User) (schedules []schedule.Schedule, err error)

func (*User) AuthSubjects

func (a *User) AuthSubjects(ctx context.Context, obj *user.User) ([]user.AuthSubject, error)

func (*User) CalendarSubscriptions added in v0.25.0

func (a *User) CalendarSubscriptions(ctx context.Context, obj *user.User) ([]calsub.Subscription, error)

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 (a *User) IsFavorite(ctx context.Context, raw *user.User) (bool, error)

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 (a *User) OnCallOverview(ctx context.Context, obj *user.User) (*graphql2.OnCallOverview, error)

func (*User) OnCallSteps

func (a *User) OnCallSteps(ctx context.Context, obj *user.User) ([]escalation.Step, error)

func (*User) Role

func (a *User) Role(ctx context.Context, usr *user.User) (graphql2.UserRole, error)

func (*User) Sessions added in v0.26.0

func (a *User) Sessions(ctx context.Context, obj *user.User) ([]graphql2.UserSession, error)

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 (*UserCalendarSubscription) URL added in v0.25.0

type UserNotificationRule

type UserNotificationRule App

func (*UserNotificationRule) ContactMethod

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL