gadb

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyDeleteParams added in v0.32.0

type APIKeyDeleteParams struct {
	ID        uuid.UUID
	DeletedBy uuid.NullUUID
}

type APIKeyForUpdateRow added in v0.32.0

type APIKeyForUpdateRow struct {
	Name        string
	Description string
}

type APIKeyInsertParams added in v0.32.0

type APIKeyInsertParams struct {
	ID          uuid.UUID
	Name        string
	Description string
	Policy      json.RawMessage
	CreatedBy   uuid.NullUUID
	UpdatedBy   uuid.NullUUID
	ExpiresAt   time.Time
}

type APIKeyListRow added in v0.32.0

type APIKeyListRow struct {
	CreatedAt     time.Time
	CreatedBy     uuid.NullUUID
	DeletedAt     sql.NullTime
	DeletedBy     uuid.NullUUID
	Description   string
	ExpiresAt     time.Time
	ID            uuid.UUID
	Name          string
	Policy        json.RawMessage
	UpdatedAt     time.Time
	UpdatedBy     uuid.NullUUID
	LastUsedAt    sql.NullTime
	LastUserAgent sql.NullString
	LastIpAddress pqtype.Inet
}

type APIKeyRecordUsageParams added in v0.32.0

type APIKeyRecordUsageParams struct {
	KeyID     uuid.UUID
	UserAgent string
	IpAddress pqtype.Inet
}

type APIKeyUpdateParams added in v0.32.0

type APIKeyUpdateParams struct {
	ID          uuid.UUID
	Name        string
	Description string
	UpdatedBy   uuid.NullUUID
}

type Alert

type Alert struct {
	CreatedAt       time.Time
	DedupKey        sql.NullString
	Details         string
	EscalationLevel int32
	ID              int64
	LastEscalation  sql.NullTime
	LastProcessed   sql.NullTime
	ServiceID       uuid.NullUUID
	Source          EnumAlertSource
	Status          EnumAlertStatus
	Summary         string
}

type AlertDatum added in v0.33.0

type AlertDatum struct {
	AlertID  int64
	ID       int64
	Metadata pqtype.NullRawMessage
}

type AlertFeedback

type AlertFeedback struct {
	AlertID     int64
	ID          int64
	NoiseReason string
}

type AlertLog

type AlertLog struct {
	AlertID             sql.NullInt64
	Event               EnumAlertLogEvent
	ID                  int64
	Message             string
	Meta                pqtype.NullRawMessage
	SubChannelID        uuid.NullUUID
	SubClassifier       string
	SubHbMonitorID      uuid.NullUUID
	SubIntegrationKeyID uuid.NullUUID
	SubType             NullEnumAlertLogSubjectType
	SubUserID           uuid.NullUUID
	Timestamp           sql.NullTime
}

type AlertLog_InsertEPParams added in v0.34.0

type AlertLog_InsertEPParams struct {
	EscalationPolicyID  uuid.UUID
	Event               EnumAlertLogEvent
	SubType             NullEnumAlertLogSubjectType
	SubUserID           uuid.NullUUID
	SubIntegrationKeyID uuid.NullUUID
	SubHbMonitorID      uuid.NullUUID
	SubChannelID        uuid.NullUUID
	SubClassifier       string
	Meta                pqtype.NullRawMessage
	Message             string
}

type AlertLog_InsertManyParams added in v0.34.0

type AlertLog_InsertManyParams struct {
	Column1             []int64
	Event               EnumAlertLogEvent
	SubType             NullEnumAlertLogSubjectType
	SubUserID           uuid.NullUUID
	SubIntegrationKeyID uuid.NullUUID
	SubHbMonitorID      uuid.NullUUID
	SubChannelID        uuid.NullUUID
	SubClassifier       string
	Meta                pqtype.NullRawMessage
	Message             string
}

type AlertLog_InsertSvcParams added in v0.34.0

type AlertLog_InsertSvcParams struct {
	ServiceID           uuid.NullUUID
	Event               EnumAlertLogEvent
	SubType             NullEnumAlertLogSubjectType
	SubUserID           uuid.NullUUID
	SubIntegrationKeyID uuid.NullUUID
	SubHbMonitorID      uuid.NullUUID
	SubChannelID        uuid.NullUUID
	SubClassifier       string
	Meta                pqtype.NullRawMessage
	Message             string
}

type AlertMetric

type AlertMetric struct {
	AlertID     int64
	ClosedAt    time.Time
	Escalated   bool
	ID          int64
	ServiceID   uuid.UUID
	TimeToAck   sql.NullInt64
	TimeToClose sql.NullInt64
}

type AlertStatusSubscription

type AlertStatusSubscription struct {
	AlertID         int64
	ChannelID       uuid.NullUUID
	ContactMethodID uuid.NullUUID
	ID              int64
	LastAlertStatus EnumAlertStatus
	UpdatedAt       time.Time
}

type Alert_GetAlertFeedbackRow added in v0.34.0

type Alert_GetAlertFeedbackRow struct {
	AlertID     int64
	NoiseReason string
}

type Alert_GetAlertManyMetadataRow added in v0.34.0

type Alert_GetAlertManyMetadataRow struct {
	AlertID  int64
	Metadata pqtype.NullRawMessage
}

type Alert_LockOneAlertServiceRow added in v0.34.0

type Alert_LockOneAlertServiceRow struct {
	IsMaintMode bool
	Status      EnumAlertStatus
}

type Alert_RequestAlertEscalationByTimeParams added in v0.34.0

type Alert_RequestAlertEscalationByTimeParams struct {
	AlertID int64
	Column2 time.Time
}

type Alert_SetAlertFeedbackParams added in v0.34.0

type Alert_SetAlertFeedbackParams struct {
	AlertID     int64
	NoiseReason string
}

type Alert_SetAlertMetadataParams added in v0.34.0

type Alert_SetAlertMetadataParams struct {
	ID        int64
	Metadata  pqtype.NullRawMessage
	ServiceID uuid.NullUUID
}

type Alert_SetManyAlertFeedbackParams added in v0.34.0

type Alert_SetManyAlertFeedbackParams struct {
	AlertIds    []int64
	NoiseReason string
}

type AllPendingMsgDestsParams

type AllPendingMsgDestsParams struct {
	AlertID   int64
	ServiceID uuid.UUID
}

type AllPendingMsgDestsRow

type AllPendingMsgDestsRow struct {
	UserName sql.NullString
	CmDest   NullDestV1
	NcName   sql.NullString
	NcDest   NullDestV1
}

type AuthBasicUser

type AuthBasicUser struct {
	ID           int64
	PasswordHash string
	UserID       uuid.UUID
	Username     string
}

type AuthLinkAddAuthSubjectParams

type AuthLinkAddAuthSubjectParams struct {
	ProviderID string
	SubjectID  string
	UserID     uuid.UUID
}

type AuthLinkAddReqParams

type AuthLinkAddReqParams struct {
	ID         uuid.UUID
	ProviderID string
	SubjectID  string
	ExpiresAt  time.Time
	Metadata   json.RawMessage
}

type AuthLinkRequest

type AuthLinkRequest struct {
	CreatedAt  time.Time
	ExpiresAt  time.Time
	ID         uuid.UUID
	Metadata   json.RawMessage
	ProviderID string
	SubjectID  string
}

type AuthLinkUseReqRow

type AuthLinkUseReqRow struct {
	ProviderID string
	SubjectID  string
}

type AuthNonce

type AuthNonce struct {
	CreatedAt time.Time
	ID        uuid.UUID
}

type AuthSubject

type AuthSubject struct {
	CmID       uuid.NullUUID
	ID         int64
	ProviderID string
	SubjectID  string
	UserID     uuid.UUID
}

type AuthUserSession

type AuthUserSession struct {
	CreatedAt    time.Time
	ID           uuid.UUID
	LastAccessAt time.Time
	UserAgent    string
	UserID       uuid.NullUUID
}

type CalSubAuthUserParams

type CalSubAuthUserParams struct {
	ID        uuid.UUID
	CreatedAt time.Time
}

type CalSubRenderInfoRow

type CalSubRenderInfoRow struct {
	Now          time.Time
	ScheduleID   uuid.UUID
	ScheduleName string
	Config       json.RawMessage
	UserID       uuid.UUID
}

type CalSubUserNamesRow added in v0.32.0

type CalSubUserNamesRow struct {
	ID   uuid.UUID
	Name string
}

type ChangeLog added in v0.33.0

type ChangeLog struct {
	ID        int64
	TableName string
	RowID     string
}

type CleanupAlertLogsParams added in v0.34.0

type CleanupAlertLogsParams struct {
	BatchSize int32
	StartID   int64
	EndID     int64
}

type CleanupMgrAlertLogsMinMaxRow added in v0.34.0

type CleanupMgrAlertLogsMinMaxRow struct {
	MinID int64
	MaxID int64
}

type CleanupMgrFindStaleAlertsParams added in v0.34.0

type CleanupMgrFindStaleAlertsParams struct {
	IncludeAcked           interface{}
	AutoCloseThresholdDays interface{}
}

type CleanupMgrUpdateScheduleDataParams added in v0.34.0

type CleanupMgrUpdateScheduleDataParams struct {
	ScheduleID uuid.UUID
	Data       json.RawMessage
}

type CompatAuthSubSetCMIDParams added in v0.34.0

type CompatAuthSubSetCMIDParams struct {
	ID    int64
	Value string
}

type CompatCMMissingSubRow added in v0.34.0

type CompatCMMissingSubRow struct {
	ID     uuid.UUID
	UserID uuid.UUID
	Value  string
}

type CompatInsertUserCMParams added in v0.34.0

type CompatInsertUserCMParams struct {
	ID     uuid.UUID
	Name   string
	Type   EnumUserContactMethodType
	Value  string
	UserID uuid.UUID
}

type CompatUpsertAuthSubjectParams added in v0.34.0

type CompatUpsertAuthSubjectParams struct {
	UserID     uuid.UUID
	SubjectID  string
	ProviderID string
	CmID       uuid.NullUUID
}

type Config

type Config struct {
	CreatedAt time.Time
	Data      []byte
	ID        int32
	Schema    int32
}

type ConfigLimit

type ConfigLimit struct {
	ID  EnumLimitType
	Max int32
}

type ConnectionInfoRow added in v0.33.0

type ConnectionInfoRow struct {
	Name  sql.NullString
	Count int64
}

type ContactMethodAddParams added in v0.32.0

type ContactMethodAddParams struct {
	ID                  uuid.UUID
	Name                string
	Dest                NullDestV1
	Disabled            bool
	UserID              uuid.UUID
	EnableStatusUpdates bool
}

type ContactMethodEnableDisableParams added in v0.33.0

type ContactMethodEnableDisableParams struct {
	Dest     NullDestV1
	Disabled bool
}

type ContactMethodMetaDestRow added in v0.33.0

type ContactMethodMetaDestRow struct {
	Metadata json.RawMessage
	Now      time.Time
}

type ContactMethodUpdateMetaDestParams added in v0.33.0

type ContactMethodUpdateMetaDestParams struct {
	Dest      NullDestV1
	CarrierV1 json.RawMessage
}

type ContactMethodUpdateParams added in v0.32.0

type ContactMethodUpdateParams struct {
	ID                  uuid.UUID
	Name                string
	Disabled            bool
	EnableStatusUpdates bool
}

type CreateCalSubParams

type CreateCalSubParams struct {
	ID         uuid.UUID
	Name       string
	UserID     uuid.UUID
	Disabled   bool
	ScheduleID uuid.UUID
	Config     json.RawMessage
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type DatabaseInfoRow added in v0.33.0

type DatabaseInfoRow struct {
	ID      uuid.UUID
	Version string
}

type DeleteManyCalSubParams

type DeleteManyCalSubParams struct {
	Column1 []uuid.UUID
	UserID  uuid.UUID
}

type DestHashV1 added in v0.33.0

type DestHashV1 [32]byte

type DestV1 added in v0.33.0

type DestV1 struct {
	Args map[string]string
	Type string
}

func NewDestV1 added in v0.33.0

func NewDestV1(typeID string, args ...string) DestV1

func (DestV1) Arg added in v0.33.0

func (ns DestV1) Arg(name string) string

func (DestV1) DestHash added in v0.33.0

func (ns DestV1) DestHash() DestHashV1

func (DestV1) Equal added in v0.33.0

func (ns DestV1) Equal(other DestV1) bool

func (*DestV1) Scan added in v0.33.0

func (ns *DestV1) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*DestV1) SetArg added in v0.33.0

func (ns *DestV1) SetArg(name, value string)

func (DestV1) String added in v0.33.0

func (ns DestV1) String() string

func (DestV1) Value added in v0.33.0

func (ns DestV1) Value() (interface{}, error)

Value implements the driver Valuer interface.

type EPStepActionsAddActionParams added in v0.33.0

type EPStepActionsAddActionParams struct {
	EscalationPolicyStepID uuid.UUID
	UserID                 uuid.NullUUID
	ScheduleID             uuid.NullUUID
	RotationID             uuid.NullUUID
	ChannelID              uuid.NullUUID
}

type EPStepActionsByStepIdRow added in v0.33.0

type EPStepActionsByStepIdRow struct {
	UserID     uuid.NullUUID
	ScheduleID uuid.NullUUID
	RotationID uuid.NullUUID
	Dest       NullDestV1
}

type EPStepActionsDeleteActionParams added in v0.33.0

type EPStepActionsDeleteActionParams struct {
	EscalationPolicyStepID uuid.UUID
	UserID                 uuid.NullUUID
	ScheduleID             uuid.NullUUID
	RotationID             uuid.NullUUID
	ChannelID              uuid.NullUUID
}

