Documentation ¶
Index ¶
- Variables
- func ExpandCustomvars(ctx context.Context, cvs <-chan contracts.Entity) (customvars, flatCustomvars <-chan contracts.Entity, errs <-chan error)
- func NewActionUrl() contracts.Entity
- func NewCheckcommand() contracts.Entity
- func NewCheckcommandArgument() contracts.Entity
- func NewCheckcommandCustomvar() contracts.Entity
- func NewCheckcommandEnvvar() contracts.Entity
- func NewComment() contracts.Entity
- func NewCustomvar() contracts.Entity
- func NewCustomvarFlat() contracts.Entity
- func NewDowntime() contracts.Entity
- func NewEndpoint() contracts.Entity
- func NewEntityWithChecksum() contracts.Entity
- func NewEventcommand() contracts.Entity
- func NewEventcommandArgument() contracts.Entity
- func NewEventcommandCustomvar() contracts.Entity
- func NewEventcommandEnvvar() contracts.Entity
- func NewHost() contracts.Entity
- func NewHostCustomvar() contracts.Entity
- func NewHostState() contracts.Entity
- func NewHostgroup() contracts.Entity
- func NewHostgroupCustomvar() contracts.Entity
- func NewHostgroupMember() contracts.Entity
- func NewIconImage() contracts.Entity
- func NewNotesUrl() contracts.Entity
- func NewNotification() contracts.Entity
- func NewNotificationCustomvar() contracts.Entity
- func NewNotificationRecipient() contracts.Entity
- func NewNotificationUser() contracts.Entity
- func NewNotificationUsergroup() contracts.Entity
- func NewNotificationcommand() contracts.Entity
- func NewNotificationcommandArgument() contracts.Entity
- func NewNotificationcommandCustomvar() contracts.Entity
- func NewNotificationcommandEnvvar() contracts.Entity
- func NewService() contracts.Entity
- func NewServiceCustomvar() contracts.Entity
- func NewServiceState() contracts.Entity
- func NewServicegroup() contracts.Entity
- func NewServicegroupCustomvar() contracts.Entity
- func NewServicegroupMember() contracts.Entity
- func NewTimeperiod() contracts.Entity
- func NewTimeperiodCustomvar() contracts.Entity
- func NewTimeperiodOverrideExclude() contracts.Entity
- func NewTimeperiodOverrideInclude() contracts.Entity
- func NewTimeperiodRange() contracts.Entity
- func NewUser() contracts.Entity
- func NewUserCustomvar() contracts.Entity
- func NewUsergroup() contracts.Entity
- func NewUsergroupCustomvar() contracts.Entity
- func NewUsergroupMember() contracts.Entity
- func NewZone() contracts.Entity
- type ActionUrl
- type Address6Bin
- type AddressBin
- type Checkable
- type Checkcommand
- type CheckcommandArgument
- type CheckcommandCustomvar
- type CheckcommandEnvvar
- type ChecksumMeta
- type Command
- type CommandArgument
- type CommandEnvvar
- type Comment
- type Customvar
- type CustomvarFlat
- type CustomvarMeta
- type Downtime
- type Endpoint
- type EntityWithChecksum
- type EntityWithoutChecksum
- type Environment
- type EnvironmentMeta
- type Eventcommand
- type EventcommandArgument
- type EventcommandCustomvar
- type EventcommandEnvvar
- type GroupMeta
- type Host
- type HostCustomvar
- type HostState
- type Hostgroup
- type HostgroupCustomvar
- type HostgroupMember
- type IcingadbInstance
- type IconImage
- type IdMeta
- type MemberMeta
- type NameCiMeta
- type NameMeta
- type NotesUrl
- type Notification
- type NotificationCustomvar
- type NotificationRecipient
- type NotificationUser
- type NotificationUsergroup
- type Notificationcommand
- type NotificationcommandArgument
- type NotificationcommandCustomvar
- type NotificationcommandEnvvar
- type Service
- type ServiceCustomvar
- type ServiceState
- type Servicegroup
- type ServicegroupCustomvar
- type ServicegroupMember
- type State
- type Timeperiod
- type TimeperiodCustomvar
- type TimeperiodOverrideExclude
- type TimeperiodOverrideInclude
- type TimeperiodRange
- type User
- type UserCustomvar
- type Usergroup
- type UsergroupCustomvar
- type UsergroupMember
- type Zone
Constants ¶
This section is empty.
Variables ¶
var ConfigFactories = []contracts.EntityFactoryFunc{ NewActionUrl, NewCheckcommand, NewCheckcommandArgument, NewCheckcommandCustomvar, NewCheckcommandEnvvar, NewComment, NewDowntime, NewEndpoint, NewEventcommand, NewEventcommandArgument, NewEventcommandCustomvar, NewEventcommandEnvvar, NewHost, NewHostCustomvar, NewHostgroup, NewHostgroupCustomvar, NewHostgroupMember, NewIconImage, NewNotesUrl, NewNotification, NewNotificationcommand, NewNotificationcommandArgument, NewNotificationcommandCustomvar, NewNotificationcommandEnvvar, NewNotificationCustomvar, NewNotificationRecipient, NewNotificationUser, NewNotificationUsergroup, NewService, NewServiceCustomvar, NewServicegroup, NewServicegroupCustomvar, NewServicegroupMember, NewTimeperiod, NewTimeperiodCustomvar, NewTimeperiodOverrideExclude, NewTimeperiodOverrideInclude, NewTimeperiodRange, NewUser, NewUserCustomvar, NewUsergroup, NewUsergroupCustomvar, NewUsergroupMember, NewZone, }
var StateFactories = []contracts.EntityFactoryFunc{NewHostState, NewServiceState}
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 NewCheckcommand ¶
func NewCheckcommandArgument ¶
func NewCheckcommandEnvvar ¶
func NewComment ¶
func NewCustomvar ¶
func NewCustomvarFlat ¶
func NewDowntime ¶
func NewEndpoint ¶
func NewEntityWithChecksum ¶ added in v1.1.0
func NewEventcommand ¶
func NewEventcommandArgument ¶
func NewEventcommandEnvvar ¶
func NewHostCustomvar ¶
func NewHostState ¶
func NewHostgroup ¶
func NewHostgroupCustomvar ¶
func NewHostgroupMember ¶
func NewIconImage ¶
func NewNotesUrl ¶
func NewNotification ¶
func NewNotificationUser ¶
func NewNotificationcommand ¶
func NewService ¶
func NewServiceCustomvar ¶
func NewServiceState ¶
func NewServicegroup ¶
func NewServicegroupMember ¶
func NewTimeperiod ¶
func NewTimeperiodCustomvar ¶
func NewTimeperiodRange ¶
func NewUserCustomvar ¶
func NewUsergroup ¶
func NewUsergroupCustomvar ¶
func NewUsergroupMember ¶
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:"-"`
}
type AddressBin ¶
type AddressBin struct {
Host *Host `db:"-"`
}
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 ¶
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 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 ¶
func (e EntityWithoutChecksum) Fingerprint() contracts.Fingerprinter
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 ¶
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:"-"` }
type HostCustomvar ¶
type HostCustomvar struct { CustomvarMeta `json:",inline"` HostId types.Binary `json:"host_id"` }
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 ¶
IdMeta is embedded by every type Icinga DB should synchronize.
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 ¶
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 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 ServiceCustomvar ¶
type ServiceCustomvar struct { CustomvarMeta `json:",inline"` ServiceId types.Binary `json:"service_id"` }
type ServiceState ¶
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 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"` }