v1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ExpandCustomvars

func ExpandCustomvars(
	ctx context.Context,
	cvs <-chan contracts.Entity,
) (customvars, flatCustomvars <-chan contracts.Entity, errs <-chan error)

ExpandCustomvars streams custom variables from a provided channel and returns three channels, the first providing the unmodified custom variable read from the input channel, the second channel providing the corresponding resolved flat custom variables, and the third channel providing an error, if any.

func NewActionUrl

func NewActionUrl() contracts.Entity

func NewCheckcommand

func NewCheckcommand() contracts.Entity

func NewCheckcommandArgument

func NewCheckcommandArgument() contracts.Entity

func NewCheckcommandCustomvar

func NewCheckcommandCustomvar() contracts.Entity

func NewCheckcommandEnvvar

func NewCheckcommandEnvvar() contracts.Entity

func NewComment

func NewComment() contracts.Entity

func NewCustomvar

func NewCustomvar() contracts.Entity

func NewCustomvarFlat

func NewCustomvarFlat() contracts.Entity

func NewDowntime

func NewDowntime() contracts.Entity

func NewEndpoint

func NewEndpoint() contracts.Entity

func NewEntityWithChecksum added in v1.1.0

func NewEntityWithChecksum() contracts.Entity

func NewEventcommand

func NewEventcommand() contracts.Entity

func NewEventcommandArgument

func NewEventcommandArgument() contracts.Entity

func NewEventcommandCustomvar

func NewEventcommandCustomvar() contracts.Entity

func NewEventcommandEnvvar

func NewEventcommandEnvvar() contracts.Entity

func NewHost

func NewHost() contracts.Entity

func NewHostCustomvar

func NewHostCustomvar() contracts.Entity

func NewHostState

func NewHostState() contracts.Entity

func NewHostgroup

func NewHostgroup() contracts.Entity

func NewHostgroupCustomvar

func NewHostgroupCustomvar() contracts.Entity

func NewHostgroupMember

func NewHostgroupMember() contracts.Entity

func NewIconImage

func NewIconImage() contracts.Entity

func NewNotesUrl

func NewNotesUrl() contracts.Entity

func NewNotification

func NewNotification() contracts.Entity

func NewNotificationCustomvar

func NewNotificationCustomvar() contracts.Entity

func NewNotificationRecipient

func NewNotificationRecipient() contracts.Entity

func NewNotificationUser

func NewNotificationUser() contracts.Entity

func NewNotificationUsergroup

func NewNotificationUsergroup() contracts.Entity

func NewNotificationcommand

func NewNotificationcommand() contracts.Entity

func NewNotificationcommandArgument

func NewNotificationcommandArgument() contracts.Entity

func NewNotificationcommandCustomvar

func NewNotificationcommandCustomvar() contracts.Entity

func NewNotificationcommandEnvvar

func NewNotificationcommandEnvvar() contracts.Entity

func NewService

func NewService() contracts.Entity

func NewServiceCustomvar

func NewServiceCustomvar() contracts.Entity

func NewServiceState

func NewServiceState() contracts.Entity

func NewServicegroup

func NewServicegroup() contracts.Entity

func NewServicegroupCustomvar

func NewServicegroupCustomvar() contracts.Entity

func NewServicegroupMember

func NewServicegroupMember() contracts.Entity

func NewTimeperiod

func NewTimeperiod() contracts.Entity

func NewTimeperiodCustomvar

func NewTimeperiodCustomvar() contracts.Entity

func NewTimeperiodOverrideExclude

func NewTimeperiodOverrideExclude() contracts.Entity

func NewTimeperiodOverrideInclude

func NewTimeperiodOverrideInclude() contracts.Entity

func NewTimeperiodRange

func NewTimeperiodRange() contracts.Entity

func NewUser

func NewUser() contracts.Entity

func NewUserCustomvar

func NewUserCustomvar() contracts.Entity

func NewUsergroup

func NewUsergroup() contracts.Entity

func NewUsergroupCustomvar

func NewUsergroupCustomvar() contracts.Entity

func NewUsergroupMember

func NewUsergroupMember() contracts.Entity

func NewZone

func NewZone() contracts.Entity

Types

type ActionUrl

type ActionUrl struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	ActionUrl             string `json:"action_url"`
}

