gadb

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 AlertFeedback

type AlertFeedback struct {
	AlertID     int64
	ID          int64
	NoiseReason string
}

type AlertFeedbackRow added in v0.31.1

type AlertFeedbackRow struct {
	AlertID     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 AlertLogInsertEPParams

type AlertLogInsertEPParams 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 AlertLogInsertManyParams

type AlertLogInsertManyParams 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 AlertLogInsertSvcParams

type AlertLogInsertSvcParams 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
}

type AllPendingMsgDestsParams

type AllPendingMsgDestsParams struct {
	AlertID   int64
	ServiceID uuid.UUID
}

type AllPendingMsgDestsRow

type AllPendingMsgDestsRow struct {
	UserName sql.NullString
	CmType   NullEnumUserContactMethodType
	NcName   sql.NullString
	NcType   NullEnumNotifChannelType
}

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 Config

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

type ConfigLimit

type ConfigLimit struct {
	ID  EnumLimitType
	Max int32
}

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 DeleteManyCalSubParams

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

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"
	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 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"
)

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"
)

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"
	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 (
	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"
	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"
	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"
	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 (
	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 GorpMigration

type GorpMigration struct {
	AppliedAt sql.NullTime
	ID        string
}

type HeartbeatMonitor

type HeartbeatMonitor struct {
	HeartbeatInterval int64
	ID                uuid.UUID
	LastHeartbeat     sql.NullTime
	LastState         EnumHeartbeatState
	Name              string
	ServiceID         uuid.UUID
}

type IntegrationKey

type IntegrationKey struct {
	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 Label

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

type LockOneAlertServiceRow

type LockOneAlertServiceRow struct {
	IsMaintMode bool
	Status      EnumAlertStatus
}

type NoticeUnackedAlertsByServiceRow

type NoticeUnackedAlertsByServiceRow struct {
	Count int64
	Max   int32
}

type NotificationChannel

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

type NotificationPolicyCycle

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

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 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          sql.NullString
	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 Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AlertFeedback

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

func (*Queries) AlertHasEPState

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

func (*Queries) AlertLogHBIntervalMinutes

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

func (*Queries) AlertLogInsertEP

func (q *Queries) AlertLogInsertEP(ctx context.Context, arg AlertLogInsertEPParams) error

func (*Queries) AlertLogInsertMany

func (q *Queries) AlertLogInsertMany(ctx context.Context, arg AlertLogInsertManyParams) error

func (*Queries) AlertLogInsertSvc

func (q *Queries) AlertLogInsertSvc(ctx context.Context, arg AlertLogInsertSvcParams) error

func (*Queries) AlertLogLookupCMType

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

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) CreateCalSub

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

func (*Queries) DeleteManyCalSub

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

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) LockOneAlertService

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

func (*Queries) NoticeUnackedAlertsByService

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

func (*Queries) Now

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

func (*Queries) RequestAlertEscalationByTime

func (q *Queries) RequestAlertEscalationByTime(ctx context.Context, arg RequestAlertEscalationByTimeParams) (bool, error)

func (*Queries) SetAlertFeedback

func (q *Queries) SetAlertFeedback(ctx context.Context, arg SetAlertFeedbackParams) error

func (*Queries) StatusMgrCMInfo

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

func (*Queries) StatusMgrCleanupDisabledSubs

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

func (*Queries) StatusMgrDeleteSub

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

func (*Queries) StatusMgrLogEntry

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

func (*Queries) StatusMgrNextUpdate

func (q *Queries) StatusMgrNextUpdate(ctx context.Context) (StatusMgrNextUpdateRow, 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) StatusMgrUpdateCMForced

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

func (*Queries) StatusMgrUpdateSub

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

func (*Queries) UpdateCalSub

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

func (*Queries) WithTx

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

type RegionID

type RegionID struct {
	ID   int32
	Name string
}

type RequestAlertEscalationByTimeParams

type RequestAlertEscalationByTimeParams struct {
	AlertID int64
	Column2 time.Time
}

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 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       time.Time
	Friday        bool
	ID            uuid.UUID
	IsActive      bool
	Monday        bool
	Saturday      bool
	ScheduleID    uuid.UUID
	StartTime     time.Time
	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 SetAlertFeedbackParams

type SetAlertFeedbackParams struct {
	AlertID     int64
	NoiseReason string
}

type StatusMgrCMInfoRow

type StatusMgrCMInfoRow struct {
	UserID uuid.UUID
	Type   EnumUserContactMethodType
}

type StatusMgrLogEntryParams

type StatusMgrLogEntryParams struct {
	AlertID   int64
	EventType EnumAlertLogEvent
}

type StatusMgrLogEntryRow

type StatusMgrLogEntryRow struct {
	ID     int64
	UserID uuid.NullUUID
}

type StatusMgrNextUpdateRow

type StatusMgrNextUpdateRow struct {
	ID              int64
	ChannelID       uuid.NullUUID
	ContactMethodID uuid.NullUUID
	AlertID         int64
	Status          EnumAlertStatus
}

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 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 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 {
	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 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