Type alias ObjectByName<T>

ObjectByName<T>: T extends "ApiUser"
    ? ApiUser
    : T extends "CheckCommand"
        ? CheckCommand
        : T extends "CheckCommandArguments"
            ? CheckCommandArguments
            : T extends "Dependency"
                ? Dependency
                : T extends "Endpoint"
                    ? Endpoint
                    : T extends "EventCommand"
                        ? EventCommand
                        : T extends "Host"
                            ? Host
                            : T extends "HostGroup"
                                ? HostGroup
                                : T extends "Notification"
                                    ? Notification
                                    : T extends "NotificationCommand"
                                        ? NotificationCommand
                                        : T extends "ScheduledDowntime"
                                            ? ScheduledDowntime
                                            : T extends "Service"
                                                ? Service
                                                : T extends "ServiceGroup"
                                                    ? ServiceGroup
                                                    : T extends "TimePeriod"
                                                        ? TimePeriod
                                                        : T extends "User"
                                                            ? User
                                                            : T extends "UserGroup"
                                                                ? UserGroup
                                                                : T extends "Zone"
                                                                    ? Zone
                                                                    : T extends "Comment"
                                                                        ? Comment
                                                                        : T extends "Downtime"
                                                                            ? Downtime
                                                                            : T extends "ApiListener"
                                                                                ? ApiListener
                                                                                : T extends "CheckerComponent"
                                                                                    ? CheckerComponent
                                                                                    : T extends "CompatLogger"
                                                                                        ? CompatLogger
                                                                                        : T extends "ElasticsearchWriter"
                                                                                            ? ElasticsearchWriter
                                                                                            : T extends "ExternalCommandListener"
                                                                                                ? ExternalCommandListener
                                                                                                : T extends "FileLogger"
                                                                                                    ? FileLogger
                                                                                                    : T extends "GelfWriter"
                                                                                                        ? GelfWriter
                                                                                                        : T extends "GraphiteWriter"
                                                                                                            ? GraphiteWriter
                                                                                                            : T extends "IcingaApplication"
                                                                                                                ? IcingaApplication
                                                                                                                : T extends "IcingaDB"
                                                                                                                    ? IcingaDB
                                                                                                                    : T extends "IdoMySqlConnection"
                                                                                                                        ? IdoMySqlConnection
                                                                                                                        : T extends "IdoPgsqlConnection"
                                                                                                                            ? IdoPgsqlConnection
                                                                                                                            : T extends "InfluxdbWriter"
                                                                                                                                ? InfluxdbWriter
                                                                                                                                : T extends "Influxdb2Writer"
                                                                                                                                    ? Influxdb2Writer
                                                                                                                                    : T extends "JournaldLogger"
                                                                                                                                        ? JournaldLogger
                                                                                                                                        : T extends "LiveStatusListener"
                                                                                                                                            ? LiveStatusListener
                                                                                                                                            : T extends "NotificationComponent"
                                                                                                                                                ? NotificationComponent
                                                                                                                                                : T extends "OpenTsdbWriter"
                                                                                                                                                    ? OpenTsdbWriter
                                                                                                                                                    : T extends "PerfdataWriter"
                                                                                                                                                        ? PerfdataWriter
                                                                                                                                                        : T extends "SyslogLogger"
                                                                                                                                                            ? SyslogLogger
                                                                                                                                                            : T extends "WindowsEventLogLogger"
                                                                                                                                                                ? WindowsEventLogLogger
                                                                                                                                                                : never

Type Parameters

  • T