type Address6Bin

type Address6Bin struct {
	Host *Host `db:"-"`
}

func (Address6Bin) Value

func (ab Address6Bin) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type AddressBin

type AddressBin struct {
	Host *Host `db:"-"`
}

func (AddressBin) Value

func (ab AddressBin) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Checkable

type Checkable struct {
	EntityWithChecksum    `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	NameCiMeta            `json:",inline"`
	ActionUrlId           types.Binary `json:"action_url_id"`
	ActiveChecksEnabled   types.Bool   `json:"active_checks_enabled"`
	CheckInterval         float64      `json:"check_interval"`
	CheckTimeperiodName   string       `json:"check_timeperiod_name"`
	CheckTimeperiodId     types.Binary `json:"check_timeperiod_id"`
	CheckRetryInterval    float64      `json:"check_retry_interval"`
	CheckTimeout          float64      `json:"check_timeout"`
	CheckcommandName      string       `json:"checkcommand_name"`
	CheckcommandId        types.Binary `json:"checkcommand_id"`
	CommandEndpointName   string       `json:"command_endpoint_name"`
	CommandEndpointId     types.Binary `json:"command_endpoint_id"`
	DisplayName           string       `json:"display_name"`
	EventHandlerEnabled   types.Bool   `json:"event_handler_enabled"`
	EventcommandName      string       `json:"eventcommand_name"`
	EventcommandId        types.Binary `json:"eventcommand_id"`
	FlappingEnabled       types.Bool   `json:"flapping_enabled"`
	FlappingThresholdHigh float64      `json:"flapping_threshold_high"`
	FlappingThresholdLow  float64      `json:"flapping_threshold_low"`
	IconImageAlt          string       `json:"icon_image_alt"`
	IconImageId           types.Binary `json:"icon_image_id"`
	IsVolatile            types.Bool   `json:"is_volatile"`
	MaxCheckAttempts      uint32       `json:"max_check_attempts"`
	Notes                 string       `json:"notes"`
	NotesUrlId            types.Binary `json:"notes_url_id"`
	NotificationsEnabled  types.Bool   `json:"notifications_enabled"`
	PassiveChecksEnabled  types.Bool   `json:"passive_checks_enabled"`
	PerfdataEnabled       types.Bool   `json:"perfdata_enabled"`
	ZoneName              string       `json:"zone_name"`
	ZoneId                types.Binary `json:"zone_id"`
}

type Checkcommand

type Checkcommand struct {
	Command `json:",inline"`
}

type CheckcommandArgument

type CheckcommandArgument struct {
	CommandArgument `json:",inline"`
	CheckcommandId  types.Binary `json:"checkcommand_id"`
}

type CheckcommandCustomvar

type CheckcommandCustomvar struct {
	CustomvarMeta  `json:",inline"`
	CheckcommandId types.Binary `json:"checkcommand_id"`
}

type CheckcommandEnvvar

type CheckcommandEnvvar struct {
	CommandEnvvar  `json:",inline"`
	CheckcommandId types.Binary `json:"checkcommand_id"`
}

type ChecksumMeta

type ChecksumMeta struct {
	PropertiesChecksum types.Binary `json:"checksum"`
}

ChecksumMeta is embedded by every type with a checksum.

func (ChecksumMeta) Checksum

func (m ChecksumMeta) Checksum() contracts.Checksum

Checksum implements part of the contracts.Checksumer interface.

func (*ChecksumMeta) SetChecksum

func (m *ChecksumMeta) SetChecksum(checksum contracts.Checksum)

SetChecksum implements part of the contracts.Checksumer interface.

type Command

type Command struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	NameCiMeta         `json:",inline"`
	ZoneId             types.Binary `json:"zone_id"`
	Command            string       `json:"command"`
	Timeout            uint32       `json:"timeout"`
}

type CommandArgument

type CommandArgument struct {
	EntityWithChecksum  `json:",inline"`
	EnvironmentMeta     `json:",inline"`
	ArgumentKey         string       `json:"argument_key"`
	ArgumentValue       types.String `json:"value"`
	ArgumentOrder       types.Int    `json:"order"`
	Description         types.String `json:"description"`
	ArgumentKeyOverride types.String `json:"key"`
	RepeatKey           types.Bool   `json:"repeat_key"`
	Required            types.Bool   `json:"required"`
	SetIf               types.String `json:"set_if"`
	Separator           types.String `json:"separator"`
	SkipKey             types.Bool   `json:"skip_key"`
}

func (*CommandArgument) Init

func (ca *CommandArgument) Init()

Init implements the contracts.Initer interface.

type CommandEnvvar

type CommandEnvvar struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	EnvvarKey          string `json:"envvar_key"`
	EnvvarValue        string `json:"value"`
}

type Comment

type Comment struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	NameMeta           `json:",inline"`
	ObjectType         string            `json:"object_type"`
	HostId             types.Binary      `json:"host_id"`
	ServiceId          types.Binary      `json:"service_id"`
	Author             string            `json:"author"`
	Text               string            `json:"text"`
	EntryType          types.CommentType `json:"entry_type"`
	EntryTime          types.UnixMilli   `json:"entry_time"`
	IsPersistent       types.Bool        `json:"is_persistent"`
	IsSticky           types.Bool        `json:"is_sticky"`
	ExpireTime         types.UnixMilli   `json:"expire_time"`
	ZoneId             types.Binary      `json:"zone_id"`
}

type Customvar

type Customvar struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	NameMeta              `json:",inline"`
	Value                 string `json:"value"`
}

type CustomvarFlat

type CustomvarFlat struct {
	CustomvarMeta    `json:",inline"`
	Flatname         string       `json:"flatname"`
	FlatnameChecksum types.Binary `json:"flatname_checksum"`
	Flatvalue        types.String `json:"flatvalue"`
}

type CustomvarMeta

type CustomvarMeta struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	CustomvarId           types.Binary `json:"customvar_id"`
}

CustomvarMeta is embedded by every type with custom variables.

type Downtime

type Downtime struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	NameMeta           `json:",inline"`
	TriggeredById      types.Binary    `json:"triggered_by_id"`
	ParentId           types.Binary    `json:"parent_id"`
	ObjectType         string          `json:"object_type"`
	HostId             types.Binary    `json:"host_id"`
	ServiceId          types.Binary    `json:"service_id"`
	Author             string          `json:"author"`
	Comment            string          `json:"comment"`
	EntryTime          types.UnixMilli `json:"entry_time"`
	ScheduledStartTime types.UnixMilli `json:"scheduled_start_time"`
	ScheduledEndTime   types.UnixMilli `json:"scheduled_end_time"`
	ScheduledDuration  uint64          `json:"scheduled_duration"`
	IsFlexible         types.Bool      `json:"is_flexible"`
	FlexibleDuration   uint64          `json:"flexible_duration"`
	IsInEffect         types.Bool      `json:"is_in_effect"`
	StartTime          types.UnixMilli `json:"start_time"`
	EndTime            types.UnixMilli `json:"end_time"`
	Duration           uint64          `json:"duration"`
	ScheduledBy        types.String    `json:"scheduled_by"`
	ZoneId             types.Binary    `json:"zone_id"`
}

type Endpoint

type Endpoint struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	NameCiMeta         `json:",inline"`
	ZoneId             types.Binary `json:"zone_id"`
}

type EntityWithChecksum

type EntityWithChecksum struct {
	EntityWithoutChecksum `json:",inline"`
	ChecksumMeta          `json:",inline"`
}

EntityWithChecksum represents entities with a checksum.

func (EntityWithChecksum) Fingerprint

func (e EntityWithChecksum) Fingerprint() contracts.Fingerprinter

Fingerprint implements the contracts.Fingerprinter interface.

type EntityWithoutChecksum

type EntityWithoutChecksum struct {
	IdMeta `json:",inline"`
}

EntityWithoutChecksum represents entities without a checksum.

func (EntityWithoutChecksum) Fingerprint

Fingerprint implements the contracts.Fingerprinter interface.

type Environment

type Environment struct {
	EntityWithoutChecksum `json:",inline"`
	Name                  types.String `json:"name"`
}

func EnvironmentFromContext

func EnvironmentFromContext(ctx context.Context) (*Environment, bool)

EnvironmentFromContext returns the Environment value stored in ctx, if any:

e, ok := EnvironmentFromContext(ctx)
if !ok {
	// Error handling.
}

func (*Environment) Meta

func (e *Environment) Meta() *EnvironmentMeta

Meta returns the EnvironmentMeta for this Environment.

func (*Environment) NewContext

func (e *Environment) NewContext(parent context.Context) context.Context

NewContext returns a new Context that carries this Environment as value.

type EnvironmentMeta

type EnvironmentMeta struct {
	EnvironmentId types.Binary `json:"environment_id"`
}

EnvironmentMeta is embedded by every type which belongs to an environment.

type Eventcommand

type Eventcommand struct {
	Command `json:",inline"`
}

type EventcommandArgument

type EventcommandArgument struct {
	CommandArgument `json:",inline"`
	EventcommandId  types.Binary `json:"eventcommand_id"`
}

type EventcommandCustomvar

type EventcommandCustomvar struct {
	CustomvarMeta  `json:",inline"`
	EventcommandId types.Binary `json:"eventcommand_id"`
}

type EventcommandEnvvar

type EventcommandEnvvar struct {
	CommandEnvvar  `json:",inline"`
	EventcommandId types.Binary `json:"eventcommand_id"`
}

type GroupMeta

type GroupMeta struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	NameCiMeta         `json:",inline"`
	DisplayName        string       `json:"display_name"`
	ZoneId             types.Binary `json:"zone_id"`
}

GroupMeta is embedded by every type that represents a specific group.

type Host

type Host struct {
	Checkable   `json:",inline"`
	Address     string      `json:"address"`
	Address6    string      `json:"address6"`
	AddressBin  AddressBin  `json:"-"`
	Address6Bin Address6Bin `json:"-"`
}

func (*Host) Init

func (h *Host) Init()

Init implements the contracts.Initer interface.

type HostCustomvar

type HostCustomvar struct {
	CustomvarMeta `json:",inline"`
	HostId        types.Binary `json:"host_id"`
}

type HostState

type HostState struct {
	State  `json:",inline"`
	HostId types.Binary `json:"host_id"`
}

type Hostgroup

type Hostgroup struct {
	GroupMeta `json:",inline"`
}

type HostgroupCustomvar

type HostgroupCustomvar struct {
	CustomvarMeta `json:",inline"`
	HostgroupId   types.Binary `json:"hostgroup_id"`
}

type HostgroupMember

type HostgroupMember struct {
	MemberMeta  `json:",inline"`
	HostId      types.Binary `json:"host_id"`
	HostgroupId types.Binary `json:"hostgroup_id"`
}

type IcingadbInstance

type IcingadbInstance struct {
	EntityWithoutChecksum             `json:",inline"`
	EnvironmentMeta                   `json:",inline"`
	EndpointId                        types.Binary    `json:"endpoint_id"`
	Heartbeat                         types.UnixMilli `json:"heartbeat"`
	Responsible                       types.Bool      `json:"responsible"`
	Icinga2Version                    string          `json:"icinga2_version"`
	Icinga2StartTime                  types.UnixMilli `json:"icinga2_start_Time"`
	Icinga2NotificationsEnabled       types.Bool      `json:"icinga2_notifications_enabled"`
	Icinga2ActiveServiceChecksEnabled types.Bool      `json:"icinga2_active_service_checks_enabled"`
	Icinga2ActiveHostChecksEnabled    types.Bool      `json:"icinga2_active_host_checks_enabled"`
	Icinga2EventHandlersEnabled       types.Bool      `json:"icinga2_event_handlers_enabled"`
	Icinga2FlapDetectionEnabled       types.Bool      `json:"icinga2_flap_detection_enabled"`
	Icinga2PerformanceDataEnabled     types.Bool      `json:"icinga2_performance_data_enabled"`
}

type IconImage

type IconImage struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	IconImage             string `json:"icon_image"`
}

type IdMeta

type IdMeta struct {
	Id types.Binary `json:"id"`
}

IdMeta is embedded by every type Icinga DB should synchronize.

func (IdMeta) ID

func (m IdMeta) ID() contracts.ID

ID implements part of the contracts.IDer interface.

func (*IdMeta) SetID

func (m *IdMeta) SetID(id contracts.ID)

SetID implements part of the contracts.IDer interface.

type MemberMeta

type MemberMeta struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
}

MemberMeta is embedded by every type that represents members of a specific group.

type NameCiMeta

type NameCiMeta struct {
	NameMeta `json:",inline"`
	NameCi   *string `json:"-"`
}

NameCiMeta is embedded by every type with a case insensitive name.

func (*NameCiMeta) Init

func (n *NameCiMeta) Init()

Init implements the contracts.Initer interface.

type NameMeta

type NameMeta struct {
	Name         string       `json:"name"`
	NameChecksum types.Binary `json:"name_checksum"`
}

NameMeta is embedded by every type with a name.

type NotesUrl

type NotesUrl struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	NotesUrl              string `json:"notes_url"`
}

type Notification

type Notification struct {
	EntityWithChecksum    `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	NameCiMeta            `json:",inline"`
	HostId                types.Binary             `json:"host_id"`
	ServiceId             types.Binary             `json:"service_id"`
	NotificationcommandId types.Binary             `json:"notificationcommand_id"`
	TimesBegin            types.Int                `json:"times_begin"`
	TimesEnd              types.Int                `json:"times_end"`
	NotificationInterval  uint32                   `json:"notification_interval"`
	TimeperiodId          types.Binary             `json:"timeperiod_id"`
	States                types.NotificationStates `json:"states"`
	Types                 types.NotificationTypes  `json:"types"`
	ZoneId                types.Binary             `json:"zone_id"`
}