type EngineProcessingType

type EngineProcessingType string
const (
	EngineProcessingTypeCleanup      EngineProcessingType = "cleanup"
	EngineProcessingTypeCompat       EngineProcessingType = "compat"
	EngineProcessingTypeEscalation   EngineProcessingType = "escalation"
	EngineProcessingTypeHeartbeat    EngineProcessingType = "heartbeat"
	EngineProcessingTypeMessage      EngineProcessingType = "message"
	EngineProcessingTypeMetrics      EngineProcessingType = "metrics"
	EngineProcessingTypeNpCycle      EngineProcessingType = "np_cycle"
	EngineProcessingTypeRotation     EngineProcessingType = "rotation"
	EngineProcessingTypeSchedule     EngineProcessingType = "schedule"
	EngineProcessingTypeSignals      EngineProcessingType = "signals"
	EngineProcessingTypeStatusUpdate EngineProcessingType = "status_update"
	EngineProcessingTypeVerify       EngineProcessingType = "verify"
)

func (*EngineProcessingType) Scan

func (e *EngineProcessingType) Scan(src interface{}) error

type EngineProcessingVersion

type EngineProcessingVersion struct {
	State   json.RawMessage
	TypeID  EngineProcessingType
	Version int32
}

type EntityUpdate added in v0.34.0

type EntityUpdate struct {
	CreatedAt  time.Time
	EntityID   uuid.UUID
	EntityType string
	ID         int64
}

type EnumAlertLogEvent

type EnumAlertLogEvent string
const (
	EnumAlertLogEventAcknowledged        EnumAlertLogEvent = "acknowledged"
	EnumAlertLogEventAssignmentChanged   EnumAlertLogEvent = "assignment_changed"
	EnumAlertLogEventClosed              EnumAlertLogEvent = "closed"
	EnumAlertLogEventCreated             EnumAlertLogEvent = "created"
	EnumAlertLogEventDuplicateSuppressed EnumAlertLogEvent = "duplicate_suppressed"
	EnumAlertLogEventEscalated           EnumAlertLogEvent = "escalated"
	EnumAlertLogEventEscalationRequest   EnumAlertLogEvent = "escalation_request"
	EnumAlertLogEventNoNotificationSent  EnumAlertLogEvent = "no_notification_sent"
	EnumAlertLogEventNotificationSent    EnumAlertLogEvent = "notification_sent"
	EnumAlertLogEventPolicyUpdated       EnumAlertLogEvent = "policy_updated"
	EnumAlertLogEventReopened            EnumAlertLogEvent = "reopened"
	EnumAlertLogEventResponseReceived    EnumAlertLogEvent = "response_received"
	EnumAlertLogEventStatusChanged       EnumAlertLogEvent = "status_changed"
)

func (*EnumAlertLogEvent) Scan

func (e *EnumAlertLogEvent) Scan(src interface{}) error

type EnumAlertLogSubjectType

type EnumAlertLogSubjectType string
const (
	EnumAlertLogSubjectTypeChannel          EnumAlertLogSubjectType = "channel"
	EnumAlertLogSubjectTypeHeartbeatMonitor EnumAlertLogSubjectType = "heartbeat_monitor"
	EnumAlertLogSubjectTypeIntegrationKey   EnumAlertLogSubjectType = "integration_key"
	EnumAlertLogSubjectTypeUser             EnumAlertLogSubjectType = "user"
)

func (*EnumAlertLogSubjectType) Scan

func (e *EnumAlertLogSubjectType) Scan(src interface{}) error

type EnumAlertSource

type EnumAlertSource string
const (
	EnumAlertSourceEmail                  EnumAlertSource = "email"
	EnumAlertSourceGeneric                EnumAlertSource = "generic"
	EnumAlertSourceGrafana                EnumAlertSource = "grafana"
	EnumAlertSourceManual                 EnumAlertSource = "manual"
	EnumAlertSourcePrometheusAlertmanager EnumAlertSource = "prometheusAlertmanager"
	EnumAlertSourceSite24x7               EnumAlertSource = "site24x7"
	EnumAlertSourceUniversal              EnumAlertSource = "universal"
)

func (*EnumAlertSource) Scan

func (e *EnumAlertSource) Scan(src interface{}) error

type EnumAlertStatus

type EnumAlertStatus string
const (
	EnumAlertStatusActive    EnumAlertStatus = "active"
	EnumAlertStatusClosed    EnumAlertStatus = "closed"
	EnumAlertStatusTriggered EnumAlertStatus = "triggered"
)

func (*EnumAlertStatus) Scan

func (e *EnumAlertStatus) Scan(src interface{}) error

type EnumHeartbeatState

type EnumHeartbeatState string
const (
	EnumHeartbeatStateHealthy   EnumHeartbeatState = "healthy"
	EnumHeartbeatStateInactive  EnumHeartbeatState = "inactive"
	EnumHeartbeatStateUnhealthy EnumHeartbeatState = "unhealthy"
)

func (*EnumHeartbeatState) Scan

func (e *EnumHeartbeatState) Scan(src interface{}) error

type EnumIntegrationKeysType

type EnumIntegrationKeysType string
const (
	EnumIntegrationKeysTypeEmail                  EnumIntegrationKeysType = "email"
	EnumIntegrationKeysTypeGeneric                EnumIntegrationKeysType = "generic"
	EnumIntegrationKeysTypeGrafana                EnumIntegrationKeysType = "grafana"
	EnumIntegrationKeysTypePrometheusAlertmanager EnumIntegrationKeysType = "prometheusAlertmanager"
	EnumIntegrationKeysTypeSite24x7               EnumIntegrationKeysType = "site24x7"
	EnumIntegrationKeysTypeUniversal              EnumIntegrationKeysType = "universal"
)

func (*EnumIntegrationKeysType) Scan

func (e *EnumIntegrationKeysType) Scan(src interface{}) error

type EnumLimitType

type EnumLimitType string
const (
	EnumLimitTypeCalendarSubscriptionsPerUser    EnumLimitType = "calendar_subscriptions_per_user"
	EnumLimitTypeContactMethodsPerUser           EnumLimitType = "contact_methods_per_user"
	EnumLimitTypeEpActionsPerStep                EnumLimitType = "ep_actions_per_step"
	EnumLimitTypeEpStepsPerPolicy                EnumLimitType = "ep_steps_per_policy"
	EnumLimitTypeHeartbeatMonitorsPerService     EnumLimitType = "heartbeat_monitors_per_service"
	EnumLimitTypeIntegrationKeysPerService       EnumLimitType = "integration_keys_per_service"
	EnumLimitTypeNotificationRulesPerUser        EnumLimitType = "notification_rules_per_user"
	EnumLimitTypeParticipantsPerRotation         EnumLimitType = "participants_per_rotation"
	EnumLimitTypePendingSignalsPerDestPerService EnumLimitType = "pending_signals_per_dest_per_service"
	EnumLimitTypePendingSignalsPerService        EnumLimitType = "pending_signals_per_service"
	EnumLimitTypeRulesPerSchedule                EnumLimitType = "rules_per_schedule"
	EnumLimitTypeTargetsPerSchedule              EnumLimitType = "targets_per_schedule"
	EnumLimitTypeUnackedAlertsPerService         EnumLimitType = "unacked_alerts_per_service"
	EnumLimitTypeUserOverridesPerSchedule        EnumLimitType = "user_overrides_per_schedule"
)

func (*EnumLimitType) Scan

func (e *EnumLimitType) Scan(src interface{}) error

type EnumNotifChannelType

type EnumNotifChannelType string
const (
	EnumNotifChannelTypeDEST           EnumNotifChannelType = "DEST"
	EnumNotifChannelTypeSLACK          EnumNotifChannelType = "SLACK"
	EnumNotifChannelTypeSLACKUSERGROUP EnumNotifChannelType = "SLACK_USER_GROUP"
	EnumNotifChannelTypeWEBHOOK        EnumNotifChannelType = "WEBHOOK"
)

func (*EnumNotifChannelType) Scan

func (e *EnumNotifChannelType) Scan(src interface{}) error

type EnumOutgoingMessagesStatus

type EnumOutgoingMessagesStatus string
const (
	EnumOutgoingMessagesStatusBundled        EnumOutgoingMessagesStatus = "bundled"
	EnumOutgoingMessagesStatusDelivered      EnumOutgoingMessagesStatus = "delivered"
	EnumOutgoingMessagesStatusFailed         EnumOutgoingMessagesStatus = "failed"
	EnumOutgoingMessagesStatusPending        EnumOutgoingMessagesStatus = "pending"
	EnumOutgoingMessagesStatusQueuedRemotely EnumOutgoingMessagesStatus = "queued_remotely"
	EnumOutgoingMessagesStatusRead           EnumOutgoingMessagesStatus = "read"
	EnumOutgoingMessagesStatusSending        EnumOutgoingMessagesStatus = "sending"
	EnumOutgoingMessagesStatusSent           EnumOutgoingMessagesStatus = "sent"
)

func (*EnumOutgoingMessagesStatus) Scan

func (e *EnumOutgoingMessagesStatus) Scan(src interface{}) error

type EnumOutgoingMessagesType

type EnumOutgoingMessagesType string
const (
	EnumOutgoingMessagesTypeAlertNotification          EnumOutgoingMessagesType = "alert_notification"
	EnumOutgoingMessagesTypeAlertNotificationBundle    EnumOutgoingMessagesType = "alert_notification_bundle"
	EnumOutgoingMessagesTypeAlertStatusUpdate          EnumOutgoingMessagesType = "alert_status_update"
	EnumOutgoingMessagesTypeAlertStatusUpdateBundle    EnumOutgoingMessagesType = "alert_status_update_bundle"
	EnumOutgoingMessagesTypeScheduleOnCallNotification EnumOutgoingMessagesType = "schedule_on_call_notification"
	EnumOutgoingMessagesTypeSignalMessage              EnumOutgoingMessagesType = "signal_message"
	EnumOutgoingMessagesTypeTestNotification           EnumOutgoingMessagesType = "test_notification"
	EnumOutgoingMessagesTypeVerificationMessage        EnumOutgoingMessagesType = "verification_message"
)

func (*EnumOutgoingMessagesType) Scan

func (e *EnumOutgoingMessagesType) Scan(src interface{}) error

type EnumRotationType

type EnumRotationType string
const (
	EnumRotationTypeDaily   EnumRotationType = "daily"
	EnumRotationTypeHourly  EnumRotationType = "hourly"
	EnumRotationTypeMonthly EnumRotationType = "monthly"
	EnumRotationTypeWeekly  EnumRotationType = "weekly"
)

func (*EnumRotationType) Scan

func (e *EnumRotationType) Scan(src interface{}) error

type EnumSwitchoverState

type EnumSwitchoverState string
const (
	EnumSwitchoverStateIdle       EnumSwitchoverState = "idle"
	EnumSwitchoverStateInProgress EnumSwitchoverState = "in_progress"
	EnumSwitchoverStateUseNextDb  EnumSwitchoverState = "use_next_db"
)

func (*EnumSwitchoverState) Scan

func (e *EnumSwitchoverState) Scan(src interface{}) error

type EnumThrottleType

type EnumThrottleType string
const (
	EnumThrottleTypeNotifications  EnumThrottleType = "notifications"
	EnumThrottleTypeNotifications2 EnumThrottleType = "notifications_2"
)

func (*EnumThrottleType) Scan

func (e *EnumThrottleType) Scan(src interface{}) error

type EnumUserContactMethodType

type EnumUserContactMethodType string
const (
	EnumUserContactMethodTypeDEST    EnumUserContactMethodType = "DEST"
	EnumUserContactMethodTypeEMAIL   EnumUserContactMethodType = "EMAIL"
	EnumUserContactMethodTypePUSH    EnumUserContactMethodType = "PUSH"
	EnumUserContactMethodTypeSLACKDM EnumUserContactMethodType = "SLACK_DM"
	EnumUserContactMethodTypeSMS     EnumUserContactMethodType = "SMS"
	EnumUserContactMethodTypeVOICE   EnumUserContactMethodType = "VOICE"
	EnumUserContactMethodTypeWEBHOOK EnumUserContactMethodType = "WEBHOOK"
)

func (*EnumUserContactMethodType) Scan

func (e *EnumUserContactMethodType) Scan(src interface{}) error

type EnumUserRole

type EnumUserRole string
const (
	EnumUserRoleAdmin   EnumUserRole = "admin"
	EnumUserRoleUnknown EnumUserRole = "unknown"
	EnumUserRoleUser    EnumUserRole = "user"
)

func (*EnumUserRole) Scan

func (e *EnumUserRole) Scan(src interface{}) error

type EpStepOnCallUser

type EpStepOnCallUser struct {
	EndTime   sql.NullTime
	EpStepID  uuid.UUID
	ID        int64
	StartTime time.Time
	UserID    uuid.UUID
}

type EscalationPolicy

type EscalationPolicy struct {
	Description string
	ID          uuid.UUID
	Name        string
	Repeat      int32
	StepCount   int32
}

type EscalationPolicyAction

type EscalationPolicyAction struct {
	ChannelID              uuid.NullUUID
	EscalationPolicyStepID uuid.UUID
	ID                     uuid.UUID
	RotationID             uuid.NullUUID
	ScheduleID             uuid.NullUUID
	UserID                 uuid.NullUUID
}

type EscalationPolicyState

