mirror of https://github.com/Icinga/icinga2.git
165 lines
8.9 KiB
C++
165 lines
8.9 KiB
C++
/******************************************************************************
|
|
* Icinga 2 *
|
|
* Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU General Public License *
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
* of the License, or (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
******************************************************************************/
|
|
|
|
#ifndef HOSTSTABLE_H
|
|
#define HOSTSTABLE_H
|
|
|
|
#include "livestatus/table.h"
|
|
|
|
using namespace icinga;
|
|
|
|
namespace livestatus
|
|
{
|
|
|
|
/**
|
|
* @ingroup livestatus
|
|
*/
|
|
class HostsTable : public Table
|
|
{
|
|
public:
|
|
typedef shared_ptr<HostsTable> Ptr;
|
|
typedef weak_ptr<HostsTable> WeakPtr;
|
|
|
|
HostsTable(void);
|
|
|
|
static void AddColumns(Table *table, const String& prefix = String(),
|
|
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
|
|
|
|
virtual String GetName(void) const;
|
|
|
|
protected:
|
|
virtual void FetchRows(const AddRowFunction& addRowFn);
|
|
|
|
static Value NameAccessor(const Object::Ptr& object);
|
|
static Value DisplayNameAccessor(const Object::Ptr& object);
|
|
static Value AddressAccessor(const Object::Ptr& object);
|
|
static Value Address6Accessor(const Object::Ptr& object);
|
|
static Value CheckCommandAccessor(const Object::Ptr& object);
|
|
static Value CheckCommandExpandedAccessor(const Object::Ptr& object);
|
|
static Value EventHandlerAccessor(const Object::Ptr& object);
|
|
static Value NotificationPeriodAccessor(const Object::Ptr& object);
|
|
static Value CheckPeriodAccessor(const Object::Ptr& object);
|
|
static Value NotesAccessor(const Object::Ptr& object);
|
|
static Value NotesExpandedAccessor(const Object::Ptr& object);
|
|
static Value NotesUrlAccessor(const Object::Ptr& object);
|
|
static Value NotesUrlExpandedAccessor(const Object::Ptr& object);
|
|
static Value ActionUrlAccessor(const Object::Ptr& object);
|
|
static Value ActionUrlExpandedAccessor(const Object::Ptr& object);
|
|
static Value PluginOutputAccessor(const Object::Ptr& object);
|
|
static Value PerfDataAccessor(const Object::Ptr& object);
|
|
static Value IconImageAccessor(const Object::Ptr& object);
|
|
static Value IconImageExpandedAccessor(const Object::Ptr& object);
|
|
static Value IconImageAltAccessor(const Object::Ptr& object);
|
|
static Value StatusmapImageAccessor(const Object::Ptr& object);
|
|
static Value LongPluginOutputAccessor(const Object::Ptr& object);
|
|
static Value InitialStateAccessor(const Object::Ptr& object);
|
|
static Value MaxCheckAttemptsAccessor(const Object::Ptr& object);
|
|
static Value FlapDetectionEnabledAccessor(const Object::Ptr& object);
|
|
static Value CheckFreshnessAccessor(const Object::Ptr& object);
|
|
static Value ProcessPerformanceDataAccessor(const Object::Ptr& object);
|
|
static Value AcceptPassiveChecksAccessor(const Object::Ptr& object);
|
|
static Value EventHandlerEnabledAccessor(const Object::Ptr& object);
|
|
static Value AcknowledgementTypeAccessor(const Object::Ptr& object);
|
|
static Value CheckTypeAccessor(const Object::Ptr& object);
|
|
static Value LastStateAccessor(const Object::Ptr& object);
|
|
static Value LastHardStateAccessor(const Object::Ptr& object);
|
|
static Value CurrentAttemptAccessor(const Object::Ptr& object);
|
|
static Value LastNotificationAccessor(const Object::Ptr& object);
|
|
static Value NextNotificationAccessor(const Object::Ptr& object);
|
|
static Value NextCheckAccessor(const Object::Ptr& object);
|
|
static Value LastHardStateChangeAccessor(const Object::Ptr& object);
|
|
static Value HasBeenCheckedAccessor(const Object::Ptr& object);
|
|
static Value CurrentNotificationNumberAccessor(const Object::Ptr& object);
|
|
static Value PendingFlexDowntimeAccessor(const Object::Ptr& object);
|
|
static Value TotalServicesAccessor(const Object::Ptr& object);
|
|
static Value ChecksEnabledAccessor(const Object::Ptr& object);
|
|
static Value NotificationsEnabledAccessor(const Object::Ptr& object);
|
|
static Value AcknowledgedAccessor(const Object::Ptr& object);
|
|
static Value StateAccessor(const Object::Ptr& object);
|
|
static Value StateTypeAccessor(const Object::Ptr& object);
|
|
static Value NoMoreNotificationsAccessor(const Object::Ptr& object);
|
|
static Value CheckFlappingRecoveryNotificationAccessor(const Object::Ptr& object);
|
|
static Value LastCheckAccessor(const Object::Ptr& object);
|
|
static Value LastStateChangeAccessor(const Object::Ptr& object);
|
|
static Value LastTimeUpAccessor(const Object::Ptr& object);
|
|
static Value LastTimeDownAccessor(const Object::Ptr& object);
|
|
static Value LastTimeUnreachableAccessor(const Object::Ptr& object);
|
|
static Value IsFlappingAccessor(const Object::Ptr& object);
|
|
static Value ScheduledDowntimeDepthAccessor(const Object::Ptr& object);
|
|
static Value IsExecutingAccessor(const Object::Ptr& object);
|
|
static Value ActiveChecksEnabledAccessor(const Object::Ptr& object);
|
|
static Value CheckOptionsAccessor(const Object::Ptr& object);
|
|
static Value ObsessOverHostAccessor(const Object::Ptr& object);
|
|
static Value ModifiedAttributesAccessor(const Object::Ptr& object);
|
|
static Value ModifiedAttributesListAccessor(const Object::Ptr& object);
|
|
static Value CheckIntervalAccessor(const Object::Ptr& object);
|
|
static Value RetryIntervalAccessor(const Object::Ptr& object);
|
|
static Value NotificationIntervalAccessor(const Object::Ptr& object);
|
|
static Value FirstNotificationDelayAccessor(const Object::Ptr& object);
|
|
static Value LowFlapThresholdAccessor(const Object::Ptr& object);
|
|
static Value HighFlapThresholdAccessor(const Object::Ptr& object);
|
|
static Value X3dAccessor(const Object::Ptr& object);
|
|
static Value Y3dAccessor(const Object::Ptr& object);
|
|
static Value Z3dAccessor(const Object::Ptr& object);
|
|
static Value X2dAccessor(const Object::Ptr& object);
|
|
static Value Y2dAccessor(const Object::Ptr& object);
|
|
static Value LatencyAccessor(const Object::Ptr& object);
|
|
static Value ExecutionTimeAccessor(const Object::Ptr& object);
|
|
static Value PercentStateChangeAccessor(const Object::Ptr& object);
|
|
static Value InNotificationPeriodAccessor(const Object::Ptr& object);
|
|
static Value InCheckPeriodAccessor(const Object::Ptr& object);
|
|
static Value ContactsAccessor(const Object::Ptr& object);
|
|
static Value DowntimesAccessor(const Object::Ptr& object);
|
|
static Value DowntimesWithInfoAccessor(const Object::Ptr& object);
|
|
static Value CommentsAccessor(const Object::Ptr& object);
|
|
static Value CommentsWithInfoAccessor(const Object::Ptr& object);
|
|
static Value CommentsWithExtraInfoAccessor(const Object::Ptr& object);
|
|
static Value CustomVariableNamesAccessor(const Object::Ptr& object);
|
|
static Value CustomVariableValuesAccessor(const Object::Ptr& object);
|
|
static Value CustomVariablesAccessor(const Object::Ptr& object);
|
|
static Value FilenameAccessor(const Object::Ptr& object);
|
|
static Value ParentsAccessor(const Object::Ptr& object);
|
|
static Value ChildsAccessor(const Object::Ptr& object);
|
|
static Value NumServicesAccessor(const Object::Ptr& object);
|
|
static Value WorstServiceStateAccessor(const Object::Ptr& object);
|
|
static Value NumServicesOkAccessor(const Object::Ptr& object);
|
|
static Value NumServicesWarnAccessor(const Object::Ptr& object);
|
|
static Value NumServicesCritAccessor(const Object::Ptr& object);
|
|
static Value NumServicesUnknownAccessor(const Object::Ptr& object);
|
|
static Value NumServicesPendingAccessor(const Object::Ptr& object);
|
|
static Value WorstServiceHardStateAccessor(const Object::Ptr& object);
|
|
static Value NumServicesHardOkAccessor(const Object::Ptr& object);
|
|
static Value NumServicesHardWarnAccessor(const Object::Ptr& object);
|
|
static Value NumServicesHardCritAccessor(const Object::Ptr& object);
|
|
static Value NumServicesHardUnknownAccessor(const Object::Ptr& object);
|
|
static Value HardStateAccessor(const Object::Ptr& object);
|
|
static Value PnpgraphPresentAccessor(const Object::Ptr& object);
|
|
static Value StalenessAccessor(const Object::Ptr& object);
|
|
static Value GroupsAccessor(const Object::Ptr& object);
|
|
static Value ContactGroupsAccessor(const Object::Ptr& object);
|
|
static Value ServicesAccessor(const Object::Ptr& object);
|
|
|
|
static Value ServicesWithStateAccessor(const Object::Ptr& object);
|
|
static Value ServicesWithInfoAccessor(const Object::Ptr& object);
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* HOSTSTABLE_H */
|