type NotificationCustomvar

type NotificationCustomvar struct {
	CustomvarMeta  `json:",inline"`
	NotificationId types.Binary `json:"notification_id"`
}

type NotificationRecipient

type NotificationRecipient struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	NotificationId        types.Binary `json:"notification_id"`
	UserId                types.Binary `json:"user_id"`
	UsergroupId           types.Binary `json:"usergroup_id"`
}

type NotificationUser

type NotificationUser struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	NotificationId        types.Binary `json:"notification_id"`
	UserId                types.Binary `json:"user_id"`
}

type NotificationUsergroup

type NotificationUsergroup struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	NotificationId        types.Binary `json:"notification_id"`
	UsergroupId           types.Binary `json:"usergroup_id"`
}

type Notificationcommand

type Notificationcommand struct {
	Command `json:",inline"`
}

type NotificationcommandArgument

type NotificationcommandArgument struct {
	CommandArgument       `json:",inline"`
	NotificationcommandId types.Binary `json:"notificationcommand_id"`
}

type NotificationcommandCustomvar

type NotificationcommandCustomvar struct {
	CustomvarMeta         `json:",inline"`
	NotificationcommandId types.Binary `json:"notificationcommand_id"`
}

type NotificationcommandEnvvar

type NotificationcommandEnvvar struct {
	CommandEnvvar         `json:",inline"`
	NotificationcommandId types.Binary `json:"notificationcommand_id"`
}