type EscalationPolicyState struct {
	AlertID                    int64
	EscalationPolicyID         uuid.UUID
	EscalationPolicyStepID     uuid.NullUUID
	EscalationPolicyStepNumber int32
	ForceEscalation            bool
	ID                         int64
	LastEscalation             sql.NullTime
	LoopCount                  int32
	NextEscalation             sql.NullTime
	ServiceID                  uuid.UUID
}

type EscalationPolicyStep

type EscalationPolicyStep struct {
	Delay              int32
	EscalationPolicyID uuid.UUID
	ID                 uuid.UUID
	StepNumber         int32
}

type FindManyCalSubByUserRow

type FindManyCalSubByUserRow struct {
	ID         uuid.UUID
	Name       string
	UserID     uuid.UUID
	Disabled   bool
	ScheduleID uuid.UUID
	Config     json.RawMessage
	LastAccess sql.NullTime
}

type FindOneCalSubForUpdateRow

type FindOneCalSubForUpdateRow struct {
	ID         uuid.UUID
	Name       string
	UserID     uuid.UUID
	Disabled   bool
	ScheduleID uuid.UUID
	Config     json.RawMessage
	LastAccess sql.NullTime
}

type FindOneCalSubRow

type FindOneCalSubRow struct {
	ID         uuid.UUID
	Name       string
	UserID     uuid.UUID
	Disabled   bool
	ScheduleID uuid.UUID
	Config     json.RawMessage
	LastAccess sql.NullTime
}

type ForeignKeyRefsRow added in v0.33.0

type ForeignKeyRefsRow struct {
	SrcRelname string
	DstRelname string
}

type GQLUserOnCallOverviewRow added in v0.33.0

type GQLUserOnCallOverviewRow struct {
	ServiceID   uuid.UUID
	ServiceName string
	PolicyID    uuid.UUID
	PolicyName  string
	StepNumber  int32
}

type GorpMigration

type GorpMigration struct {
	AppliedAt sql.NullTime
	ID        string
}

type GqlApiKey added in v0.32.0

type GqlApiKey struct {
	CreatedAt   time.Time
	CreatedBy   uuid.NullUUID
	DeletedAt   sql.NullTime
	DeletedBy   uuid.NullUUID
	Description string
	ExpiresAt   time.Time
	ID          uuid.UUID
	Name        string
	Policy      json.RawMessage
	UpdatedAt   time.Time
	UpdatedBy   uuid.NullUUID
}

type GqlApiKeyUsage added in v0.32.0

type GqlApiKeyUsage struct {
	ApiKeyID  uuid.NullUUID
	ID        int64
	IpAddress pqtype.Inet
	UsedAt    time.Time
	UserAgent sql.NullString
}

type HBInsertParams added in v0.34.0

type HBInsertParams struct {
	ID                uuid.UUID
	Name              string
	ServiceID         uuid.UUID
	HeartbeatInterval sqlutil.Interval
	AdditionalDetails sql.NullString
	Muted             sql.NullString
}

type HBUpdateParams added in v0.34.0

type HBUpdateParams struct {
	Name              string
	HeartbeatInterval sqlutil.Interval
	AdditionalDetails sql.NullString
	Muted             sql.NullString
	ID                uuid.UUID
}

type HeartbeatMonitor

type HeartbeatMonitor struct {
	AdditionalDetails sql.NullString
	HeartbeatInterval sqlutil.Interval
	ID                uuid.UUID
	LastHeartbeat     sql.NullTime
	LastState         EnumHeartbeatState
	Muted             sql.NullString
	Name              string
	ServiceID         uuid.UUID
}

type IntKeyCreateParams added in v0.32.0

type IntKeyCreateParams struct {
	ID                 uuid.UUID
	Name               string
	Type               EnumIntegrationKeysType
	ServiceID          uuid.UUID
	ExternalSystemName sql.NullString
}

type IntKeyFindByServiceRow added in v0.32.0

type IntKeyFindByServiceRow struct {
	ID                 uuid.UUID
	Name               string
	Type               EnumIntegrationKeysType
	ServiceID          uuid.UUID
	ExternalSystemName sql.NullString
}

type IntKeyFindOneRow added in v0.32.0

type IntKeyFindOneRow struct {
	ID                 uuid.UUID
	Name               string
	Type               EnumIntegrationKeysType
	ServiceID          uuid.UUID
	ExternalSystemName sql.NullString
}

type IntKeyGetServiceIDParams added in v0.32.0

type IntKeyGetServiceIDParams struct {
	ID   uuid.UUID
	Type EnumIntegrationKeysType
}

type IntKeyInsertSignalMessageParams added in v0.33.0

type IntKeyInsertSignalMessageParams struct {
	DestID    uuid.UUID
	ServiceID uuid.UUID
	Params    json.RawMessage
}

type IntKeySetConfigParams added in v0.33.0

type IntKeySetConfigParams struct {
	ID     uuid.UUID
	Config UIKConfig
}

type IntKeySetPrimaryTokenParams added in v0.33.0

type IntKeySetPrimaryTokenParams struct {
	ID               uuid.UUID
	PrimaryToken     uuid.NullUUID
	PrimaryTokenHint sql.NullString
}

type IntKeySetSecondaryTokenParams added in v0.33.0

type IntKeySetSecondaryTokenParams struct {
	ID                 uuid.UUID
	SecondaryToken     uuid.NullUUID
	SecondaryTokenHint sql.NullString
}

type IntKeyTokenHintsRow added in v0.33.0

type IntKeyTokenHintsRow struct {
	PrimaryTokenHint   sql.NullString
	SecondaryTokenHint sql.NullString
}

type IntKeyUIKValidateServiceParams added in v0.33.0

type IntKeyUIKValidateServiceParams struct {
	KeyID   uuid.UUID
	TokenID uuid.NullUUID
}

type IntegrationKey

type IntegrationKey struct {
	ExternalSystemName sql.NullString
	ID                 uuid.UUID
	Name               string
	ServiceID          uuid.UUID
	Type               EnumIntegrationKeysType
}

type Keyring

type Keyring struct {
	ID               string
	NextKey          []byte
	NextRotation     sql.NullTime
	RotationCount    int64
	SigningKey       []byte
	VerificationKeys []byte
}

type Keyring_GetConfigPayloadsRow added in v0.34.0

type Keyring_GetConfigPayloadsRow struct {
	ID   int32
	Data []byte
}

type Keyring_GetKeyringSecretsRow added in v0.34.0

type Keyring_GetKeyringSecretsRow struct {
	ID         string
	SigningKey []byte
	NextKey    []byte
}

type Keyring_UpdateConfigPayloadParams added in v0.34.0

type Keyring_UpdateConfigPayloadParams struct {
	Data []byte
	ID   int32
}

type Keyring_UpdateKeyringSecretsParams added in v0.34.0

type Keyring_UpdateKeyringSecretsParams struct {
	SigningKey []byte
	NextKey    []byte
	ID         string
}

type Label

type Label struct {
	ID           int64
	Key          string
	TgtServiceID uuid.UUID
	Value        string
}

type LabelDeleteKeyByTargetParams added in v0.32.0

type LabelDeleteKeyByTargetParams struct {
	Key          string
	TgtServiceID uuid.UUID
}

type LabelFindAllByTargetRow added in v0.32.0

type LabelFindAllByTargetRow struct {
	Key   string
	Value string
}

type LabelSetByTargetParams added in v0.32.0

type LabelSetByTargetParams struct {
	Key          string
	Value        string
	TgtServiceID uuid.UUID
}

type ListCheckConstraintsRow added in v0.33.0

type ListCheckConstraintsRow struct {
	SchemaName     string
	TableName      string
	ConstraintName string
	CheckClause    string
}

type ListColumnsRow added in v0.33.0

type ListColumnsRow struct {
	SchemaName    string
	TableName     string
	ColumnNumber  int16
	ColumnName    string
	ColumnType    string
	ColumnDefault string
	NotNull       bool
}

type ListConstraintsRow added in v0.33.0

type ListConstraintsRow struct {
	SchemaName           string
	TableName            string
	ConstraintName       string
	ConstraintDefinition string
}

type ListEnumsRow added in v0.33.0

type ListEnumsRow struct {
	SchemaName string
	EnumName   string
	EnumValues []byte
}

type ListExtensionsRow added in v0.33.0

type ListExtensionsRow struct {
	ExtName    string
	SchemaName string
}

type ListFunctionsRow added in v0.33.0

type ListFunctionsRow struct {
	SchemaName   string
	FunctionName string
	FuncDef      string
}

type ListIndexesRow added in v0.33.0

type ListIndexesRow struct {
	SchemaName      string
	TableName       string
	IndexName       string
	IndexDefinition string
}

type ListSequencesRow added in v0.33.0

type ListSequencesRow struct {
	SchemaName   string
	SequenceName string
	StartValue   sql.NullInt64
	Increment    sql.NullInt64
	MinValue     sql.NullInt64
	MaxValue     sql.NullInt64
	Cache        sql.NullInt64
	TableSchema  string
	TableName    string
	ColumnName   string
}

type ListTriggersRow added in v0.33.0

type ListTriggersRow struct {
	SchemaName        string
	TableName         string
	TriggerName       string
	TriggerDefinition string
}

type LogEventsRow added in v0.33.0

type LogEventsRow struct {
	ID        int64
	Timestamp time.Time
	Data      json.RawMessage
}

type MessageMgrGetPendingRow added in v0.33.0

type MessageMgrGetPendingRow struct {
	ID                     uuid.UUID
	MessageType            EnumOutgoingMessagesType
	CmID                   uuid.NullUUID
	ChanID                 uuid.NullUUID
	Dest                   NullDestV1
	AlertID                sql.NullInt64
	AlertLogID             sql.NullInt64
	UserVerificationCodeID uuid.NullUUID
	UserID                 uuid.NullUUID
	ServiceID              uuid.NullUUID
	CreatedAt              time.Time
	SentAt                 sql.NullTime
	StatusAlertIds         []int64
	ScheduleID             uuid.NullUUID
}

type MessageStatusHistory added in v0.34.0

type MessageStatusHistory struct {
	ID            int64
	MessageID     uuid.UUID
	Status        EnumOutgoingMessagesStatus
	StatusDetails string
	Timestamp     time.Time
}

type NfyLastMessageStatusParams added in v0.33.0

type NfyLastMessageStatusParams struct {
	MessageType     EnumOutgoingMessagesType
	ContactMethodID uuid.NullUUID
	CreatedAt       time.Time
}

type NfyLastMessageStatusRow added in v0.33.0

type NfyLastMessageStatusRow struct {
	OutgoingMessage OutgoingMessage
	CmDest          NullDestV1
	ChDest          NullDestV1
}

type NfyManyMessageStatusRow added in v0.33.0

type NfyManyMessageStatusRow struct {
	OutgoingMessage OutgoingMessage
	CmDest          NullDestV1
	ChDest          NullDestV1
}

type NfyOriginalMessageStatusParams added in v0.33.0

type NfyOriginalMessageStatusParams struct {
	AlertID         sql.NullInt64
	ContactMethodID uuid.NullUUID
	ChannelID       uuid.NullUUID
}

type NfyOriginalMessageStatusRow added in v0.33.0

type NfyOriginalMessageStatusRow struct {
	OutgoingMessage OutgoingMessage
	CmDest          NullDestV1
	ChDest          NullDestV1
}

type NoticeUnackedAlertsByServiceRow

type NoticeUnackedAlertsByServiceRow struct {
	Count int64
	Max   int32
}

type NotifChanUpsertDestParams added in v0.33.0

type NotifChanUpsertDestParams struct {
	ID   uuid.UUID
	Dest NullDestV1
	Name string
}

type NotificationChannel

type NotificationChannel struct {
	CreatedAt time.Time
	Dest      NullDestV1
	ID        uuid.UUID
	Meta      json.RawMessage
	Name      string
	Type      EnumNotifChannelType
	Value     string
}

type NotificationChannelDuplicate added in v0.33.0

type NotificationChannelDuplicate struct {
	ID           int64
	NewID        uuid.UUID
	OldCreatedAt time.Time
	OldID        uuid.UUID
}

type NotificationPolicyCycle

type NotificationPolicyCycle struct {
	AlertID     int32
	Checked     bool
	ID          uuid.UUID
	LastTick    sql.NullTime
	RepeatCount int32
	StartedAt   time.Time
	UserID      uuid.UUID
}

type NullDestV1 added in v0.33.0

type NullDestV1 struct {
	Valid  bool
	DestV1 DestV1
}

func (NullDestV1) MarshalJSON added in v0.33.0

func (ns NullDestV1) MarshalJSON() ([]byte, error)

func (*NullDestV1) Scan added in v0.33.0

func (ns *NullDestV1) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullDestV1) UnmarshalJSON added in v0.33.0

func (ns *NullDestV1) UnmarshalJSON(data []byte) error

func (NullDestV1) Value added in v0.33.0

func (ns NullDestV1) Value() (interface{}, error)

Value implements the driver Valuer interface.

type NullEngineProcessingType

type NullEngineProcessingType struct {
	EngineProcessingType EngineProcessingType
	Valid                bool // Valid is true if EngineProcessingType is not NULL
}

func (*NullEngineProcessingType) Scan

func (ns *NullEngineProcessingType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEngineProcessingType) Value

Value implements the driver Valuer interface.

type NullEnumAlertLogEvent

type NullEnumAlertLogEvent struct {
	EnumAlertLogEvent EnumAlertLogEvent
	Valid             bool // Valid is true if EnumAlertLogEvent is not NULL
}

func (*NullEnumAlertLogEvent) Scan

func (ns *NullEnumAlertLogEvent) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumAlertLogEvent) Value

func (ns NullEnumAlertLogEvent) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullEnumAlertLogSubjectType

type NullEnumAlertLogSubjectType struct {
	EnumAlertLogSubjectType EnumAlertLogSubjectType
	Valid                   bool // Valid is true if EnumAlertLogSubjectType is not NULL
}

func (*NullEnumAlertLogSubjectType) Scan

func (ns *NullEnumAlertLogSubjectType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumAlertLogSubjectType) Value

Value implements the driver Valuer interface.

type NullEnumAlertSource

type NullEnumAlertSource struct {
	EnumAlertSource EnumAlertSource
	Valid           bool // Valid is true if EnumAlertSource is not NULL
}

func (*NullEnumAlertSource) Scan

func (ns *NullEnumAlertSource) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumAlertSource) Value

func (ns NullEnumAlertSource) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullEnumAlertStatus

type NullEnumAlertStatus struct {
	EnumAlertStatus EnumAlertStatus
	Valid           bool // Valid is true if EnumAlertStatus is not NULL
}

func (*NullEnumAlertStatus) Scan

func (ns *NullEnumAlertStatus) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumAlertStatus) Value

func (ns NullEnumAlertStatus) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullEnumHeartbeatState

type NullEnumHeartbeatState struct {
	EnumHeartbeatState EnumHeartbeatState
	Valid              bool // Valid is true if EnumHeartbeatState is not NULL
}

func (*NullEnumHeartbeatState) Scan

func (ns *NullEnumHeartbeatState) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumHeartbeatState) Value

func (ns NullEnumHeartbeatState) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullEnumIntegrationKeysType

type NullEnumIntegrationKeysType struct {
	EnumIntegrationKeysType EnumIntegrationKeysType
	Valid                   bool // Valid is true if EnumIntegrationKeysType is not NULL
}

func (*NullEnumIntegrationKeysType) Scan

func (ns *NullEnumIntegrationKeysType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumIntegrationKeysType) Value

Value implements the driver Valuer interface.

type NullEnumLimitType

type NullEnumLimitType struct {
	EnumLimitType EnumLimitType
	Valid         bool // Valid is true if EnumLimitType is not NULL
}

func (*NullEnumLimitType) Scan

func (ns *NullEnumLimitType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumLimitType) Value

func (ns NullEnumLimitType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullEnumNotifChannelType

type NullEnumNotifChannelType struct {
	EnumNotifChannelType EnumNotifChannelType
	Valid                bool // Valid is true if EnumNotifChannelType is not NULL
}

func (*NullEnumNotifChannelType) Scan

func (ns *NullEnumNotifChannelType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumNotifChannelType) Value

Value implements the driver Valuer interface.

type NullEnumOutgoingMessagesStatus

type NullEnumOutgoingMessagesStatus struct {
	EnumOutgoingMessagesStatus EnumOutgoingMessagesStatus
	Valid                      bool // Valid is true if EnumOutgoingMessagesStatus is not NULL
}

func (*NullEnumOutgoingMessagesStatus) Scan

func (ns *NullEnumOutgoingMessagesStatus) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumOutgoingMessagesStatus) Value

Value implements the driver Valuer interface.

type NullEnumOutgoingMessagesType

type NullEnumOutgoingMessagesType struct {
	EnumOutgoingMessagesType EnumOutgoingMessagesType
	Valid                    bool // Valid is true if EnumOutgoingMessagesType is not NULL
}

func (*NullEnumOutgoingMessagesType) Scan

func (ns *NullEnumOutgoingMessagesType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumOutgoingMessagesType) Value

Value implements the driver Valuer interface.

type NullEnumRotationType

type NullEnumRotationType struct {
	EnumRotationType EnumRotationType
	Valid            bool // Valid is true if EnumRotationType is not NULL
}

func (*NullEnumRotationType) Scan

func (ns *NullEnumRotationType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumRotationType) Value

func (ns NullEnumRotationType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullEnumSwitchoverState

type NullEnumSwitchoverState struct {
	EnumSwitchoverState EnumSwitchoverState
	Valid               bool // Valid is true if EnumSwitchoverState is not NULL
}

func (*NullEnumSwitchoverState) Scan

func (ns *NullEnumSwitchoverState) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumSwitchoverState) Value

func (ns NullEnumSwitchoverState) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullEnumThrottleType

type NullEnumThrottleType struct {
	EnumThrottleType EnumThrottleType
	Valid            bool // Valid is true if EnumThrottleType is not NULL
}

func (*NullEnumThrottleType) Scan

func (ns *NullEnumThrottleType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumThrottleType) Value

func (ns NullEnumThrottleType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullEnumUserContactMethodType

type NullEnumUserContactMethodType struct {
	EnumUserContactMethodType EnumUserContactMethodType
	Valid                     bool // Valid is true if EnumUserContactMethodType is not NULL
}

func (*NullEnumUserContactMethodType) Scan

func (ns *NullEnumUserContactMethodType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumUserContactMethodType) Value

Value implements the driver Valuer interface.

type NullEnumUserRole

type NullEnumUserRole struct {
	EnumUserRole EnumUserRole
	Valid        bool // Valid is true if EnumUserRole is not NULL
}

func (*NullEnumUserRole) Scan

func (ns *NullEnumUserRole) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullEnumUserRole) Value

func (ns NullEnumUserRole) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullRiverJobState added in v0.33.0

type NullRiverJobState struct {
	RiverJobState RiverJobState
	Valid         bool // Valid is true if RiverJobState is not NULL
}

func (*NullRiverJobState) Scan added in v0.33.0

func (ns *NullRiverJobState) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullRiverJobState) Value added in v0.33.0

func (ns NullRiverJobState) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type OutgoingMessage

type OutgoingMessage struct {
	AlertID                sql.NullInt64
	AlertLogID             sql.NullInt64
	ChannelID              uuid.NullUUID
	ContactMethodID        uuid.NullUUID
	CreatedAt              time.Time
	CycleID                uuid.NullUUID
	EscalationPolicyID     uuid.NullUUID
	FiredAt                sql.NullTime
	ID                     uuid.UUID
	LastStatus             EnumOutgoingMessagesStatus
	LastStatusAt           sql.NullTime
	MessageType            EnumOutgoingMessagesType
	NextRetryAt            sql.NullTime
	ProviderMsgID          ProviderMessageID
	ProviderSeq            int32
	RetryCount             int32
	ScheduleID             uuid.NullUUID
	SendingDeadline        sql.NullTime
	SentAt                 sql.NullTime
	ServiceID              uuid.NullUUID
	SrcValue               sql.NullString
	StatusAlertIds         []int64
	StatusDetails          string
	UserID                 uuid.NullUUID
	UserVerificationCodeID uuid.NullUUID
}

type OverrideSearchParams added in v0.32.0

type OverrideSearchParams struct {
	Omit         []uuid.UUID
	ScheduleID   uuid.NullUUID
	AnyUserID    []uuid.UUID
	AddUserID    []uuid.UUID
	RemoveUserID []uuid.UUID
	SearchStart  sql.NullTime
	SearchEnd    sql.NullTime
	AfterID      uuid.NullUUID
}

type OverrideSearchRow added in v0.32.0

type OverrideSearchRow struct {
	ID            uuid.UUID
	StartTime     time.Time
	EndTime       time.Time
	AddUserID     uuid.NullUUID
	RemoveUserID  uuid.NullUUID
	TgtScheduleID uuid.UUID
}

type PendingSignal added in v0.33.0

type PendingSignal struct {
	CreatedAt time.Time
	DestID    uuid.UUID
	ID        int32
	MessageID uuid.NullUUID
	Params    json.RawMessage
	ServiceID uuid.UUID
}

type PgStatActivity added in v0.33.0

type PgStatActivity struct {
	State           sql.NullString
	XactStart       time.Time
	ApplicationName sql.NullString
}

type ProcAcquireModuleLockNoWaitParams added in v0.34.0

type ProcAcquireModuleLockNoWaitParams struct {
	TypeID  EngineProcessingType
	Version int32
}

type ProcAcquireModuleSharedLockParams added in v0.34.0

type ProcAcquireModuleSharedLockParams struct {
	TypeID  EngineProcessingType
	Version int32
}

type ProcSaveStateParams added in v0.33.0

type ProcSaveStateParams struct {
	TypeID EngineProcessingType
	State  json.RawMessage
}

type ProviderMessageID added in v0.33.0

type ProviderMessageID struct {
	// ExternalID is the provider-specific identifier for the message.
	ExternalID   string
	ProviderName string
}

ProviderMessageID is a provider-specific identifier for a message.

func ParseProviderMessageID added in v0.33.0

func ParseProviderMessageID(id string) (ProviderMessageID, error)

ParseProviderMessageID parses a provider-specific identifier for a message.

func (*ProviderMessageID) Scan added in v0.33.0

func (p *ProviderMessageID) Scan(value interface{}) error

func (ProviderMessageID) String added in v0.33.0

func (p ProviderMessageID) String() string

String returns a parseable string representation of the provider-specific identifier for a message.

func (ProviderMessageID) Value added in v0.33.0

func (p ProviderMessageID) Value() (driver.Value, error)

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) APIKeyAuthCheck added in v0.32.0

func (q *Queries) APIKeyAuthCheck(ctx context.Context, id uuid.UUID) (bool, error)

func (*Queries) APIKeyAuthPolicy added in v0.32.0

func (q *Queries) APIKeyAuthPolicy(ctx context.Context, id uuid.UUID) (json.RawMessage, error)

APIKeyAuth returns the API key policy with the given id, if it exists and is not expired.

func (*Queries) APIKeyDelete added in v0.32.0

func (q *Queries) APIKeyDelete(ctx context.Context, arg APIKeyDeleteParams) error

func (*Queries) APIKeyForUpdate added in v0.32.0

func (q *Queries) APIKeyForUpdate(ctx context.Context, id uuid.UUID) (APIKeyForUpdateRow, error)

func (*Queries) APIKeyInsert added in v0.32.0

func (q *Queries) APIKeyInsert(ctx context.Context, arg APIKeyInsertParams) error

func (*Queries) APIKeyList added in v0.32.0

func (q *Queries) APIKeyList(ctx context.Context) ([]APIKeyListRow, error)

APIKeyList returns all API keys, along with the last time they were used.

func (*Queries) APIKeyRecordUsage added in v0.32.0

func (q *Queries) APIKeyRecordUsage(ctx context.Context, arg APIKeyRecordUsageParams) error

APIKeyRecordUsage records the usage of an API key.

func (*Queries) APIKeyUpdate added in v0.32.0

func (q *Queries) APIKeyUpdate(ctx context.Context, arg APIKeyUpdateParams) error

func (*Queries) ActiveTxCount added in v0.33.0

func (q *Queries) ActiveTxCount(ctx context.Context, xactStart time.Time) (int64, error)

func (*Queries) AlertLog_HBIntervalMinutes added in v0.34.0

func (q *Queries) AlertLog_HBIntervalMinutes(ctx context.Context, id uuid.UUID) (int32, error)

Looks up the heartbeat interval in minutes for a heartbeat monitor

func (*Queries) AlertLog_InsertEP added in v0.34.0

func (q *Queries) AlertLog_InsertEP(ctx context.Context, arg AlertLog_InsertEPParams) error

Inserts a new alert log for all alerts in the escalation policy that are not closed.

func (*Queries) AlertLog_InsertMany added in v0.34.0

func (q *Queries) AlertLog_InsertMany(ctx context.Context, arg AlertLog_InsertManyParams) error

Inserts many alert logs

func (*Queries) AlertLog_InsertSvc added in v0.34.0

func (q *Queries) AlertLog_InsertSvc(ctx context.Context, arg AlertLog_InsertSvcParams) error

Inserts a new alert log for all alerts in the service that are not closed.

func (*Queries) AlertLog_LookupCMDest added in v0.34.0

func (q *Queries) AlertLog_LookupCMDest(ctx context.Context, id uuid.UUID) (NullDestV1, error)

Looks up the destination for a contact method

func (*Queries) AlertLog_LookupCallbackDest added in v0.34.0

func (q *Queries) AlertLog_LookupCallbackDest(ctx context.Context, id uuid.UUID) (NullDestV1, error)

Looks up the destination for a callback

func (*Queries) AlertLog_LookupNCDest added in v0.34.0

func (q *Queries) AlertLog_LookupNCDest(ctx context.Context, id uuid.UUID) (NullDestV1, error)

func (*Queries) Alert_AlertHasEPState added in v0.34.0

func (q *Queries) Alert_AlertHasEPState(ctx context.Context, alertID int64) (bool, error)

Returns true if the alert has an escalation policy state.

func (*Queries) Alert_GetAlertFeedback added in v0.34.0

func (q *Queries) Alert_GetAlertFeedback(ctx context.Context, dollar_1 []int32) ([]Alert_GetAlertFeedbackRow, error)

Returns the noise reason for the alert.

func (*Queries) Alert_GetAlertManyMetadata added in v0.34.0

func (q *Queries) Alert_GetAlertManyMetadata(ctx context.Context, alertIds []int64) ([]Alert_GetAlertManyMetadataRow, error)

Returns the metadata for many alerts.

func (*Queries) Alert_GetAlertMetadata added in v0.34.0

func (q *Queries) Alert_GetAlertMetadata(ctx context.Context, alertID int64) (pqtype.NullRawMessage, error)

Returns the metadata for the alert.

func (*Queries) Alert_GetEscalationPolicyID added in v0.34.0

func (q *Queries) Alert_GetEscalationPolicyID(ctx context.Context, id int64) (uuid.UUID, error)

Returns the escalation policy ID associated with the alert.

