Interface User

A user.

Example:

object User "icingaadmin" {
display_name = "Icinga 2 Admin"
groups = [ "icingaadmins" ]
email = "icinga@localhost"
pager = "icingaadmin@localhost.localdomain"

period = "24x7"

states = [ OK, Warning, Critical, Unknown ]
types = [ Problem, Recovery ]

vars.additional_notes = "This is the Icinga 2 Admin account."
}

Available notification state filters:

OK
Warning
Critical
Unknown
Up
Down

Available notification type filters:

DowntimeStart
DowntimeEnd
DowntimeRemoved
Custom
Acknowledgement
Problem
Recovery
FlappingStart
FlappingEnd
interface User {
    __name: string;
    active: boolean;
    display_name: string;
    email: string;
    enable_notifications: boolean;
    groups: string[];
    ha_mode: HAMode;
    last_notification: number;
    original_attributes: Record<string, any>;
    package: string;
    pager: string;
    paused: boolean;
    period: string;
    source_location: SourceLocation;
    states: string[];
    templates: string[];
    types: string[];
    vars: Record<string, any>;
    version: number;
    zone: string;
}

Hierarchy

  • CustomVarObject
    • User

Properties

__name: string
active: boolean
display_name: string

A short description of the user.

email: string

An email string for this user. Useful for notification commands.

enable_notifications: boolean

Whether notifications are enabled for this user. Defaults to true.

groups: string[]

An array of group names.

ha_mode: HAMode
last_notification: number

When the last notification was sent for this user (as a UNIX timestamp).

original_attributes: Record<string, any>
package: string

for example _etc

pager: string

A pager string for this user. Useful for notification commands.

paused: boolean
period: string

The name of a time period which determines when a notification for this user should be triggered. Not set by default (effectively 24x7).

source_location: SourceLocation
states: string[]

A set of state filters when a notification for this should be triggered. By default everything is matched.

templates: string[]
types: string[]

A set of type filters when a notification for this user should be triggered. By default everything is matched.

vars: Record<string, any>
version: number
zone: string