type Service

type Service struct {
	Checkable `json:",inline"`
	HostId    types.Binary `json:"host_id"`
}

type ServiceCustomvar

type ServiceCustomvar struct {
	CustomvarMeta `json:",inline"`
	ServiceId     types.Binary `json:"service_id"`
}

type ServiceState

type ServiceState struct {
	State     `json:",inline"`
	ServiceId types.Binary `json:"service_id"`
	HostId    types.Binary `json:"host_id"`
}

type Servicegroup

type Servicegroup struct {
	GroupMeta `json:",inline"`
}

type ServicegroupCustomvar

type ServicegroupCustomvar struct {
	CustomvarMeta  `json:",inline"`
	ServicegroupId types.Binary `json:"servicegroup_id"`
}

type ServicegroupMember

type ServicegroupMember struct {
	MemberMeta     `json:",inline"`
	ServiceId      types.Binary `json:"service_id"`
	ServicegroupId types.Binary `json:"servicegroup_id"`
}

type State

type State struct {
	EntityWithChecksum        `json:",inline"`
	EnvironmentMeta           `json:",inline"`
	AcknowledgementCommentId  types.Binary               `json:"acknowledgement_comment_id"`
	LastCommentId             types.Binary               `json:"last_comment_id"`
	CheckAttempt              uint32                     `json:"check_attempt"`
	CheckCommandline          types.String               `json:"check_commandline"`
	CheckSource               types.String               `json:"check_source"`
	SchedulingSource          types.String               `json:"scheduling_source"`
	ExecutionTime             float64                    `json:"execution_time"`
	HardState                 uint8                      `json:"hard_state"`
	InDowntime                types.Bool                 `json:"in_downtime"`
	IsAcknowledged            types.AcknowledgementState `json:"is_acknowledged"`
	IsFlapping                types.Bool                 `json:"is_flapping"`
	IsHandled                 types.Bool                 `json:"is_handled"`
	IsProblem                 types.Bool                 `json:"is_problem"`
	IsReachable               types.Bool                 `json:"is_reachable"`
	LastStateChange           types.UnixMilli            `json:"last_state_change"`
	LastUpdate                types.UnixMilli            `json:"last_update"`
	Latency                   float64                    `json:"latency"`
	LongOutput                types.String               `json:"long_output"`
	NextCheck                 types.UnixMilli            `json:"next_check"`
	NextUpdate                types.UnixMilli            `json:"next_update"`
	Output                    types.String               `json:"output"`
	PerformanceData           types.String               `json:"performance_data"`
	NormalizedPerformanceData types.String               `json:"normalized_performance_data"`
	PreviousSoftState         uint8                      `json:"previous_soft_state"`
	PreviousHardState         uint8                      `json:"previous_hard_state"`
	Severity                  uint16                     `json:"severity"`
	SoftState                 uint8                      `json:"soft_state"`
	StateType                 types.StateType            `json:"state_type"`
	CheckTimeout              float64                    `json:"check_timeout"`
}