func (*Queries) Alert_GetStatusAndLockService added in v0.34.0

func (q *Queries) Alert_GetStatusAndLockService(ctx context.Context, id int64) (EnumAlertStatus, error)

Returns the status of the alert and locks the service associated with the alert.

func (*Queries) Alert_LockManyAlertServices added in v0.34.0

func (q *Queries) Alert_LockManyAlertServices(ctx context.Context, alertIds []int64) error

Locks the service(s) associated with the specified alerts.

func (*Queries) Alert_LockOneAlertService added in v0.34.0

func (q *Queries) Alert_LockOneAlertService(ctx context.Context, id int64) (Alert_LockOneAlertServiceRow, error)

Locks the service associated with the alert.

func (*Queries) Alert_LockService added in v0.34.0

func (q *Queries) Alert_LockService(ctx context.Context, serviceID uuid.UUID) error

Locks the service associated with the alert.

func (*Queries) Alert_RequestAlertEscalationByTime added in v0.34.0

func (q *Queries) Alert_RequestAlertEscalationByTime(ctx context.Context, arg Alert_RequestAlertEscalationByTimeParams) (bool, error)

Returns the alert ID and the escalation policy ID for the alert that should be escalated based on the provided time.

func (*Queries) Alert_ServiceEPHasSteps added in v0.34.0

func (q *Queries) Alert_ServiceEPHasSteps(ctx context.Context, serviceID uuid.UUID) (bool, error)

Returns true if the Escalation Policy for the provided service has at least one step.

func (*Queries) Alert_SetAlertFeedback added in v0.34.0

func (q *Queries) Alert_SetAlertFeedback(ctx context.Context, arg Alert_SetAlertFeedbackParams) error

Sets the noise reason for the alert.

func (*Queries) Alert_SetAlertMetadata added in v0.34.0

func (q *Queries) Alert_SetAlertMetadata(ctx context.Context, arg Alert_SetAlertMetadataParams) (int64, error)

Sets the metadata for the alert.

func (*Queries) Alert_SetManyAlertFeedback added in v0.34.0

func (q *Queries) Alert_SetManyAlertFeedback(ctx context.Context, arg Alert_SetManyAlertFeedbackParams) ([]int64, error)

Sets the noise reason for many alerts.

func (*Queries) AllPendingMsgDests

func (q *Queries) AllPendingMsgDests(ctx context.Context, arg AllPendingMsgDestsParams) ([]AllPendingMsgDestsRow, error)

func (*Queries) AuthLinkAddAuthSubject

func (q *Queries) AuthLinkAddAuthSubject(ctx context.Context, arg AuthLinkAddAuthSubjectParams) error

func (*Queries) AuthLinkAddReq

func (q *Queries) AuthLinkAddReq(ctx context.Context, arg AuthLinkAddReqParams) error

func (*Queries) AuthLinkMetadata

func (q *Queries) AuthLinkMetadata(ctx context.Context, id uuid.UUID) (json.RawMessage, error)

func (*Queries) AuthLinkUseReq

func (q *Queries) AuthLinkUseReq(ctx context.Context, id uuid.UUID) (AuthLinkUseReqRow, error)

func (*Queries) CalSubAuthUser

func (q *Queries) CalSubAuthUser(ctx context.Context, arg CalSubAuthUserParams) (uuid.UUID, error)

func (*Queries) CalSubRenderInfo

func (q *Queries) CalSubRenderInfo(ctx context.Context, id uuid.UUID) (CalSubRenderInfoRow, error)

func (*Queries) CalSubUserNames added in v0.32.0

func (q *Queries) CalSubUserNames(ctx context.Context, dollar_1 []uuid.UUID) ([]CalSubUserNamesRow, error)

func (*Queries) CleanupAlertLogs added in v0.34.0

func (q *Queries) CleanupAlertLogs(ctx context.Context, arg CleanupAlertLogsParams) (int64, error)

func (*Queries) CleanupMgrAlertLogsMinMax added in v0.34.0

func (q *Queries) CleanupMgrAlertLogsMinMax(ctx context.Context) (CleanupMgrAlertLogsMinMaxRow, error)

CleanupMgrAlertLogsMinMax will find the minimum and maximum id of the alert_logs table.

func (*Queries) CleanupMgrDeleteOldAlerts added in v0.34.0

func (q *Queries) CleanupMgrDeleteOldAlerts(ctx context.Context, staleThresholdDays int64) (int64, error)

CleanupMgrDeleteOldAlerts will delete old alerts from the alerts table that are closed and older than the given number of days before now.

func (*Queries) CleanupMgrDeleteOldOverrides added in v0.34.0

func (q *Queries) CleanupMgrDeleteOldOverrides(ctx context.Context, historyThresholdDays interface{}) (int64, error)

CleanupMgrDeleteOldOverrides will delete old overrides from the user_overrides table that are older than the given number of days before now.

func (*Queries) CleanupMgrDeleteOldScheduleShifts added in v0.34.0

func (q *Queries) CleanupMgrDeleteOldScheduleShifts(ctx context.Context, historyThresholdDays interface{}) (int64, error)

CleanupMgrDeleteOldScheduleShifts will delete old schedule shifts from the schedule_on_call_users table that are older than the given number of days before now.

func (*Queries) CleanupMgrDeleteOldSessions added in v0.34.0

func (q *Queries) CleanupMgrDeleteOldSessions(ctx context.Context, maxSessionAgeDays int32) (int64, error)

CleanupMgrDeleteOldSessions will delete old sessions from the auth_user_sessions table that are older than the given number of days before now.

func (*Queries) CleanupMgrDeleteOldStepShifts added in v0.34.0

func (q *Queries) CleanupMgrDeleteOldStepShifts(ctx context.Context, historyThresholdDays interface{}) (int64, error)

CleanupMgrDeleteOldStepShifts will delete old EP step shifts from the ep_step_on_call_users table that are older than the given number of days before now.

func (*Queries) CleanupMgrDisableOldCalSub added in v0.34.0

func (q *Queries) CleanupMgrDisableOldCalSub(ctx context.Context, inactivityThresholdDays int32) (int64, error)

CleanupMgrDeleteOldCalSub will disable old calendar subscriptions from the user_calendar_subscriptions table that are unused for at least the given number of days.

func (*Queries) CleanupMgrFindStaleAlerts added in v0.34.0

func (q *Queries) CleanupMgrFindStaleAlerts(ctx context.Context, arg CleanupMgrFindStaleAlertsParams) ([]int64, error)

CleanupMgrFindStaleAlerts will find alerts that are triggered or active and have no activity in specified number of days.

func (*Queries) CleanupMgrScheduleData added in v0.34.0

func (q *Queries) CleanupMgrScheduleData(ctx context.Context, scheduleID uuid.UUID) (json.RawMessage, error)

CleanupMgrScheduleData will select the schedule data for the given schedule id.

func (*Queries) CleanupMgrScheduleDataSkip added in v0.34.0

func (q *Queries) CleanupMgrScheduleDataSkip(ctx context.Context, scheduleID uuid.UUID) error

CleanupMgrScheduleDataSkip will update the last_cleanup_at field in the schedule_data table.

func (*Queries) CleanupMgrScheduleNeedsCleanup added in v0.34.0

func (q *Queries) CleanupMgrScheduleNeedsCleanup(ctx context.Context, cleanupIntervalDays int32) ([]uuid.UUID, error)

CleanupMgrScheduleNeedsCleanup will find schedules that need to be cleaned up. The last_cleanup_at field is used to ensure we clean up each schedule data at most once per interval.

func (*Queries) CleanupMgrUpdateScheduleData added in v0.34.0

func (q *Queries) CleanupMgrUpdateScheduleData(ctx context.Context, arg CleanupMgrUpdateScheduleDataParams) error

CleanupMgrUpdateScheduleData will update the last_cleanup_at and data fields in the schedule_data table.

func (*Queries) CleanupMgrVerifyUsers added in v0.34.0

func (q *Queries) CleanupMgrVerifyUsers(ctx context.Context, userIds []uuid.UUID) ([]uuid.UUID, error)

CleanupMgrVerifyUsers will verify that the given user ids exist in the users table.

func (*Queries) CompatAuthSubSetCMID added in v0.34.0

func (q *Queries) CompatAuthSubSetCMID(ctx context.Context, arg CompatAuthSubSetCMIDParams) error

Updates the contact method id for an auth_subject with the given destination.

func (*Queries) CompatAuthSubSlackMissingCM added in v0.34.0

func (q *Queries) CompatAuthSubSlackMissingCM(ctx context.Context) ([]AuthSubject, error)

Get up to 10 auth_subjects (slack only) missing a contact method.

func (*Queries) CompatCMMissingSub added in v0.34.0

func (q *Queries) CompatCMMissingSub(ctx context.Context) ([]CompatCMMissingSubRow, error)

Get up to 10 contact methods missing an auth_subjects link.

func (*Queries) CompatInsertUserCM added in v0.34.0

func (q *Queries) CompatInsertUserCM(ctx context.Context, arg CompatInsertUserCMParams) error

Inserts a new contact method for a user.

func (*Queries) CompatUpsertAuthSubject added in v0.34.0

func (q *Queries) CompatUpsertAuthSubject(ctx context.Context, arg CompatUpsertAuthSubjectParams) error

Inserts a new auth_subject for a user.

func (*Queries) ConnectionInfo added in v0.33.0

func (q *Queries) ConnectionInfo(ctx context.Context) ([]ConnectionInfoRow, error)

func (*Queries) ContactMethodAdd added in v0.32.0

func (q *Queries) ContactMethodAdd(ctx context.Context, arg ContactMethodAddParams) error

func (*Queries) ContactMethodEnableDisable added in v0.33.0

func (q *Queries) ContactMethodEnableDisable(ctx context.Context, arg ContactMethodEnableDisableParams) (uuid.UUID, error)

func (*Queries) ContactMethodFindAll added in v0.32.0

func (q *Queries) ContactMethodFindAll(ctx context.Context, userID uuid.UUID) ([]UserContactMethod, error)

func (*Queries) ContactMethodFindMany added in v0.32.0

func (q *Queries) ContactMethodFindMany(ctx context.Context, dollar_1 []uuid.UUID) ([]UserContactMethod, error)

func (*Queries) ContactMethodFindOneUpdate added in v0.32.0

func (q *Queries) ContactMethodFindOneUpdate(ctx context.Context, id uuid.UUID) (UserContactMethod, error)

func (*Queries) ContactMethodFineOne added in v0.32.0

func (q *Queries) ContactMethodFineOne(ctx context.Context, id uuid.UUID) (UserContactMethod, error)

func (*Queries) ContactMethodLookupUserID added in v0.32.0

func (q *Queries) ContactMethodLookupUserID(ctx context.Context, dollar_1 []uuid.UUID) ([]uuid.UUID, error)

func (*Queries) ContactMethodMetaDest added in v0.33.0

func (q *Queries) ContactMethodMetaDest(ctx context.Context, dest NullDestV1) (ContactMethodMetaDestRow, error)

func (*Queries) ContactMethodUpdate added in v0.32.0

func (q *Queries) ContactMethodUpdate(ctx context.Context, arg ContactMethodUpdateParams) error

func (*Queries) ContactMethodUpdateMetaDest added in v0.33.0

func (q *Queries) ContactMethodUpdateMetaDest(ctx context.Context, arg ContactMethodUpdateMetaDestParams) error

func (*Queries) CreateCalSub

func (q *Queries) CreateCalSub(ctx context.Context, arg CreateCalSubParams) (time.Time, error)

func (*Queries) DatabaseInfo added in v0.33.0

func (q *Queries) DatabaseInfo(ctx context.Context) (DatabaseInfoRow, error)

func (*Queries) DeleteContactMethod added in v0.32.0

func (q *Queries) DeleteContactMethod(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) DeleteManyCalSub

func (q *Queries) DeleteManyCalSub(ctx context.Context, arg DeleteManyCalSubParams) error

func (*Queries) DisableChangeLogTriggers added in v0.33.0

func (q *Queries) DisableChangeLogTriggers(ctx context.Context) error

func (*Queries) EPStepActionsAddAction added in v0.33.0

func (q *Queries) EPStepActionsAddAction(ctx context.Context, arg EPStepActionsAddActionParams) error

func (*Queries) EPStepActionsByStepId added in v0.33.0

func (q *Queries) EPStepActionsByStepId(ctx context.Context, escalationPolicyStepID uuid.UUID) ([]EPStepActionsByStepIdRow, error)

func (*Queries) EPStepActionsDeleteAction added in v0.33.0

func (q *Queries) EPStepActionsDeleteAction(ctx context.Context, arg EPStepActionsDeleteActionParams) error

func (*Queries) EnableChangeLogTriggers added in v0.33.0

func (q *Queries) EnableChangeLogTriggers(ctx context.Context) error

func (*Queries) EngineGetSignalParams added in v0.33.0

func (q *Queries) EngineGetSignalParams(ctx context.Context, messageID uuid.NullUUID) (json.RawMessage, error)

Get a pending signal's rendered params.

func (*Queries) EngineIsKnownDest added in v0.33.0

func (q *Queries) EngineIsKnownDest(ctx context.Context, dest NullDestV1) (sql.NullBool, error)

Check if a destination is known in user_contact_methods or notification_channels table.

func (*Queries) FindManyCalSubByUser

func (q *Queries) FindManyCalSubByUser(ctx context.Context, userID uuid.UUID) ([]FindManyCalSubByUserRow, error)

func (*Queries) FindOneCalSub

func (q *Queries) FindOneCalSub(ctx context.Context, id uuid.UUID) (FindOneCalSubRow, error)