type Timeperiod

type Timeperiod struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	NameCiMeta         `json:",inline"`
	DisplayName        string       `json:"display_name"`
	PreferIncludes     types.Bool   `json:"prefer_includes"`
	ZoneId             types.Binary `json:"zone_id"`
}

type TimeperiodCustomvar

type TimeperiodCustomvar struct {
	CustomvarMeta `json:",inline"`
	TimeperiodId  types.Binary `json:"timeperiod_id"`
}

type TimeperiodOverrideExclude

type TimeperiodOverrideExclude struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	TimeperiodId          types.Binary `json:"timeperiod_id"`
	OverrideId            types.Binary `json:"exclude_id"`
}

type TimeperiodOverrideInclude

type TimeperiodOverrideInclude struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	TimeperiodId          types.Binary `json:"timeperiod_id"`
	OverrideId            types.Binary `json:"include_id"`
}

type TimeperiodRange

type TimeperiodRange struct {
	EntityWithoutChecksum `json:",inline"`
	EnvironmentMeta       `json:",inline"`
	TimeperiodId          types.Binary `json:"timeperiod_id"`
	RangeKey              string       `json:"range_key"`
	RangeValue            string       `json:"range_value"`
}

type User

type User struct {
	EntityWithChecksum   `json:",inline"`
	EnvironmentMeta      `json:",inline"`
	NameCiMeta           `json:",inline"`
	DisplayName          string                   `json:"display_name"`
	Email                string                   `json:"email"`
	Pager                string                   `json:"pager"`
	NotificationsEnabled types.Bool               `json:"notifications_enabled"`
	TimeperiodId         types.Binary             `json:"timeperiod_id"`
	States               types.NotificationStates `json:"states"`
	Types                types.NotificationTypes  `json:"types"`
	ZoneId               types.Binary             `json:"zone_id"`
}

type UserCustomvar

type UserCustomvar struct {
	CustomvarMeta `json:",inline"`
	UserId        types.Binary `json:"user_id"`
}

type Usergroup

type Usergroup struct {
	GroupMeta `json:",inline"`
}

type UsergroupCustomvar

type UsergroupCustomvar struct {
	CustomvarMeta `json:",inline"`
	UsergroupId   types.Binary `json:"usergroup_id"`
}

type UsergroupMember

type UsergroupMember struct {
	MemberMeta  `json:",inline"`
	UserId      types.Binary `json:"user_id"`
	UsergroupId types.Binary `json:"usergroup_id"`
}

type Zone

type Zone struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	NameCiMeta         `json:",inline"`
	IsGlobal           types.Bool   `json:"is_global"`
	ParentId           types.Binary `json:"parent_id"`
	Depth              uint8        `json:"depth"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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