func (*Queries) FindOneCalSubForUpdate

func (q *Queries) FindOneCalSubForUpdate(ctx context.Context, id uuid.UUID) (FindOneCalSubForUpdateRow, error)

func (*Queries) ForeignKeyRefs added in v0.33.0

func (q *Queries) ForeignKeyRefs(ctx context.Context) ([]ForeignKeyRefsRow, error)

func (*Queries) GQLUserOnCallOverview added in v0.33.0

func (q *Queries) GQLUserOnCallOverview(ctx context.Context, userID uuid.UUID) ([]GQLUserOnCallOverviewRow, error)

func (*Queries) GraphQL_MessageStatusHistory added in v0.34.0

func (q *Queries) GraphQL_MessageStatusHistory(ctx context.Context, messageID uuid.UUID) ([]MessageStatusHistory, error)

func (*Queries) HBByIDForUpdate added in v0.34.0

func (q *Queries) HBByIDForUpdate(ctx context.Context, id uuid.UUID) (HeartbeatMonitor, error)

HBByIDForUpdate returns a single heartbeat record by ID for update.

func (*Queries) HBByService added in v0.34.0

func (q *Queries) HBByService(ctx context.Context, serviceID uuid.UUID) ([]HeartbeatMonitor, error)

HBByService returns all heartbeat records for a service.

func (*Queries) HBDelete added in v0.34.0

func (q *Queries) HBDelete(ctx context.Context, id []uuid.UUID) error

HBDelete will delete a heartbeat record.

func (*Queries) HBInsert added in v0.34.0

func (q *Queries) HBInsert(ctx context.Context, arg HBInsertParams) error

HBInsert will insert a new heartbeat record.

func (*Queries) HBManyByID added in v0.34.0

func (q *Queries) HBManyByID(ctx context.Context, ids []uuid.UUID) ([]HeartbeatMonitor, error)

HBManyByID returns multiple heartbeat records by their IDs.

func (*Queries) HBRecordHeartbeat added in v0.34.0

func (q *Queries) HBRecordHeartbeat(ctx context.Context, id uuid.UUID) error

HBRecordHeartbeat updates the last heartbeat time for a monitor.

func (*Queries) HBUpdate added in v0.34.0

func (q *Queries) HBUpdate(ctx context.Context, arg HBUpdateParams) error

HBUpdate will update a heartbeat record.

func (*Queries) IntKeyCreate added in v0.32.0

func (q *Queries) IntKeyCreate(ctx context.Context, arg IntKeyCreateParams) error

func (*Queries) IntKeyDelete added in v0.32.0

func (q *Queries) IntKeyDelete(ctx context.Context, ids []uuid.UUID) error

func (*Queries) IntKeyDeleteConfig added in v0.33.0

func (q *Queries) IntKeyDeleteConfig(ctx context.Context, id uuid.UUID) error

func (*Queries) IntKeyDeleteSecondaryToken added in v0.33.0

func (q *Queries) IntKeyDeleteSecondaryToken(ctx context.Context, id uuid.UUID) error

func (*Queries) IntKeyFindByService added in v0.32.0

func (q *Queries) IntKeyFindByService(ctx context.Context, serviceID uuid.UUID) ([]IntKeyFindByServiceRow, error)

func (*Queries) IntKeyFindOne added in v0.32.0

func (q *Queries) IntKeyFindOne(ctx context.Context, id uuid.UUID) (IntKeyFindOneRow, error)

func (*Queries) IntKeyGetConfig added in v0.33.0

func (q *Queries) IntKeyGetConfig(ctx context.Context, id uuid.UUID) (UIKConfig, error)

func (*Queries) IntKeyGetServiceID added in v0.32.0

func (q *Queries) IntKeyGetServiceID(ctx context.Context, arg IntKeyGetServiceIDParams) (uuid.UUID, error)

func (*Queries) IntKeyGetType added in v0.33.0

func (q *Queries) IntKeyGetType(ctx context.Context, id uuid.UUID) (EnumIntegrationKeysType, error)

func (*Queries) IntKeyInsertSignalMessage added in v0.33.0

func (q *Queries) IntKeyInsertSignalMessage(ctx context.Context, arg IntKeyInsertSignalMessageParams) error

func (*Queries) IntKeyPromoteSecondary added in v0.33.0

func (q *Queries) IntKeyPromoteSecondary(ctx context.Context, id uuid.UUID) (sql.NullString, error)

func (*Queries) IntKeySetConfig added in v0.33.0

func (q *Queries) IntKeySetConfig(ctx context.Context, arg IntKeySetConfigParams) error

func (*Queries) IntKeySetPrimaryToken added in v0.33.0

func (q *Queries) IntKeySetPrimaryToken(ctx context.Context, arg IntKeySetPrimaryTokenParams) (uuid.UUID, error)

func (*Queries) IntKeySetSecondaryToken added in v0.33.0

func (q *Queries) IntKeySetSecondaryToken(ctx context.Context, arg IntKeySetSecondaryTokenParams) (uuid.UUID, error)

func (*Queries) IntKeyTokenHints added in v0.33.0

func (q *Queries) IntKeyTokenHints(ctx context.Context, id uuid.UUID) (IntKeyTokenHintsRow, error)

func (*Queries) IntKeyUIKValidateService added in v0.33.0

func (q *Queries) IntKeyUIKValidateService(ctx context.Context, arg IntKeyUIKValidateServiceParams) (uuid.UUID, error)

func (*Queries) Keyring_GetConfigPayloads added in v0.34.0

func (q *Queries) Keyring_GetConfigPayloads(ctx context.Context) ([]Keyring_GetConfigPayloadsRow, error)

func (*Queries) Keyring_GetKeyringSecrets added in v0.34.0

func (q *Queries) Keyring_GetKeyringSecrets(ctx context.Context) ([]Keyring_GetKeyringSecretsRow, error)

func (*Queries) Keyring_LockConfig added in v0.34.0

func (q *Queries) Keyring_LockConfig(ctx context.Context) error

Locks the config table so no new config payloads can be created.

func (*Queries) Keyring_LockKeyrings added in v0.34.0

func (q *Queries) Keyring_LockKeyrings(ctx context.Context) error

Locks the keyring table so no new keyrings can be created.

func (*Queries) Keyring_UpdateConfigPayload added in v0.34.0

func (q *Queries) Keyring_UpdateConfigPayload(ctx context.Context, arg Keyring_UpdateConfigPayloadParams) error

func (*Queries) Keyring_UpdateKeyringSecrets added in v0.34.0

func (q *Queries) Keyring_UpdateKeyringSecrets(ctx context.Context, arg Keyring_UpdateKeyringSecretsParams) error

func (*Queries) LabelDeleteKeyByTarget added in v0.32.0

func (q *Queries) LabelDeleteKeyByTarget(ctx context.Context, arg LabelDeleteKeyByTargetParams) error

func (*Queries) LabelFindAllByTarget added in v0.32.0

func (q *Queries) LabelFindAllByTarget(ctx context.Context, tgtServiceID uuid.UUID) ([]LabelFindAllByTargetRow, error)

func (*Queries) LabelSetByTarget added in v0.32.0

func (q *Queries) LabelSetByTarget(ctx context.Context, arg LabelSetByTargetParams) error

func (*Queries) LabelUniqueKeys added in v0.32.0

func (q *Queries) LabelUniqueKeys(ctx context.Context) ([]string, error)

func (*Queries) LastLogID added in v0.33.0

func (q *Queries) LastLogID(ctx context.Context) (int64, error)

func (*Queries) ListCheckConstraints added in v0.33.0

func (q *Queries) ListCheckConstraints(ctx context.Context) ([]ListCheckConstraintsRow, error)

func (*Queries) ListColumns added in v0.33.0

func (q *Queries) ListColumns(ctx context.Context) ([]ListColumnsRow, error)

func (*Queries) ListConstraints added in v0.33.0

func (q *Queries) ListConstraints(ctx context.Context) ([]ListConstraintsRow, error)

func (*Queries) ListEnums added in v0.33.0

func (q *Queries) ListEnums(ctx context.Context) ([]ListEnumsRow, error)

func (*Queries) ListExtensions added in v0.33.0

func (q *Queries) ListExtensions(ctx context.Context) ([]ListExtensionsRow, error)

func (*Queries) ListFunctions added in v0.33.0

func (q *Queries) ListFunctions(ctx context.Context) ([]ListFunctionsRow, error)

func (*Queries) ListIndexes added in v0.33.0

func (q *Queries) ListIndexes(ctx context.Context) ([]ListIndexesRow, error)

func (*Queries) ListSequences added in v0.33.0

func (q *Queries) ListSequences(ctx context.Context) ([]ListSequencesRow, error)

func (*Queries) ListTriggers added in v0.33.0

func (q *Queries) ListTriggers(ctx context.Context) ([]ListTriggersRow, error)

func (*Queries) LogEvents added in v0.33.0

func (q *Queries) LogEvents(ctx context.Context, id int64) ([]LogEventsRow, error)

func (*Queries) MessageMgrGetPending added in v0.33.0

func (q *Queries) MessageMgrGetPending(ctx context.Context, sentAt sql.NullTime) ([]MessageMgrGetPendingRow, error)

func (*Queries) NfyLastMessageStatus added in v0.33.0

func (q *Queries) NfyLastMessageStatus(ctx context.Context, arg NfyLastMessageStatusParams) (NfyLastMessageStatusRow, error)

func (*Queries) NfyManyMessageStatus added in v0.33.0

func (q *Queries) NfyManyMessageStatus(ctx context.Context, dollar_1 []uuid.UUID) ([]NfyManyMessageStatusRow, error)

func (*Queries) NfyOriginalMessageStatus added in v0.33.0

func (*Queries) NoticeUnackedAlertsByService

func (q *Queries) NoticeUnackedAlertsByService(ctx context.Context, dollar_1 uuid.UUID) (NoticeUnackedAlertsByServiceRow, error)

func (*Queries) NotifChanDeleteMany added in v0.33.0

func (q *Queries) NotifChanDeleteMany(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) NotifChanFindDestID added in v0.33.0

func (q *Queries) NotifChanFindDestID(ctx context.Context, dest NullDestV1) (uuid.UUID, error)

func (*Queries) NotifChanFindMany added in v0.33.0

func (q *Queries) NotifChanFindMany(ctx context.Context, dollar_1 []uuid.UUID) ([]NotificationChannel, error)

func (*Queries) NotifChanFindOne added in v0.33.0

func (q *Queries) NotifChanFindOne(ctx context.Context, id uuid.UUID) (NotificationChannel, error)

func (*Queries) NotifChanLock added in v0.33.0

func (q *Queries) NotifChanLock(ctx context.Context) error

func (*Queries) NotifChanUpsertDest added in v0.33.0

func (q *Queries) NotifChanUpsertDest(ctx context.Context, arg NotifChanUpsertDestParams) (uuid.UUID, error)

NotifChanUpsertDest will insert a new destination if it does not exist, or updating it's name if it does.

func (*Queries) Now

func (q *Queries) Now(ctx context.Context) (time.Time, error)

func (*Queries) OverrideSearch added in v0.32.0

func (q *Queries) OverrideSearch(ctx context.Context, arg OverrideSearchParams) ([]OverrideSearchRow, error)

func (*Queries) ProcAcquireModuleLockNoWait added in v0.34.0

func (q *Queries) ProcAcquireModuleLockNoWait(ctx context.Context, arg ProcAcquireModuleLockNoWaitParams) (int32, error)

func (*Queries) ProcAcquireModuleSharedLock added in v0.34.0

func (q *Queries) ProcAcquireModuleSharedLock(ctx context.Context, arg ProcAcquireModuleSharedLockParams) (int32, error)

func (*Queries) ProcLoadState added in v0.33.0

func (q *Queries) ProcLoadState(ctx context.Context, typeID EngineProcessingType) (json.RawMessage, error)

func (*Queries) ProcReadModuleVersion added in v0.33.0

func (q *Queries) ProcReadModuleVersion(ctx context.Context, typeID EngineProcessingType) (int32, error)

func (*Queries) ProcSaveState added in v0.33.0

func (q *Queries) ProcSaveState(ctx context.Context, arg ProcSaveStateParams) error

func (*Queries) ProcSharedAdvisoryLock added in v0.33.0

func (q *Queries) ProcSharedAdvisoryLock(ctx context.Context, pgTryAdvisoryXactLockShared int64) (bool, error)

func (*Queries) RotMgrEnd added in v0.34.0

func (q *Queries) RotMgrEnd(ctx context.Context, rotationID uuid.UUID) error

End a rotation.

func (*Queries) RotMgrFindWork added in v0.34.0

func (q *Queries) RotMgrFindWork(ctx context.Context) ([]uuid.UUID, error)

func (*Queries) RotMgrRotationData added in v0.34.0

func (q *Queries) RotMgrRotationData(ctx context.Context, rotationID uuid.UUID) (RotMgrRotationDataRow, error)

Get rotation data for a given rotation ID

func (*Queries) RotMgrStart added in v0.34.0

func (q *Queries) RotMgrStart(ctx context.Context, rotationID uuid.UUID) error

Start a rotation.

func (*Queries) RotMgrUpdate added in v0.34.0

func (q *Queries) RotMgrUpdate(ctx context.Context, arg RotMgrUpdateParams) error

Update the rotation state.

func (*Queries) SWOConnLock added in v0.33.0

func (q *Queries) SWOConnLock(ctx context.Context) (bool, error)

func (*Queries) SWOConnUnlockAll added in v0.33.0

func (q *Queries) SWOConnUnlockAll(ctx context.Context) error

func (*Queries) SchedCreate added in v0.34.0

func (q *Queries) SchedCreate(ctx context.Context, arg SchedCreateParams) (uuid.UUID, error)

Creates a new schedule and returns its ID.

func (*Queries) SchedDeleteMany added in v0.34.0

func (q *Queries) SchedDeleteMany(ctx context.Context, dollar_1 []uuid.UUID) error

Deletes multiple schedules by their IDs.

func (*Queries) SchedFindAll added in v0.34.0

func (q *Queries) SchedFindAll(ctx context.Context) ([]SchedFindAllRow, error)

Returns all schedules.

func (*Queries) SchedFindData added in v0.34.0

func (q *Queries) SchedFindData(ctx context.Context, scheduleID uuid.UUID) (json.RawMessage, error)

Returns the schedule data for a given schedule ID.

func (*Queries) SchedFindDataForUpdate added in v0.34.0

func (q *Queries) SchedFindDataForUpdate(ctx context.Context, scheduleID uuid.UUID) (json.RawMessage, error)

Returns the schedule data for a given schedule ID with FOR UPDATE lock.

func (*Queries) SchedFindMany added in v0.34.0

func (q *Queries) SchedFindMany(ctx context.Context, arg SchedFindManyParams) ([]SchedFindManyRow, error)

Returns multiple schedules with user favorite status.

func (*Queries) SchedFindOne added in v0.34.0

func (q *Queries) SchedFindOne(ctx context.Context, arg SchedFindOneParams) (SchedFindOneRow, error)

Returns a single schedule with user favorite status.

func (*Queries) SchedFindOneForUpdate added in v0.34.0

func (q *Queries) SchedFindOneForUpdate(ctx context.Context, id uuid.UUID) (SchedFindOneForUpdateRow, error)

Returns a single schedule with FOR UPDATE lock.

func (*Queries) SchedInsertData added in v0.34.0

func (q *Queries) SchedInsertData(ctx context.Context, scheduleID uuid.UUID) error

Inserts empty schedule data for a given schedule ID.

func (*Queries) SchedMgrDataForUpdate added in v0.33.0

func (q *Queries) SchedMgrDataForUpdate(ctx context.Context) ([]SchedMgrDataForUpdateRow, error)

func (*Queries) SchedMgrDataIDs added in v0.33.0

func (q *Queries) SchedMgrDataIDs(ctx context.Context) ([]uuid.UUID, error)

Returns all schedule IDs that have an entry in the schedule_data table.

func (*Queries) SchedMgrEndOnCall added in v0.33.0

func (q *Queries) SchedMgrEndOnCall(ctx context.Context, arg SchedMgrEndOnCallParams) error

func (*Queries) SchedMgrGetData added in v0.33.0

func (q *Queries) SchedMgrGetData(ctx context.Context, scheduleID uuid.UUID) (json.RawMessage, error)

Returns the data for a single schedule.

func (*Queries) SchedMgrInsertMessage added in v0.33.0

func (q *Queries) SchedMgrInsertMessage(ctx context.Context, arg SchedMgrInsertMessageParams) error

func (*Queries) SchedMgrNCDedupMapping added in v0.33.0

func (q *Queries) SchedMgrNCDedupMapping(ctx context.Context) ([]SchedMgrNCDedupMappingRow, error)

Returns the mapping of old notification channel IDs to new notification channel IDs.

func (*Queries) SchedMgrOnCall added in v0.33.0

func (q *Queries) SchedMgrOnCall(ctx context.Context) ([]SchedMgrOnCallRow, error)

func (*Queries) SchedMgrOverrides added in v0.33.0

func (q *Queries) SchedMgrOverrides(ctx context.Context) ([]SchedMgrOverridesRow, error)

func (*Queries) SchedMgrRules added in v0.33.0

func (q *Queries) SchedMgrRules(ctx context.Context) ([]SchedMgrRulesRow, error)

func (*Queries) SchedMgrSetData added in v0.33.0

func (q *Queries) SchedMgrSetData(ctx context.Context, arg SchedMgrSetDataParams) error

func (*Queries) SchedMgrSetDataV1Rules added in v0.33.0

func (q *Queries) SchedMgrSetDataV1Rules(ctx context.Context, arg SchedMgrSetDataV1RulesParams) error

Sets the .V1.OnCallNotificationRules for a schedule.

func (*Queries) SchedMgrStartOnCall added in v0.33.0

func (q *Queries) SchedMgrStartOnCall(ctx context.Context, arg SchedMgrStartOnCallParams) error

func (*Queries) SchedMgrTimezones added in v0.33.0

func (q *Queries) SchedMgrTimezones(ctx context.Context) ([]SchedMgrTimezonesRow, error)

func (*Queries) SchedUpdate added in v0.34.0

func (q *Queries) SchedUpdate(ctx context.Context, arg SchedUpdateParams) error

Updates an existing schedule.

func (*Queries) SchedUpdateData added in v0.34.0

func (q *Queries) SchedUpdateData(ctx context.Context, arg SchedUpdateDataParams) error

Updates the schedule data for a given schedule ID.

func (*Queries) ScheduleFindManyByUser added in v0.32.0

func (q *Queries) ScheduleFindManyByUser(ctx context.Context, tgtUserID uuid.NullUUID) ([]Schedule, error)

func (*Queries) SequenceNames added in v0.33.0

func (q *Queries) SequenceNames(ctx context.Context) ([]string, error)

func (*Queries) ServiceAlertCounts added in v0.34.0

func (q *Queries) ServiceAlertCounts(ctx context.Context, serviceIds []uuid.UUID) ([]ServiceAlertCountsRow, error)

func (*Queries) ServiceAlertStats added in v0.34.0

func (q *Queries) ServiceAlertStats(ctx context.Context, arg ServiceAlertStatsParams) ([]ServiceAlertStatsRow, error)

ServiceAlertStats returns statistics about alerts for a service.

func (*Queries) SignalMgrDeleteStale added in v0.33.0

func (q *Queries) SignalMgrDeleteStale(ctx context.Context) error

Delete stale pending signals.

func (*Queries) SignalMgrGetPending added in v0.33.0

func (q *Queries) SignalMgrGetPending(ctx context.Context, serviceID uuid.NullUUID) ([]SignalMgrGetPendingRow, error)

Get a batch of pending signals to process.

func (*Queries) SignalMgrGetScheduled added in v0.33.0

func (q *Queries) SignalMgrGetScheduled(ctx context.Context, serviceID uuid.NullUUID) ([]SignalMgrGetScheduledRow, error)

func (*Queries) SignalMgrInsertMessage added in v0.33.0

func (q *Queries) SignalMgrInsertMessage(ctx context.Context, arg SignalMgrInsertMessageParams) error

Insert a new message into the outgoing_messages table.

func (*Queries) SignalMgrUpdateSignal added in v0.33.0

func (q *Queries) SignalMgrUpdateSignal(ctx context.Context, arg SignalMgrUpdateSignalParams) error

Update a pending signal with the message_id.

func (*Queries) StatusMgrCleanupStaleSubs added in v0.32.0

func (q *Queries) StatusMgrCleanupStaleSubs(ctx context.Context) error

func (*Queries) StatusMgrDeleteSub

func (q *Queries) StatusMgrDeleteSub(ctx context.Context, id int64) error

func (*Queries) StatusMgrFindOne added in v0.34.0

func (q *Queries) StatusMgrFindOne(ctx context.Context, id int64) (StatusMgrFindOneRow, error)

func (*Queries) StatusMgrLogEntry

func (q *Queries) StatusMgrLogEntry(ctx context.Context, arg StatusMgrLogEntryParams) (StatusMgrLogEntryRow, error)

func (*Queries) StatusMgrOutdated added in v0.34.0

func (q *Queries) StatusMgrOutdated(ctx context.Context, alertID sql.NullInt64) ([]int64, error)

func (*Queries) StatusMgrSendChannelMsg

func (q *Queries) StatusMgrSendChannelMsg(ctx context.Context, arg StatusMgrSendChannelMsgParams) error

func (*Queries) StatusMgrSendUserMsg

func (q *Queries) StatusMgrSendUserMsg(ctx context.Context, arg StatusMgrSendUserMsgParams) error

func (*Queries) StatusMgrUpdateSub

func (q *Queries) StatusMgrUpdateSub(ctx context.Context, arg StatusMgrUpdateSubParams) error

func (*Queries) TableColumns added in v0.33.0

func (q *Queries) TableColumns(ctx context.Context) ([]TableColumnsRow, error)

func (*Queries) UpdateCalSub

func (q *Queries) UpdateCalSub(ctx context.Context, arg UpdateCalSubParams) error

func (*Queries) UserFavFindAll added in v0.32.0

func (q *Queries) UserFavFindAll(ctx context.Context, arg UserFavFindAllParams) ([]UserFavFindAllRow, error)

func (*Queries) UserFavSet added in v0.32.0

func (q *Queries) UserFavSet(ctx context.Context, arg UserFavSetParams) error

func (*Queries) UserFavUnset added in v0.32.0

func (q *Queries) UserFavUnset(ctx context.Context, arg UserFavUnsetParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type RegionID

type RegionID struct {
	ID   int32
	Name string
}

type RiverClient added in v0.33.0

type RiverClient struct {
	CreatedAt time.Time
	ID        string
	Metadata  json.RawMessage
	PausedAt  sql.NullTime
	UpdatedAt time.Time
}

type RiverClientQueue added in v0.33.0

type RiverClientQueue struct {
	CreatedAt        time.Time
	ID               int64
	MaxWorkers       int64
	Metadata         json.RawMessage
	Name             string
	NumJobsCompleted int64
	NumJobsRunning   int64
	RiverClientID    string
	UpdatedAt        time.Time
}

type RiverJob added in v0.33.0

type RiverJob struct {
	Args         json.RawMessage
	Attempt      int16
	AttemptedAt  sql.NullTime
	AttemptedBy  []string
	CreatedAt    time.Time
	Errors       []json.RawMessage
	FinalizedAt  sql.NullTime
	ID           int64
	Kind         string
	MaxAttempts  int16
	Metadata     json.RawMessage
	Priority     int16
	Queue        string
	ScheduledAt  time.Time
	State        RiverJobState
	Tags         []string
	UniqueKey    []byte
	UniqueStates interface{}
}

type RiverJobState added in v0.33.0

type RiverJobState string
const (
	RiverJobStateAvailable RiverJobState = "available"
	RiverJobStateCancelled RiverJobState = "cancelled"
	RiverJobStateCompleted RiverJobState = "completed"
	RiverJobStateDiscarded RiverJobState = "discarded"
	RiverJobStatePending   RiverJobState = "pending"
	RiverJobStateRetryable RiverJobState = "retryable"
	RiverJobStateRunning   RiverJobState = "running"
	RiverJobStateScheduled RiverJobState = "scheduled"
)

func (*RiverJobState) Scan added in v0.33.0

func (e *RiverJobState) Scan(src interface{}) error

type RiverLeader added in v0.33.0

type RiverLeader struct {
	ElectedAt time.Time
	ExpiresAt time.Time
	ID        int64
	LeaderID  string
	Name      string
}

type RiverQueue added in v0.33.0

type RiverQueue struct {
	CreatedAt time.Time
	ID        int64
	Metadata  json.RawMessage
	Name      string
	PausedAt  sql.NullTime
	UpdatedAt time.Time
}

type RotMgrRotationDataRow added in v0.34.0

type RotMgrRotationDataRow struct {
	Now             time.Time
	Rotation        Rotation
	StateVersion    int32
	StatePosition   int32
	StateShiftStart sql.NullTime
	Participants    []uuid.UUID
}

type RotMgrUpdateParams added in v0.34.0

type RotMgrUpdateParams struct {
	Position              int32
	RotationParticipantID uuid.UUID
	RotationID            uuid.UUID
}

type Rotation

type Rotation struct {
	Description      string
	ID               uuid.UUID
	LastProcessed    sql.NullTime
	Name             string
	ParticipantCount int32
	ShiftLength      int64
	StartTime        time.Time
	TimeZone         string
	Type             EnumRotationType
}

type RotationParticipant

type RotationParticipant struct {
	ID         uuid.UUID
	Position   int32
	RotationID uuid.UUID
	UserID     uuid.UUID
}

type RotationState

type RotationState struct {
	ID                    int64
	Position              int32
	RotationID            uuid.UUID
	RotationParticipantID uuid.UUID
	ShiftStart            time.Time
	Version               int32
}

type SchedCreateParams added in v0.34.0

type SchedCreateParams struct {
	Name        string
	Description string
	TimeZone    string
}

type SchedFindAllRow added in v0.34.0

type SchedFindAllRow struct {
	ID          uuid.UUID
	Name        string
	Description string
	TimeZone    string
}

type SchedFindManyParams added in v0.34.0

type SchedFindManyParams struct {
	Column1 []uuid.UUID
	UserID  uuid.UUID
}

type SchedFindManyRow added in v0.34.0

type SchedFindManyRow struct {
	ID          uuid.UUID
	Name        string
	Description string
	TimeZone    string
	IsFavorite  bool
}

type SchedFindOneForUpdateRow added in v0.34.0

type SchedFindOneForUpdateRow struct {
	ID          uuid.UUID
	Name        string
	Description string
	TimeZone    string
}

type SchedFindOneParams added in v0.34.0

type SchedFindOneParams struct {
	ID     uuid.UUID
	UserID uuid.UUID
}

type SchedFindOneRow added in v0.34.0

type SchedFindOneRow struct {
	ID          uuid.UUID
	Name        string
	Description string
	TimeZone    string
	IsFavorite  bool
}

type SchedMgrDataForUpdateRow added in v0.33.0

type SchedMgrDataForUpdateRow struct {
	ScheduleID uuid.UUID
	Data       json.RawMessage
}

type SchedMgrEndOnCallParams added in v0.33.0

type SchedMgrEndOnCallParams struct {
	ScheduleID uuid.UUID
	UserID     uuid.UUID
}

type SchedMgrInsertMessageParams added in v0.33.0

type SchedMgrInsertMessageParams struct {
	ID         uuid.UUID
	ChannelID  uuid.NullUUID
	ScheduleID uuid.NullUUID
}

type SchedMgrNCDedupMappingRow added in v0.33.0

type SchedMgrNCDedupMappingRow struct {
	OldID uuid.UUID
	NewID uuid.UUID
}

type SchedMgrOnCallRow added in v0.33.0

type SchedMgrOnCallRow struct {
	ScheduleID uuid.UUID
	UserID     uuid.UUID
}

type SchedMgrOverridesRow added in v0.33.0

type SchedMgrOverridesRow struct {
	AddUserID     uuid.NullUUID
	RemoveUserID  uuid.NullUUID
	TgtScheduleID uuid.UUID
}

type SchedMgrRulesRow added in v0.33.0

type SchedMgrRulesRow struct {
	CreatedAt      time.Time
	EndTime        timeutil.Clock
	Friday         bool
	ID             uuid.UUID
	IsActive       bool
	Monday         bool
	Saturday       bool
	ScheduleID     uuid.UUID
	StartTime      timeutil.Clock
	Sunday         bool
	TgtRotationID  uuid.NullUUID
	TgtUserID      uuid.NullUUID
	Thursday       bool
	Tuesday        bool
	Wednesday      bool
	ResolvedUserID uuid.UUID
}

type SchedMgrSetDataParams added in v0.33.0

type SchedMgrSetDataParams struct {
	ScheduleID uuid.UUID
	Data       json.RawMessage
}

type SchedMgrSetDataV1RulesParams added in v0.33.0

type SchedMgrSetDataV1RulesParams struct {
	ScheduleID  uuid.UUID
	Replacement json.RawMessage
}

type SchedMgrStartOnCallParams added in v0.33.0

type SchedMgrStartOnCallParams struct {
	ScheduleID uuid.UUID
	UserID     uuid.UUID
}

type SchedMgrTimezonesRow added in v0.33.0

type SchedMgrTimezonesRow struct {
	ID       uuid.UUID
	TimeZone string
}

type SchedUpdateDataParams added in v0.34.0

type SchedUpdateDataParams struct {
	ScheduleID uuid.UUID
	Data       json.RawMessage
}

type SchedUpdateParams added in v0.34.0

type SchedUpdateParams struct {
	ID          uuid.UUID
	Name        string
	Description string
	TimeZone    string
}

type Schedule

type Schedule struct {
	Description   string
	ID            uuid.UUID
	LastProcessed sql.NullTime
	Name          string
	TimeZone      string
}

type ScheduleDatum

type ScheduleDatum struct {
	Data          json.RawMessage
	ID            int64
	LastCleanupAt sql.NullTime
	ScheduleID    uuid.UUID
}

type ScheduleOnCallUser

type ScheduleOnCallUser struct {
	EndTime    sql.NullTime
	ID         int64
	ScheduleID uuid.UUID
	StartTime  time.Time
	UserID     uuid.UUID
}

type ScheduleRule

type ScheduleRule struct {
	CreatedAt     time.Time
	EndTime       timeutil.Clock
	Friday        bool
	ID            uuid.UUID
	IsActive      bool
	Monday        bool
	Saturday      bool
	ScheduleID    uuid.UUID
	StartTime     timeutil.Clock
	Sunday        bool
	TgtRotationID uuid.NullUUID
	TgtUserID     uuid.NullUUID
	Thursday      bool
	Tuesday       bool
	Wednesday     bool
}

type Service

type Service struct {
	Description          string
	EscalationPolicyID   uuid.UUID
	ID                   uuid.UUID
	MaintenanceExpiresAt sql.NullTime
	Name                 string
}

type ServiceAlertCountsRow added in v0.34.0

type ServiceAlertCountsRow struct {
	Count     int64
	Status    EnumAlertStatus
	ServiceID uuid.NullUUID
}

type ServiceAlertStatsParams added in v0.34.0

type ServiceAlertStatsParams struct {
	Stride     sqlutil.Interval
	Origin     time.Time
	ServiceIds []uuid.UUID
	StartTime  time.Time
	EndTime    time.Time
}

type ServiceAlertStatsRow added in v0.34.0

type ServiceAlertStatsRow struct {
	Bucket                time.Time
	AvgTimeToAckSeconds   float64
	AvgTimeToCloseSeconds float64
	AlertCount            int64
	EscalatedCount        int64
	ServiceID             uuid.UUID
}

type SignalMgrGetPendingRow added in v0.33.0

type SignalMgrGetPendingRow struct {
	ID        int32
	DestID    uuid.UUID
	ServiceID uuid.UUID
}

type SignalMgrGetScheduledRow added in v0.33.0

type SignalMgrGetScheduledRow struct {
	Count     int64
	ServiceID uuid.NullUUID
	ChannelID uuid.NullUUID
}

type SignalMgrInsertMessageParams added in v0.33.0

type SignalMgrInsertMessageParams struct {
	ID        uuid.UUID
	ServiceID uuid.NullUUID
	ChannelID uuid.NullUUID
}

type SignalMgrUpdateSignalParams added in v0.33.0

type SignalMgrUpdateSignalParams struct {
	ID        int32
	MessageID uuid.NullUUID
}

type StatusMgrFindOneRow added in v0.34.0

type StatusMgrFindOneRow struct {
	AlertID         int64
	ChannelID       uuid.NullUUID
	ContactMethodID uuid.NullUUID
	ID              int64
	LastAlertStatus EnumAlertStatus
	UpdatedAt       time.Time
	Status          EnumAlertStatus
}

type StatusMgrLogEntryParams

type StatusMgrLogEntryParams struct {
	AlertID   int64
	EventType EnumAlertLogEvent
}

type StatusMgrLogEntryRow

type StatusMgrLogEntryRow struct {
	ID     int64
	UserID uuid.NullUUID
}

type StatusMgrSendChannelMsgParams

type StatusMgrSendChannelMsgParams struct {
	ID        uuid.UUID
	ChannelID uuid.UUID
	AlertID   int64
	LogID     sql.NullInt64
}

type StatusMgrSendUserMsgParams

type StatusMgrSendUserMsgParams struct {
	ID      uuid.UUID
	CmID    uuid.UUID
	UserID  uuid.UUID
	AlertID int64
	LogID   sql.NullInt64
}

type StatusMgrUpdateSubParams

type StatusMgrUpdateSubParams struct {
	ID              int64
	LastAlertStatus EnumAlertStatus
}

type SwitchoverLog

type SwitchoverLog struct {
	Data      json.RawMessage
	ID        int64
	Timestamp time.Time
}

type SwitchoverState

type SwitchoverState struct {
	CurrentState EnumSwitchoverState
	DbID         uuid.UUID
	Ok           bool
}

type TableColumnsRow added in v0.33.0

type TableColumnsRow struct {
	ColTableName       string
	ColColumnName      string
	ColDataType        string
	ColOrdinalPosition int32
}

type TwilioSmsCallback

type TwilioSmsCallback struct {
	AlertID     sql.NullInt64
	CallbackID  uuid.UUID
	Code        int32
	ID          int64
	PhoneNumber string
	SentAt      time.Time
	ServiceID   uuid.NullUUID
}

type TwilioSmsError

type TwilioSmsError struct {
	ErrorMessage string
	ID           int64
	OccurredAt   time.Time
	Outgoing     bool
	PhoneNumber  string
}

type TwilioVoiceError

type TwilioVoiceError struct {
	ErrorMessage string
	ID           int64
	OccurredAt   time.Time
	Outgoing     bool
	PhoneNumber  string
}

type UIKActionV1 added in v0.33.0

type UIKActionV1 struct {
	ChannelID uuid.UUID
	Dest      DestV1

	// Params are parameters that are determined at runtime (e.g., the message to send).
	// The keys are the parameter names, and the values are the Expr expression strings.
	Params map[string]string
}

UIKActionV1 is a single action to take if a rule matches.

func (UIKActionV1) Param added in v0.33.0

func (act UIKActionV1) Param(name string) string

func (*UIKActionV1) SetParam added in v0.33.0

func (act *UIKActionV1) SetParam(name, value string)

type UIKConfig added in v0.33.0

type UIKConfig struct {
	Version int
	V1      UIKConfigV1
}

UIKConfig stores the configuration for an integration key for how to handle incoming requests.

func (*UIKConfig) Scan added in v0.33.0

func (cfg *UIKConfig) Scan(value interface{}) error

Scan implements the Scanner interface.

func (UIKConfig) Value added in v0.33.0

func (cfg UIKConfig) Value() (interface{}, error)

Value implements the driver Valuer interface.

type UIKConfigV1 added in v0.33.0

type UIKConfigV1 struct {
	Rules []UIKRuleV1

	// DefaultActions are the actions to take if no rules match.
	DefaultActions []UIKActionV1
}

UIKConfigV1 stores the configuration for an integration key for how to handle incoming requests.

type UIKRuleV1 added in v0.33.0

type UIKRuleV1 struct {
	ID            uuid.UUID
	Name          string
	Description   string
	ConditionExpr string
	Actions       []UIKActionV1

	ContinueAfterMatch bool
}

UIKRuleV1 is a set of conditions and actions to take if those conditions are met.

type UikConfig added in v0.33.0

type UikConfig struct {
	Config             UIKConfig
	ID                 uuid.UUID
	PrimaryToken       uuid.NullUUID
	PrimaryTokenHint   sql.NullString
	SecondaryToken     uuid.NullUUID
	SecondaryTokenHint sql.NullString
}

type UpdateCalSubParams

type UpdateCalSubParams struct {
	Name     string
	Disabled bool
	Config   json.RawMessage
	ID       uuid.UUID
	UserID   uuid.UUID
}

type User

type User struct {
	AlertStatusLogContactMethodID uuid.NullUUID
	AvatarUrl                     string
	Bio                           string
	Email                         string
	ID                            uuid.UUID
	Name                          string
	Role                          EnumUserRole
}

type UserCalendarSubscription

type UserCalendarSubscription struct {
	Config     json.RawMessage
	CreatedAt  time.Time
	Disabled   bool
	ID         uuid.UUID
	LastAccess sql.NullTime
	LastUpdate time.Time
	Name       string
	ScheduleID uuid.UUID
	UserID     uuid.UUID
}

type UserContactMethod

type UserContactMethod struct {
	Dest                NullDestV1
	Disabled            bool
	EnableStatusUpdates bool
	ID                  uuid.UUID
	LastTestVerifyAt    sql.NullTime
	Metadata            pqtype.NullRawMessage
	Name                string
	Pending             bool
	Type                EnumUserContactMethodType
	UserID              uuid.UUID
	Value               string
}

type UserFavFindAllParams added in v0.32.0

type UserFavFindAllParams struct {
	UserID                  uuid.UUID
	AllowServices           bool
	AllowSchedules          bool
	AllowRotations          bool
	AllowEscalationPolicies bool
	AllowUsers              bool
}

type UserFavFindAllRow added in v0.32.0

type UserFavFindAllRow struct {
	TgtServiceID          uuid.NullUUID
	TgtScheduleID         uuid.NullUUID
	TgtRotationID         uuid.NullUUID
	TgtEscalationPolicyID uuid.NullUUID
	TgtUserID             uuid.NullUUID
}

type UserFavSetParams added in v0.32.0

type UserFavSetParams struct {
	UserID                uuid.UUID
	TgtServiceID          uuid.NullUUID
	TgtScheduleID         uuid.NullUUID
	TgtRotationID         uuid.NullUUID
	TgtEscalationPolicyID uuid.NullUUID
	TgtUserID             uuid.NullUUID
}

type UserFavUnsetParams added in v0.32.0

type UserFavUnsetParams struct {
	UserID                uuid.UUID
	TgtServiceID          uuid.NullUUID
	TgtScheduleID         uuid.NullUUID
	TgtRotationID         uuid.NullUUID
	TgtEscalationPolicyID uuid.NullUUID
	TgtUserID             uuid.NullUUID
}

type UserFavorite

type UserFavorite struct {
	ID                    int64
	TgtEscalationPolicyID uuid.NullUUID
	TgtRotationID         uuid.NullUUID
	TgtScheduleID         uuid.NullUUID
	TgtServiceID          uuid.NullUUID
	TgtUserID             uuid.NullUUID
	UserID                uuid.UUID
}

type UserNotificationRule

type UserNotificationRule struct {
	ContactMethodID uuid.UUID
	CreatedAt       sql.NullTime
	DelayMinutes    int32
	ID              uuid.UUID
	UserID          uuid.UUID
}

type UserOverride

type UserOverride struct {
	AddUserID     uuid.NullUUID
	EndTime       time.Time
	ID            uuid.UUID
	RemoveUserID  uuid.NullUUID
	StartTime     time.Time
	TgtScheduleID uuid.UUID
}

type UserSlackDatum

type UserSlackDatum struct {
	AccessToken string
	ID          uuid.UUID
}

type UserVerificationCode

type UserVerificationCode struct {
	Code            int32
	ContactMethodID uuid.UUID
	ExpiresAt       time.Time
	ID              uuid.UUID
	Sent            bool
}

Jump to

Keyboard shortcuts

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